Skip to content

Commit

Permalink
fixing object.watch in Firefox - closing #169
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Sep 22, 2014
1 parent 4c228de commit dfa34f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ URI.js is published under the [MIT license](http://www.opensource.org/licenses/m
### master (might become 1.14.1) ###

* fixing handling of String instances (not string primitives) - ([Issue #146](https://github.com/medialize/URI.js/issues/146))
* fixing Firefox [`.watch()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch) interfering with `.parseQuery()` - ([Issue #169](https://github.com/medialize/URI.js/issues/169))

### 1.14.0 (September 8th 2014) ###

Expand Down
2 changes: 1 addition & 1 deletion src/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@
// no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;

if (items[name]) {
if (hasOwn.call(items, name)) {
if (typeof items[name] === 'string') {
items[name] = [items[name]];
}
Expand Down

0 comments on commit dfa34f4

Please sign in to comment.