not needed

This commit is contained in:
gorhill 2015-01-15 08:30:38 -05:00
parent 089af13e32
commit ca77c677d7
4 changed files with 1 additions and 26 deletions

View File

@ -156,12 +156,6 @@ vAPI.canExecuteContentScript = function() {
/******************************************************************************/
vAPI.getUrlNormalizer = function() {
return document.createElement('a');
};
/******************************************************************************/
})();
/******************************************************************************/

View File

@ -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);
/******************************************************************************/

View File

@ -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.

View File

@ -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);