Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
WestCoastSwing
/
RelativePlacement
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
95de9a84
...
95de9a84d000e61a863264ab23b5e4ee174cc362
authored
2017-01-04 23:24:25 +0100
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
#12
The angular module is not define when it use under Electron app
1 parent
be823fdb
Pipeline
#49
for
95de9a84
passed
in 2 minutes 20 seconds
Changes
2
Pipelines
1
Builds
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
CHANGELOG.md
lib/relative-placement.js
CHANGELOG.md
View file @
95de9a8
## [unreleased]
*
Fix Angular export on Electron app
## [0.1.0] - 2016-12-10
*
Fix browser import
...
...
@@ -7,5 +10,6 @@
*
Add readme and licence
*
Add export management
[
unreleased
]:
http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...master
[
0.1.0
]:
http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0
[
0.1.0-rc
]:
http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc
\ No newline at end of file
...
...
lib/relative-placement.js
View file @
95de9a8
...
...
@@ -8,11 +8,12 @@
if
(
typeof
global
!=
'undefined'
&&
typeof
module
!=
'undefined'
&&
module
.
exports
)
return
module
.
exports
=
definition
();
//Browser export
if
(
typeof
window
!=
'undefined'
){
if
(
typeof
angular
!=
'undefined'
&&
angular
.
version
.
major
==
1
)
return
angular
.
module
(
'relative-placement-js'
,
[]).
factory
(
'RelativePlacement'
,
definition
);
if
(
typeof
requirejs
!=
'undefined'
)
return
define
(
definition
());
window
.
RelativePlacement
=
definition
();
}
// Angular export
if
(
typeof
angular
!=
'undefined'
&&
angular
.
version
.
major
==
1
)
return
angular
.
module
(
'relative-placement-js'
,
[]).
factory
(
'RelativePlacement'
,
definition
);
})(
function
(){
/**
...
...
Please
register
or
sign in
to post a comment