Commit 95de9a84 95de9a84d000e61a863264ab23b5e4ee174cc362 by Vincent Peybernes

#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
1 ## [unreleased]
2 * Fix Angular export on Electron app
3
1 ## [0.1.0] - 2016-12-10 4 ## [0.1.0] - 2016-12-10
2 * Fix browser import 5 * Fix browser import
3 6
...@@ -7,5 +10,6 @@ ...@@ -7,5 +10,6 @@
7 * Add readme and licence 10 * Add readme and licence
8 * Add export management 11 * Add export management
9 12
13 [unreleased]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...master
10 [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0 14 [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0
11 [0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc 15 [0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
8 if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition(); 8 if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition();
9 //Browser export 9 //Browser export
10 if(typeof window != 'undefined'){ 10 if(typeof window != 'undefined'){
11 if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
12 if(typeof requirejs != 'undefined') return define(definition()); 11 if(typeof requirejs != 'undefined') return define(definition());
13 12
14 window.RelativePlacement = definition(); 13 window.RelativePlacement = definition();
15 } 14 }
15 // Angular export
16 if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
16 })(function(){ 17 })(function(){
17 18
18 /** 19 /**
......