From 1316ac4b322b9ab45341d1c7bfe28ef3e1f164f3 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 5 Jul 2011 16:00:55 -0400 Subject: [PATCH] Re-added console.log polyfill, fixed dom.attr return value for getting --- kis.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/kis.js b/kis.js index 462131e..8446cbc 100644 --- a/kis.js +++ b/kis.js @@ -17,6 +17,14 @@ { return; } + + //Define console.log dummy function if it doesn't exist + if(typeof window.console === "undefined") + { + window.console = { + log: function(){} + }; + } var $_, $; @@ -495,7 +503,7 @@ : sel[name] = null; } - return (typeof value !== "undefined") ? value : oldValue; + return (typeof value !== "undefined") ? value : oldVal; } // Private function for class manipulation @@ -583,10 +591,7 @@ d = { each: function (sel, callback) { - if (typeof sel === "string") - { - sel = $(sel); - } + sel = $(sel); if(!sel.length) {