aboutsummaryrefslogtreecommitdiffstats
path: root/_libly.js
diff options
context:
space:
mode:
authoranekos2011-09-13 01:12:45 +0900
committeranekos2011-09-13 01:24:11 +0900
commit58ce91467bcd0087f5339e6f74d5c105fb8ee9d9 (patch)
tree7c2b6856c064d8d9f16a02fa8a8cfbb63d1699a4 /_libly.js
parentb6ee3e5cb9a34a99e387b0c47f8a76320c38b292 (diff)
downloadvimperator-plugins-58ce91467bcd0087f5339e6f74d5c105fb8ee9d9.tar.bz2
libly.Wedata のコンストラクタでURIエンコードしたものを渡さなくてもいいようにした
Diffstat (limited to '_libly.js')
-rw-r--r--_libly.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/_libly.js b/_libly.js
index b2a558d..f811fda 100644
--- a/_libly.js
+++ b/_libly.js
@@ -14,7 +14,7 @@ var PLUGIN_INFO =
<author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author>
<author mail="anekos@snca.net" homepage="http://snca.net/">anekos</author>
<license>MIT</license>
- <version>0.1.36</version>
+ <version>0.1.37</version>
<minVersion>2.3pre</minVersion>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/_libly.js</updateURL>
<detail><![CDATA[
@@ -690,7 +690,7 @@ libly.Wedata.prototype = {
getItems: function(expire, itemCallback, finalCallback) {
var logger = this.logger;
- var STORE_KEY = 'plugins-libly-wedata-' + this.dbname + '-items';
+ var STORE_KEY = 'plugins-libly-wedata-' + encodeURIComponent(this.dbname) + '-items';
var store = storage.newMap(STORE_KEY, {store: true});
var cache = store && store.get('data');
@@ -717,7 +717,7 @@ libly.Wedata.prototype = {
}
}
- var req = new libly.Request(this.HOST_NAME + 'databases/' + this.dbname + '/items.json');
+ var req = new libly.Request(this.HOST_NAME + 'databases/' + encodeURIComponent(this.dbname) + '/items.json');
req.addEventListener('success', libly.$U.bind(this, function(res) {
var text = res.responseText;
if (!text) {