Skip to content

Commit

Permalink
Adding back in support for browserify.
Browse files Browse the repository at this point in the history
Commit 29fcfcb reverted the changes
from pull request #95 (unintentionally?). This adds the browserify
support back in.
  • Loading branch information
smh committed Oct 23, 2013
1 parent 1da4bd1 commit 2feae03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toastr.js
Expand Up @@ -299,7 +299,7 @@
});
}(typeof define === 'function' && define.amd ? define : function (deps, factory) {
if (typeof module !== 'undefined' && module.exports) { //Node
module.exports = factory(require(deps[0]));
module.exports = factory(require('jquery'));
} else {
window['toastr'] = factory(window['jQuery']);
}
Expand Down

0 comments on commit 2feae03

Please sign in to comment.