From d4fd614fbce5cf6d8f57ca24920700a7a6b7a412 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 12 Nov 2008 06:14:33 +0000 Subject: ooops git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23334 d0d07461-0603-4401-acd4-de1884942a52 --- i_love_echo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i_love_echo.js') diff --git a/i_love_echo.js b/i_love_echo.js index 7380fc6..455b907 100644 --- a/i_love_echo.js +++ b/i_love_echo.js @@ -148,7 +148,7 @@ createPrototype($s, { get base64() $(window.btoa(this.value)), get encodeURICompoenent() $(encodeURIComponent(this.value)), get MD5Hash(){ -context converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Ci.nsIScriptableUnicodeConverter); + var converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Ci.nsIScriptableUnicodeConverter); converter.charset = "UTF-8"; var result = {}; var data = converter.convertToByteArray(this.value, result); @@ -211,7 +211,7 @@ createPrototype($a, { return this; }, get first() $(this.value[0]), - get last() $(this.value[this.length - 1]) + get last() $(this.value[this.length - 1]), }); // }}} -- cgit v1.2.3