mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Merge constructor._name with _type and use CamelCase for Item types.
This commit is contained in:
parent
293294a55a
commit
3f5d0a6925
19 changed files with 29 additions and 44 deletions
|
@ -50,12 +50,10 @@ var context = vm.createContext({
|
|||
// Load Paper.js library files:
|
||||
context.include('paper.js');
|
||||
|
||||
// Export all classes through PaperScope:
|
||||
context.Base.each(context, function(val, key) {
|
||||
if (val && val.prototype instanceof context.Base) {
|
||||
val._name = key;
|
||||
// Export all classes through PaperScope:
|
||||
if (val && val.prototype instanceof context.Base)
|
||||
context.PaperScope.prototype[key] = val;
|
||||
}
|
||||
});
|
||||
context.PaperScope.prototype['Canvas'] = context.Canvas;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue