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
1e17942a
...
1e17942a4b476d9a02dea6414c9b469c9631cdef
authored
2016-12-10 19:24:43 +0100
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
#11
Error on importing in browser
1 parent
b72846d4
Pipeline
#37
for
1e17942a
passed
in 3 minutes 31 seconds
Changes
1
Pipelines
1
Builds
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/relative-placement.js
lib/relative-placement.js
View file @
1e17942
...
...
@@ -5,11 +5,11 @@
(
function
(
definition
)
{
// Node export
if
(
global
&&
module
&&
module
.
exports
)
return
module
.
exports
=
definition
();
if
(
typeof
global
!=
'undefined'
&&
typeof
module
!=
'undefined'
&&
module
.
exports
)
return
module
.
exports
=
definition
();
//Browser export
if
(
window
){
if
(
angular
&&
angular
.
version
.
major
==
1
)
return
angular
.
module
(
'relative-placement-js'
).
factory
(
'RelativePlacement'
,
definition
);
if
(
requirejs
)
return
define
(
definition
());
if
(
typeof
window
!=
'undefined'
){
if
(
typeof
angular
!=
'undefined'
&&
angular
.
version
.
major
==
1
)
return
angular
.
module
(
'relative-placement-js'
).
factory
(
'RelativePlacement'
,
definition
);
if
(
typeof
requirejs
!=
'undefined'
)
return
define
(
definition
());
window
.
RelativePlacement
=
definition
();
}
...
...
Please
register
or
sign in
to post a comment