Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Check for window.dbug #108

Merged
merged 1 commit into from

2 participants

@RiZKiT

For the rare case dbug was not defined or has been removed from clientcide, check if window.dbug exists before using it.

@anutron anutron merged commit a914f45 into anutron:master
@RiZKiT RiZKiT deleted the RiZKiT:patch-12 branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 26, 2012
  1. @RiZKiT

    Check for window.dbug

    RiZKiT authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/UI/StyleWriter.js
View
2  Source/UI/StyleWriter.js
@@ -21,7 +21,7 @@ var StyleWriter = new Class({
var style = new Element('style', {id: id||''}).inject($$('head')[0]);
if (Browser.ie) style.styleSheet.cssText = css;
else style.set('text', css);
- }catch(e){dbug.log('error: %s',e);}
+ }catch(e){if (window.dbug) dbug.log('error: %s',e);}
}.bind(this));
}
});
Something went wrong with that request. Please try again.