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
5add225b
...
5add225b82ac59de10db4d4e1688ea4ea5a34901
authored
2016-12-10 19:40:38 +0100
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
#11
Error on importing in browser - fix angular definition
1 parent
1e17942a
Pipeline
#38
for
5add225b
passed
in 24 seconds
Changes
1
Pipelines
1
Builds
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/relative-placement.js
lib/relative-placement.js
View file @
5add225
...
...
@@ -8,7 +8,7 @@
if
(
typeof
global
!=
'undefined'
&&
typeof
module
!=
'undefined'
&&
module
.
exports
)
return
module
.
exports
=
definition
();
//Browser export
if
(
typeof
window
!=
'undefined'
){
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
)
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