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
97f08243
...
97f082437ed8eef476f4e6ad1de68a4284b38e3c
authored
2017-01-05 01:02:35 +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
5e1e3bc5
Pipeline
#54
for
97f08243
passed
in 3 minutes 28 seconds
Changes
3
Pipelines
2
Builds
7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
CHANGELOG.md
lib/relative-placement.js
package.json
CHANGELOG.md
View file @
97f0824
## [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
...
...
lib/relative-placement.js
View file @
97f0824
...
...
@@ -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
(){
/**
...
...
package.json
View file @
97f0824
{
"name"
:
"relative-placement-js"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"description"
:
"JavaScript Relative Placement calculator for dance competitions."
,
"author"
:
{
"name"
:
"Techniv"
,
...
...
Please
register
or
sign in
to post a comment