mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -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) {
|
translate: function(delta) {
|
||||||
var mx = new Matrix();
|
var mx = new Matrix();
|
||||||
mx.translate.apply(mx, arguments);
|
return this.transform(mx.translate.apply(mx, arguments));
|
||||||
return this.transform(mx);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue