Remove some unused "stub" code.

This commit is contained in:
kangax 2010-07-26 18:49:51 -04:00
parent a535b004e6
commit 04ec1688e9
2 changed files with 2 additions and 19 deletions

10
dist/all.js vendored
View file

@ -6388,12 +6388,7 @@ fabric.util.animate = animate;
}
ctx.beginPath();
if (this.stub) {
this.stub._render(ctx);
}
else {
this._render(ctx);
}
this._render(ctx);
if (this.fill) {
ctx.fill();
@ -6455,9 +6450,6 @@ fabric.util.animate = animate;
},
set: function(prop, value) {
if (this.stub) {
this.stub.set(prop, value)
}
return this.callSuper('set', prop, value);
},

View file

@ -282,13 +282,7 @@
}
ctx.beginPath();
// stubbb !!!
if (this.stub) {
this.stub._render(ctx);
}
else {
this._render(ctx);
}
this._render(ctx);
if (this.fill) {
ctx.fill();
@ -350,9 +344,6 @@
},
set: function(prop, value) {
if (this.stub) {
this.stub.set(prop, value)
}
return this.callSuper('set', prop, value);
},