Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/loading-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,16 @@ angular.module('cfp.loadingBar', [])

}]; //
}); // wtf javascript. srsly
/**
* Support Require.JS AMD Modules
* Check if define is a function then
* define AMD module
*/

if(typeof define === 'function') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use angular.isFunction

define([], function(){
return angular.module('chieffancypants.loadingBar');
});
}

})(); //