From 850fe1a9a235b64f9491b981e9ee426d1e191c29 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 2 Jul 2010 08:51:07 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6804 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- modules/extensions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/extensions.js b/modules/extensions.js index 4ba53350..6e87fc5c 100644 --- a/modules/extensions.js +++ b/modules/extensions.js @@ -100,6 +100,12 @@ if (typeof window == 'undefined') { }; if (typeof aOKCallback != 'function') callbacks = aOKCallback; + + if (!('ok' in callbacks) || typeof callbacks.ok != 'function') + callbacks.ok = function() {}; + if (!('ng' in callbacks) || typeof callbacks.ng != 'function') + callbacks.ng = function() {}; + return callbacks; },