aboutsummaryrefslogtreecommitdiffstats
path: root/i_love_echo.js
diff options
context:
space:
mode:
authorteramako2010-10-24 18:36:41 +0900
committerteramako2010-10-24 18:36:41 +0900
commit7d63256c64e0d9118f92843f6e1fde7820d30ae0 (patch)
tree01f59a311d8168079a80a1c7afe1a14f2c4d6338 /i_love_echo.js
parent0fff631ab86f76a63e3a317cf74eb419a7c5380c (diff)
downloadvimperator-plugins-7d63256c64e0d9118f92843f6e1fde7820d30ae0.tar.bz2
[i_love_echo.js] オブジェクトの位置を modules から userContext へ
Diffstat (limited to 'i_love_echo.js')
-rw-r--r--i_love_echo.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/i_love_echo.js b/i_love_echo.js
index e95584d..47fccd6 100644
--- a/i_love_echo.js
+++ b/i_love_echo.js
@@ -54,7 +54,7 @@ function $(arg){ //{{{
if (typeof arg == "string"){
let s = new $s(arg);
if (/^https?:\/\/./.test(arg)){
- s.open = function(){ var x = modules.$x(arg); return x.open(); };
+ s.open = function(){ var x = userContext.$x(arg); return x.open(); };
}
return s;
} else if (typeof arg == "xml"){
@@ -67,7 +67,7 @@ function $(arg){ //{{{
return new $o(arg);
}
} //}}}
-modules.$f = (function(){ //{{{
+userContext.$f = (function(){ //{{{
const pests = [
'__defineGetter__', '__defineSetter__', 'hasOwnProperty', 'isPrototypeOf',
'__lookupGetter__', '__lookupSetter__', '__parent__', 'propertyIsEnumerable',
@@ -100,8 +100,8 @@ modules.$f = (function(){ //{{{
})(); //}}}
-modules.$ = $;
-modules.$x = function $x(url, method, user, password){ //{{{
+userContext.$ = $;
+userContext.$x = function $x(url, method, user, password){ //{{{
if (!cacheXHR){
cacheXHR = new $xhr(url, method, user, password);
} else if (cacheXHR.success && cacheXHR.url == url){
@@ -114,7 +114,7 @@ modules.$x = function $x(url, method, user, password){ //{{{
}
return cacheXHR;
}; //}}}
-modules.$_ = { //{{{
+userContext.$_ = { //{{{
cache: {
get: function(num) $(cache[num]),
get length() cache.length,