You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/06/21 19:40:01 UTC
[2/3] js commit: qualifying escape+unescape with window (jshint)
qualifying escape+unescape with window (jshint)
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/c546cdf1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/c546cdf1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/c546cdf1
Branch: refs/heads/master
Commit: c546cdf1c15fdc03464ebab841e50d7bf9f09c3f
Parents: c7c2f38
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Jun 21 10:40:47 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Jun 21 10:40:47 2012 -0700
----------------------------------------------------------------------
lib/wp7/plugin/wp7/DOMStorage.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/c546cdf1/lib/wp7/plugin/wp7/DOMStorage.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/DOMStorage.js b/lib/wp7/plugin/wp7/DOMStorage.js
index 34f9b95..85d7acf 100644
--- a/lib/wp7/plugin/wp7/DOMStorage.js
+++ b/lib/wp7/plugin/wp7/DOMStorage.js
@@ -84,7 +84,7 @@
var retVal = null;
if(this.keys.indexOf(key) > -1) {
window.external.Notify("DOMStorage/" + this._type + "/get/" + key);
- retVal = unescape(decodeURIComponent(this._result));
+ retVal = window.unescape(decodeURIComponent(this._result));
this._result = null;
}
return retVal;
@@ -101,7 +101,7 @@
if(!this.keys) {
this.initialize();
}
- window.external.Notify("DOMStorage/" + this._type + "/set/" + key + "/" + encodeURIComponent(escape(value)));
+ window.external.Notify("DOMStorage/" + this._type + "/set/" + key + "/" + encodeURIComponent(window.escape(value)));
},
/*
@@ -160,4 +160,4 @@
})();
-module.exports = null;
\ No newline at end of file
+module.exports = null;