Commit 5add225b 5add225b82ac59de10db4d4e1688ea4ea5a34901 by Vincent Peybernes

#11 Error on importing in browser - fix angular definition

1 parent 1e17942a
Pipeline #38 for 5add225b passed in 24 seconds
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
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); 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()); 12 if(typeof requirejs != 'undefined') return define(definition());
13 13
14 window.RelativePlacement = definition(); 14 window.RelativePlacement = definition();
......