mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Have ctor functions be unnamed, so they don't show as 'ctor' prototypes in debugging.
This commit is contained in:
parent
2a24ec66ac
commit
ed2ef0231f
1 changed files with 1 additions and 1 deletions
2
lib/bootstrap.js
vendored
2
lib/bootstrap.js
vendored
|
@ -149,7 +149,7 @@ var Base = this.Base = new function() {
|
|||
}
|
||||
|
||||
function extend(obj) {
|
||||
function ctor(dont) {
|
||||
var ctor = function(dont) {
|
||||
if (fix) define(this, '__proto__', { value: obj });
|
||||
if (this.initialize && dont !== ctor.dont)
|
||||
return this.initialize.apply(this, arguments);
|
||||
|
|
Loading…
Reference in a new issue