mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Shorten Item#translate().
This commit is contained in:
parent
72976f4191
commit
15b7cfec0b
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue