Commit 97f08243 97f082437ed8eef476f4e6ad1de68a4284b38e3c by Vincent Peybernes

#12 The angular module is not define when it use under Electron app

1 parent 5e1e3bc5
Pipeline #54 for 97f08243 passed in 3 minutes 28 seconds
## [1.0.1] - 2017-01-05
* Fix Angular export on Electron app
## [1.0.0] - 2017-01-05
* Fix Angular export on Electron app
* Fix README
......@@ -11,6 +14,8 @@
* Add readme and licence
* Add export management
[unreleased]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v1.0.1...HEAD
[1.0.1]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v1.0.0...v1.0.1
[1.0.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...v1.0.0
[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
......
......@@ -5,15 +5,14 @@
(function (definition) {
// Node export
if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition();
if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) module.exports = definition();
//Browser export
if(typeof window != 'undefined'){
if(typeof requirejs != 'undefined') return define(definition());
window.RelativePlacement = definition();
if(typeof requirejs != 'undefined') define(definition());
else window.RelativePlacement = definition();
}
// Angular export
if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
if(typeof angular != 'undefined' && angular.version.major == 1) angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
})(function(){
/**
......
{
"name": "relative-placement-js",
"version": "1.0.0",
"version": "1.0.1",
"description": "JavaScript Relative Placement calculator for dance competitions.",
"author": {
"name": "Techniv",
......