Author: eallen
Date: 2009-07-01 13:26:43 -0400 (Wed, 01 Jul 2009)
New Revision: 3471
Modified:
mgmt/trunk/wooly/resources/wooly.js
Log:
Put try/catch blocks in log() and dir() to avoid IE errors.
Modified: mgmt/trunk/wooly/resources/wooly.js
===================================================================
--- mgmt/trunk/wooly/resources/wooly.js 2009-07-01 17:23:16 UTC (rev 3470)
+++ mgmt/trunk/wooly/resources/wooly.js 2009-07-01 17:26:43 UTC (rev 3471)
@@ -13,14 +13,16 @@
}
function log() {
- if (wooly.console) {
+ try {
wooly.console.log.apply(wooly.console, arguments);
+ } catch (e) {
}
}
function dir() {
- if (wooly.console) {
+ try {
wooly.console.dir.apply(wooly.console, arguments);
+ } catch (e) {
}
}
@@ -399,8 +401,6 @@
}
}
- fetch();
-
if (interval > 0) {
var id = window.setInterval(fetch, interval);
this.updaterIDs.push(id);
@@ -412,6 +412,8 @@
this.intervalUpdateInfo.callback = callback;
this.intervalUpdateInfo.interval = interval;
this.intervalUpdateInfo.passback = passback;
+ } else {
+ fetch();
}
function update() {
Show replies by date