From 2cd65994141dbafdea17810a21d90fbcdbdf9a37 Mon Sep 17 00:00:00 2001 From: Monica Dinculescu Date: Wed, 14 Dec 2016 11:06:41 -0800 Subject: [PATCH 1/2] Use self instead of this to refer to window/context From: https://github.com/webcomponents/webcomponentsjs/commit/f1f6172f6fbdca2bc0acf89e40873f925bd93f3a --- url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url.js b/url.js index b4561e5..fb8883e 100644 --- a/url.js +++ b/url.js @@ -613,4 +613,4 @@ scope.URL = jURL; -})(this); +})(window); From 4758781bba9226795d094528c2b66dce42538a85 Mon Sep 17 00:00:00 2001 From: Monica Dinculescu Date: Wed, 14 Dec 2016 11:11:25 -0800 Subject: [PATCH 2/2] use this._query instead of query, which isn't a thing --- url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url.js b/url.js index fb8883e..8dd9bdb 100644 --- a/url.js +++ b/url.js @@ -145,7 +145,7 @@ case 'scheme data': if ('?' == c) { - query = '?'; + this._query = '?'; state = 'query'; } else if ('#' == c) { this._fragment = '#';