From ca77c677d78a529b7e315c85b8f839d758b417ae Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 15 Jan 2015 08:30:38 -0500 Subject: [PATCH] not needed --- platform/chromium/vapi-client.js | 6 ------ platform/firefox/vapi-client.js | 13 ------------- platform/safari/vapi-client.js | 6 ------ src/js/element-picker.js | 2 +- 4 files changed, 1 insertion(+), 26 deletions(-) diff --git a/platform/chromium/vapi-client.js b/platform/chromium/vapi-client.js index 7872e798c..9fd6a6e89 100644 --- a/platform/chromium/vapi-client.js +++ b/platform/chromium/vapi-client.js @@ -156,12 +156,6 @@ vAPI.canExecuteContentScript = function() { /******************************************************************************/ -vAPI.getUrlNormalizer = function() { - return document.createElement('a'); -}; - -/******************************************************************************/ - })(); /******************************************************************************/ \ No newline at end of file diff --git a/platform/firefox/vapi-client.js b/platform/firefox/vapi-client.js index 42c2cdf0a..4886bb6cf 100644 --- a/platform/firefox/vapi-client.js +++ b/platform/firefox/vapi-client.js @@ -174,19 +174,6 @@ vAPI.canExecuteContentScript = function() { /******************************************************************************/ -vAPI.getUrlNormalizer = function() { - return { - get href() { - return this._url || ''; - }, - set href(url) { - this._url = _urlNormalizer_(url, document.baseURI); - } - }; -}; - -/******************************************************************************/ - })(this); /******************************************************************************/ diff --git a/platform/safari/vapi-client.js b/platform/safari/vapi-client.js index 7998bd0db..9adde80fd 100644 --- a/platform/safari/vapi-client.js +++ b/platform/safari/vapi-client.js @@ -182,12 +182,6 @@ vAPI.canExecuteContentScript = function() { /******************************************************************************/ -vAPI.getUrlNormalizer = function() { - return document.createElement('a'); -}; - -/******************************************************************************/ - // This file can be included into extensin pages, // but the following code should run only in content pages. diff --git a/src/js/element-picker.js b/src/js/element-picker.js index 6cd6669b2..f43761b4a 100644 --- a/src/js/element-picker.js +++ b/src/js/element-picker.js @@ -896,7 +896,7 @@ var startPicker = function(details) { divDialog.addEventListener('click', onDialogClicked); taCandidate = divDialog.querySelector('textarea'); taCandidate.addEventListener('input', onCandidateChanged); - urlNormalizer = vAPI.getUrlNormalizer(); + urlNormalizer = document.createElement('a'); window.addEventListener('scroll', onScrolled, true); window.addEventListener('keydown', onKeyPressed, true);