Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 2feae036474aae5eb290e8802864dda0b7d4e60a 1 parent 1da4bd1
@smh smh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  toastr.js
View
2  toastr.js
@@ -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']);
}
Please sign in to comment.
Something went wrong with that request. Please try again.