Return object reference in drawControls and drawBorders

Closes #556
This commit is contained in:
Stefan Kienzle 2013-04-12 00:47:07 +03:00
parent e8c9c7b0f1
commit e73fe4625e

View file

@ -332,7 +332,7 @@
* @chainable
*/
drawBorders: function(ctx) {
if (!this.hasBorders) return;
if (!this.hasBorders) return this;
var padding = this.padding,
padding2 = padding * 2,
@ -389,7 +389,7 @@
* @chainable
*/
drawControls: function(ctx) {
if (!this.hasControls) return;
if (!this.hasControls) return this;
var size = this.cornerSize,
size2 = size / 2,