diff options
author | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
---|---|---|
committer | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
commit | 58a2577d48790c79adfd44bcfd662c980ce6cfe4 (patch) | |
tree | 523d814ea0b7b6f617fe515b186099c6e83fed72 /lib/dojo/errors/create.js.uncompressed.js | |
parent | e470a273cf09562fb2f9c0c899002303f19c8d16 (diff) | |
parent | cc332603431102a682feda22b9cf0093a29f0176 (diff) |
Merge branch 'master' of https://github.com/gothfox/Tiny-Tiny-RSS.git
Diffstat (limited to 'lib/dojo/errors/create.js.uncompressed.js')
-rw-r--r-- | lib/dojo/errors/create.js.uncompressed.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/dojo/errors/create.js.uncompressed.js b/lib/dojo/errors/create.js.uncompressed.js deleted file mode 100644 index d303a6a77..000000000 --- a/lib/dojo/errors/create.js.uncompressed.js +++ /dev/null @@ -1,41 +0,0 @@ -define("dojo/errors/create", ["../_base/lang"], function(lang){ - return function(name, ctor, base, props){ - base = base || Error; - - var ErrorCtor = function(message){ - if(base === Error){ - if(Error.captureStackTrace){ - Error.captureStackTrace(this, ErrorCtor); - } - - // Error.call() operates on the returned error - // object rather than operating on |this| - var err = Error.call(this, message), - prop; - - // Copy own properties from err to |this| - for(prop in err){ - if(err.hasOwnProperty(prop)){ - this[prop] = err[prop]; - } - } - - // messsage is non-enumerable in ES5 - this.message = message; - // stack is non-enumerable in at least Firefox - this.stack = err.stack; - }else{ - base.apply(this, arguments); - } - if(ctor){ - ctor.apply(this, arguments); - } - }; - - ErrorCtor.prototype = lang.delegate(base.prototype, props); - ErrorCtor.prototype.name = name; - ErrorCtor.prototype.constructor = ErrorCtor; - - return ErrorCtor; - }; -}); |