From 04ec1688e9982cad53bdc9f3e452396a34befbe6 Mon Sep 17 00:00:00 2001 From: kangax Date: Mon, 26 Jul 2010 18:49:51 -0400 Subject: [PATCH] Remove some unused "stub" code. --- dist/all.js | 10 +--------- src/path.class.js | 11 +---------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/dist/all.js b/dist/all.js index bb71d854..6c95973e 100644 --- a/dist/all.js +++ b/dist/all.js @@ -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); }, diff --git a/src/path.class.js b/src/path.class.js index 67d08a2a..ef892250 100644 --- a/src/path.class.js +++ b/src/path.class.js @@ -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); },