Skip to content

Commit

Permalink
fix(jquery): properly require() dependencies in UMD - closes #295
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed May 17, 2016
1 parent 19a152b commit 93053a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

The release notes tracked in this document are also made available on the [releases page](https://github.com/medialize/URI.js/releases)

### master ###

* fixing UMD wrapper of `jquery.URI.js` - [Issue #295](https://github.com/medialize/URI.js/issues/295)

### 1.18.0 (April 30th 2016) ###

* adding [`URI.joinPaths()`](http://medialize.github.io/URI.js/docs.html#static-joinPaths) to compose paths from directory tokens - [Issue #285](https://github.com/medialize/URI.js/issues/285)
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// https://github.com/umdjs/umd/blob/master/returnExports.js
if (typeof exports === 'object') {
// Node
module.exports = factory(require('jquery', './URI'));
module.exports = factory(require('jquery'), require('./URI'));
} else if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', './URI'], factory);
Expand Down

0 comments on commit 93053a3

Please sign in to comment.