diff --git a/src/build.js b/src/build.js index b3683b10..76ee031a 100644 --- a/src/build.js +++ b/src/build.js @@ -39,6 +39,14 @@ var paper = new function() { #include "util/CanvasProvider.js" #include "util/MathUtils.js" -return paper.populate(); +// Inject all prototypes from the paper scope into the paper object. +return Base.each(['Point', 'Size', 'Rectangle', 'Matrix', 'DocumentView', 'Doc', + 'Symbol', 'Item', 'Group', 'Layer', 'Raster', 'PlacedSymbol', 'PathStyle', + 'Segment', 'Curve', 'PathItem', 'Path', 'CompoundPath', 'Color', 'RGBColor', + 'GrayColor', 'GradientColor', 'Gradient', 'GradientStop', 'ToolEvent', + 'ToolHandler', 'Tool'], + function(name) { + this[name] = eval(name); + }, paper); }; diff --git a/src/paper.js b/src/paper.js index 23548839..f1f1b735 100644 --- a/src/paper.js +++ b/src/paper.js @@ -2,19 +2,6 @@ var paper = { document: null, documents: [], - populate: function() { - // Inject all prototypes from the paper scope into the paper object. - // return this so build.js can use 'return paper.populate()'. - return Base.each(['Point', 'Size', 'Rectangle', 'Matrix', 'DocumentView', - 'Doc', 'Symbol', 'Item', 'Group', 'Layer', 'Raster', 'PlacedSymbol', - 'PathStyle', 'Segment', 'Curve', 'PathItem', 'Path', 'CompoundPath', - 'Color', 'RGBColor', 'GrayColor', 'GradientColor', 'Gradient', - 'GradientStop', 'ToolEvent', 'ToolHandler', 'Tool'], - function(name) { - this[name] = eval(name); - }, this); - }, - install: function(scope) { for (var i in paper) { if (!scope[i])