Permalink
Browse files

fixed bug introduced by latest firebug version

  • Loading branch information...
1 parent 1ea2561 commit 1c28316151fcbe16dca92440f959e14e09c03984 @marcelduran committed Jul 17, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/firefox/chrome/content/yslow-firefox.js
View
8 src/firefox/chrome/content/yslow-firefox.js
@@ -100,7 +100,8 @@ YSLOW.firefox = {
// "YSLOW.firefox.startup():TypeError: FBL.extend is not a
// function". Hack around this by retrying the call to
// YSLOW.FBYSlow.init() if it fails.
- if (typeof FBL.extend !== 'function') {
+ if (typeof FBL === 'undefined' || (typeof FBL !== 'undefined' &&
+ typeof FBL.extend !== 'function')) {
YSLOW.util.setTimer(function() {
YSLOW.firefox.startup(wmode);
}, 10);
@@ -119,6 +120,11 @@ YSLOW.firefox = {
YSLOW.util.dump("YSLOW.firefox.startup():" + err);
}
return;
+ } else {
+ YSLOW.util.setTimer(function() {
+ YSLOW.firefox.startup(wmode);
+ }, 10);
+ return;
}
YSLOW.firefox.init();

0 comments on commit 1c28316

Please sign in to comment.