From 3dc8e4e07e475876801ff602bd9e047c92203934 Mon Sep 17 00:00:00 2001 From: teramako Date: Wed, 15 Oct 2008 15:28:45 +0000 Subject: namespaceの省略(vimperator CVS headと旧版との互換性維持のため) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21395 d0d07461-0603-4401-acd4-de1884942a52 --- bufferecho.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bufferecho.js') diff --git a/bufferecho.js b/bufferecho.js index dc287be..39398dc 100644 --- a/bufferecho.js +++ b/bufferecho.js @@ -24,27 +24,27 @@ function htmlEscape(str){ .replace(">",">","g"); } -liberator.commands.addUserCommand(['bufferecho','becho'],'Display results of JavaScript to a buffer(browser)', +commands.addUserCommand(['bufferecho','becho'],'Display results of JavaScript to a buffer(browser)', function(args, special){ liberator.plugins.buffer_echo.open(args, special); },{ - completer: function(filter) liberator.completion.javascript(filter) + completer: function(filter) completion.javascript(filter) },true ); var manager = { append: function(htmlString){ - var body = liberator.buffer.evaluateXPath('/html/body').snapshotItem(0); + var body = buffer.evaluateXPath('/html/body').snapshotItem(0); body.innerHTML += htmlString; }, open: function(str, forceNewTab) { var result = execute(str); - if (typeof(result) == "object") result = liberator.util.objectToString(result,true); + if (typeof(result) == "object") result = util.objectToString(result,true); var data = '
' + result + '