From b61ba47b5048f29fa5119063d0d8aef02b2e4cf4 Mon Sep 17 00:00:00 2001 From: meltingice Date: Tue, 19 Oct 2010 02:24:44 -0400 Subject: [PATCH] Some bug fixes to the core clss --- jsonp-fu/jsonp-fu.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jsonp-fu/jsonp-fu.js b/jsonp-fu/jsonp-fu.js index df24ac2..4da3307 100644 --- a/jsonp-fu/jsonp-fu.js +++ b/jsonp-fu/jsonp-fu.js @@ -20,7 +20,8 @@ var jsonpfu = {}, */ if (!('console' in window)) { window.console = { - log: function () { } + log: function (msg) { }, + error: function (msg) { } }; } @@ -61,6 +62,8 @@ var jsonpfu = {}, callback = function () {}; } + log("loading url " + url); + new_script.type = 'text/javascript'; new_script.src = url; new_script.onload = function () {