mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Add missing Key class to exports.
This commit is contained in:
parent
2a64806d88
commit
37f0c7dcd6
1 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,8 @@
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// First add Base and Numerical to exports, then inject all exports into
|
// First add Base and a couple of other objects that are not automatically
|
||||||
|
// exported to exports (Numerical, Key, etc), then inject all exports into
|
||||||
// PaperScope, and create the initial paper object, all in one statement:
|
// PaperScope, and create the initial paper object, all in one statement:
|
||||||
paper = new (PaperScope.inject(Base.merge(Base.exports, {
|
paper = new (PaperScope.inject(Base.merge(Base.exports, {
|
||||||
// Mark fields as enumeralbe so PaperScope.inject can pick them up
|
// Mark fields as enumeralbe so PaperScope.inject can pick them up
|
||||||
|
@ -18,7 +19,8 @@ paper = new (PaperScope.inject(Base.merge(Base.exports, {
|
||||||
Base: Base,
|
Base: Base,
|
||||||
Numerical: Numerical,
|
Numerical: Numerical,
|
||||||
DomElement: DomElement,
|
DomElement: DomElement,
|
||||||
DomEvent: DomEvent
|
DomEvent: DomEvent,
|
||||||
|
Key: Key
|
||||||
})))();
|
})))();
|
||||||
|
|
||||||
// Support AMD (e.g. require.js)
|
// Support AMD (e.g. require.js)
|
||||||
|
|
Loading…
Reference in a new issue