aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2011-09-13 01:12:45 +0900
committeranekos2011-09-13 01:24:11 +0900
commit58ce91467bcd0087f5339e6f74d5c105fb8ee9d9 (patch)
tree7c2b6856c064d8d9f16a02fa8a8cfbb63d1699a4
parentb6ee3e5cb9a34a99e387b0c47f8a76320c38b292 (diff)
downloadvimperator-plugins-58ce91467bcd0087f5339e6f74d5c105fb8ee9d9.tar.bz2
libly.Wedata のコンストラクタでURIエンコードしたものを渡さなくてもいいようにした
-rw-r--r--_libly.js6
-rw-r--r--copy.js2
-rw-r--r--multi_requester.js2
3 files changed, 5 insertions, 5 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) {
diff --git a/copy.js b/copy.js
index 9b33a92..035054c 100644
--- a/copy.js
+++ b/copy.js
@@ -390,7 +390,7 @@ if (liberator.globalVariables.copy_use_wedata){
copy_templates.forEach(function(item) excludeLabelsMap[item.label] = item.value);
if (liberator.globalVariables.copy_wedata_exclude_labels)
liberator.globalVariables.copy_wedata_exclude_labels.forEach(function(item) excludeLabelsMap[item] = 1);
- var wedata = new libly.Wedata("vimp%20copy");
+ var wedata = new libly.Wedata("vimp copy");
wedata.getItems(24 * 60 * 60 * 1000, wedataRegister);
}
loadWedata();
diff --git a/multi_requester.js b/multi_requester.js
index 1165edf..f075779 100644
--- a/multi_requester.js
+++ b/multi_requester.js
@@ -242,7 +242,7 @@ var DataAccess = {
if (useWedata) {
logger.log("use wedata");
- var wedata = new libly.Wedata("Multi%20Requester");
+ var wedata = new libly.Wedata("Multi Requester");
wedata.getItems(24 * 60 * 60 * 1000,
function(item) {
var site = item.data;