Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
158eebc9
Commit
158eebc9
authored
Oct 24, 2016
by
Leonid Evstigneev
Committed by
Valentin Hervieu
Oct 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using with browserify (#436)
Angular doesn't seem to support CommonJS.
parent
c39e7e76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
rzslider.js
src/rzslider.js
+5
-1
No files found.
src/rzslider.js
View file @
158eebc9
...
@@ -19,7 +19,11 @@
...
@@ -19,7 +19,11 @@
// only CommonJS-like environments that support module.exports,
// only CommonJS-like environments that support module.exports,
// like Node.
// like Node.
// to support bundler like browserify
// to support bundler like browserify
module
.
exports
=
factory
(
require
(
'angular'
));
var
angularObj
=
require
(
'angular'
);
if
((
!
angularObj
||
!
angularObj
.
module
)
&&
typeof
angular
!=
'undefined'
)
{
angularObj
=
angular
;
}
module
.
exports
=
factory
(
angularObj
);
}
else
{
}
else
{
// Browser globals (root is window)
// Browser globals (root is window)
factory
(
root
.
angular
);
factory
(
root
.
angular
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment