mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
No need for separate injection object for Item.extend()
This commit is contained in:
parent
f9267e7f5c
commit
094e35f2e5
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
* is unique to their type, but share the underlying properties and functions
|
||||
* that they inherit from Item.
|
||||
*/
|
||||
var Item = this.Item = Base.extend(Callback, {
|
||||
var Item = this.Item = Base.extend(Callback, /** @lends Item# */{
|
||||
statics: {
|
||||
/**
|
||||
* Override Item.extend() to merge the subclass' _serializeFields with
|
||||
|
@ -35,8 +35,8 @@ var Item = this.Item = Base.extend(Callback, {
|
|||
src._type = Base.hyphenate(src._class);
|
||||
return this.base.apply(this, arguments);
|
||||
}
|
||||
}
|
||||
}, /** @lends Item# */{
|
||||
},
|
||||
|
||||
// All items apply their matrix by default.
|
||||
// Exceptions are Raster, PlacedSymbol, Clip and Shape.
|
||||
_applyMatrix: true,
|
||||
|
|
Loading…
Reference in a new issue