#12 The angular module is not define when it use under Electron app
Showing
3 changed files
with
10 additions
and
6 deletions
1 | ## [1.0.1] - 2017-01-05 | ||
2 | * Fix Angular export on Electron app | ||
3 | |||
1 | ## [1.0.0] - 2017-01-05 | 4 | ## [1.0.0] - 2017-01-05 |
2 | * Fix Angular export on Electron app | 5 | * Fix Angular export on Electron app |
3 | * Fix README | 6 | * Fix README |
... | @@ -11,6 +14,8 @@ | ... | @@ -11,6 +14,8 @@ |
11 | * Add readme and licence | 14 | * Add readme and licence |
12 | * Add export management | 15 | * Add export management |
13 | 16 | ||
17 | [unreleased]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v1.0.1...HEAD | ||
18 | [1.0.1]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v1.0.0...v1.0.1 | ||
14 | [1.0.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...v1.0.0 | 19 | [1.0.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...v1.0.0 |
15 | [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0 | 20 | [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0 |
16 | [0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc | 21 | [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 | ... | ... |
... | @@ -5,15 +5,14 @@ | ... | @@ -5,15 +5,14 @@ |
5 | (function (definition) { | 5 | (function (definition) { |
6 | 6 | ||
7 | // Node export | 7 | // Node export |
8 | if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition(); | 8 | if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) module.exports = definition(); |
9 | //Browser export | 9 | //Browser export |
10 | if(typeof window != 'undefined'){ | 10 | if(typeof window != 'undefined'){ |
11 | if(typeof requirejs != 'undefined') return define(definition()); | 11 | if(typeof requirejs != 'undefined') define(definition()); |
12 | 12 | else window.RelativePlacement = definition(); | |
13 | window.RelativePlacement = definition(); | ||
14 | } | 13 | } |
15 | // Angular export | 14 | // Angular export |
16 | if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition); | 15 | if(typeof angular != 'undefined' && angular.version.major == 1) angular.module('relative-placement-js', []).factory('RelativePlacement', definition); |
17 | })(function(){ | 16 | })(function(){ |
18 | 17 | ||
19 | /** | 18 | /** | ... | ... |
1 | { | 1 | { |
2 | "name": "relative-placement-js", | 2 | "name": "relative-placement-js", |
3 | "version": "1.0.0", | 3 | "version": "1.0.1", |
4 | "description": "JavaScript Relative Placement calculator for dance competitions.", | 4 | "description": "JavaScript Relative Placement calculator for dance competitions.", |
5 | "author": { | 5 | "author": { |
6 | "name": "Techniv", | 6 | "name": "Techniv", | ... | ... |
-
Please register or sign in to post a comment