Skip to content

Commit

Permalink
Do not try to save no-conflict versions when root not present
Browse files Browse the repository at this point in the history
  • Loading branch information
kennknowles committed Aug 13, 2013
1 parent e584b18 commit 57cd8ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/IPv6.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ console.log(_in, _out, _expected, _out === _expected);
*/

// save current IPv6 variable, if any
var _IPv6 = root.IPv6;
var _IPv6 = root && root.IPv6;

function best(address) {
// based on:
Expand Down
2 changes: 1 addition & 1 deletion src/SecondLevelDomains.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"use strict";

// save current SecondLevelDomains variable, if any
var _SecondLevelDomains = root.SecondLevelDomains;
var _SecondLevelDomains = root && root.SecondLevelDomains;

var hasOwn = Object.prototype.hasOwnProperty;
var SLD = {
Expand Down
2 changes: 1 addition & 1 deletion src/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"use strict";

// save current URI variable, if any
var _URI = root.URI;
var _URI = root && root.URI;

function URI(url, base) {
// Allow instantiation without the 'new' keyword
Expand Down

0 comments on commit 57cd8ba

Please sign in to comment.