This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For those cases when there just isn't any other explanation... | |
if (typeof window.YourBrowserFailsError === 'undefined') { | |
window.YourBrowserFailsError = function(msg) { | |
// Make sure it is called with "new" | |
if (! this instanceof YourBrowserFailsError) { | |
return new YourBrowserFailsError(msg); | |
} | |
// Get an actual error object for the stack | |
var err = (function() { | |
var err; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
|------------------------------------------------ | |
| CallStack | |
|------------------------------------------------ | |
| | |
| A convenient way of stacking up functions | |
| | |
| @author James Brumond | |
| @copyright Copyright 2011 James Brumond | |
| @license Dual licensed under MIT and GPL |