From 97b9458e7fdd9f4eb9af395a77c2d63ee8e84253 Mon Sep 17 00:00:00 2001 From: teramako Date: Mon, 12 Jan 2009 06:09:32 +0000 Subject: change namespace git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28315 d0d07461-0603-4401-acd4-de1884942a52 --- i_love_echo.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'i_love_echo.js') diff --git a/i_love_echo.js b/i_love_echo.js index b7fbf0e..e95584d 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 = liberator.modules.$x(arg); return x.open(); }; + s.open = function(){ var x = modules.$x(arg); return x.open(); }; } return s; } else if (typeof arg == "xml"){ @@ -67,7 +67,7 @@ function $(arg){ //{{{ return new $o(arg); } } //}}} -liberator.modules.$f = (function(){ //{{{ +modules.$f = (function(){ //{{{ const pests = [ '__defineGetter__', '__defineSetter__', 'hasOwnProperty', 'isPrototypeOf', '__lookupGetter__', '__lookupSetter__', '__parent__', 'propertyIsEnumerable', @@ -100,8 +100,8 @@ liberator.modules.$f = (function(){ //{{{ })(); //}}} -liberator.modules.$ = $; -liberator.modules.$x = function $x(url, method, user, password){ //{{{ +modules.$ = $; +modules.$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 @@ liberator.modules.$x = function $x(url, method, user, password){ //{{{ } return cacheXHR; }; //}}} -liberator.modules.$_ = { //{{{ +modules.$_ = { //{{{ cache: { get: function(num) $(cache[num]), get length() cache.length, -- cgit v1.2.3