Add method complexity() to fabric.Text (returns 1)

This commit is contained in:
Kienz 2013-05-20 10:17:39 +02:00
parent d2bcfc922d
commit 727c075235

View file

@ -900,6 +900,14 @@
this._initDimensions();
this.setCoords();
}
},
/**
* Returns complexity of an instance
* @return {Number} complexity
*/
complexity: function() {
return 1;
}
});