Shorten Item#translate().

This commit is contained in:
Jürg Lehni 2011-05-07 13:09:04 +01:00
parent 72976f4191
commit 15b7cfec0b

View file

@ -602,8 +602,7 @@ var Item = this.Item = Base.extend({
*/
translate: function(delta) {
var mx = new Matrix();
mx.translate.apply(mx, arguments);
return this.transform(mx);
return this.transform(mx.translate.apply(mx, arguments));
},
/**