From 92e4ae2c78ea26188c4c22958bcb34b1b59d9dfa Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 7 Apr 2010 16:57:49 +0000 Subject: libly の around を使うようにした git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37170 d0d07461-0603-4401-acd4-de1884942a52 --- maine_coon.js | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'maine_coon.js') diff --git a/maine_coon.js b/maine_coon.js index 5d81dc4..1863271 100644 --- a/maine_coon.js +++ b/maine_coon.js @@ -38,7 +38,7 @@ let PLUGIN_INFO = メインクーン Make the screen larger なるべくでかい画面で使えるように - 2.4.2 + 2.4.3 anekos 2.3 2.3 @@ -178,15 +178,6 @@ let elemStyle = let mainWindow = document.getElementById('main-window'); let messageBox = document.getElementById('liberator-message'); - function around (obj, name, func) { - let next = obj[name]; - obj[name] = function () - let (self = this, args = arguments) - func.call(self, - function () next.apply(self, args), - args); - } - function s2b (s, d) !!((!/^(\d+|false)$/i.test(s)|parseInt(s)|!!d*2)&1<