Permalink
Browse files

Adding back in support for browserify.

Commit 29fcfcb reverted the changes
from pull request #95 (unintentionally?). This adds the browserify
support back in.
  • Loading branch information...
1 parent 1da4bd1 commit 2feae036474aae5eb290e8802864dda0b7d4e60a @smh smh committed Oct 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 toastr.js
View
@@ -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']);
}

0 comments on commit 2feae03

Please sign in to comment.