Frame initialization exceptions

Don't call initialize inside the try-catch, it ends up sending exceptions thrown inside that method to /dev/null.

Change-Id: I8e0945f35c639ec156ee9a163b86fddfaed0ea7b
This commit is contained in:
Trevor Parscal 2013-04-18 16:52:03 -07:00
parent 93cb630aed
commit bb232a0ee7

View file

@ -95,13 +95,16 @@ ve.ui.Frame.prototype.onLoad = function () {
try {
// MAGIC: only accessible when the stylesheet is loaded
rules = style.sheet.cssRules;
// If that didn't throw an exception, we're done loading
clearInterval( interval );
// Protect against IE running interval one extra time after clearing
if ( !this.initialized ) {
initialize();
}
} catch ( e ) { }
} catch ( e ) {
// Try again in 10ms
return;
}
// If that didn't throw an exception, we're done loading
clearInterval( interval );
// Protect against IE running interval one extra time after clearing
if ( !this.initialized ) {
initialize();
}
}, this ), 10 );
// Properties