Skip to content

Commit

Permalink
Fixed common js definition to require spin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Apr 1, 2014
1 parent 2352717 commit 1eddbb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/ladda.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion js/ladda.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
/* jshint node:true, browser:true */
(function( root, factory ) {

// CommonJS
if( typeof exports === 'object' ) {
module.exports = factory();
module.exports = factory(require('spin.js'));
}
// AMD module
else if( typeof define === 'function' && define.amd ) {
Expand Down

0 comments on commit 1eddbb3

Please sign in to comment.