diff --git a/src/load.js b/src/load.js index 997d5823..52845f5b 100644 --- a/src/load.js +++ b/src/load.js @@ -22,6 +22,15 @@ var sources = [ 'lib/bootstrap.js', 'lib/parse-js.js', + 'lib/stats.js', + + 'src/browser/Element.js', + 'src/browser/Event.js', + + 'src/util/CanvasProvider.js', + 'src/util/Numerical.js', + 'src/util/PaperScript.js', + 'src/util/BlendMode.js', 'src/paper.js', @@ -64,17 +73,7 @@ var sources = [ 'src/tool/ToolHandler.js', 'src/tool/Tool.js', - 'src/browser/Element.js', - 'src/browser/Event.js', - - 'src/util/BlendMode.js', - 'src/util/CanvasProvider.js', - 'src/util/Numerical.js', - 'src/util/PaperScript.js', - - 'src/ui/Key.js', - - 'lib/Stats.js' + 'src/ui/Key.js' ]; // Load unit tests after library if asked to do so diff --git a/src/paper.js b/src/paper.js index 953236ba..75a830bd 100644 --- a/src/paper.js +++ b/src/paper.js @@ -90,6 +90,16 @@ Base.inject({ } }); +//#ifdef BROWSER +//#include "browser/Element.js" +//#include "browser/Event.js" +//#endif // BROWSER + +//#include "util/CanvasProvider.js" +//#include "util/Numerical.js" +//#include "util/PaperScript.js" +//#include "util/BlendMode.js" + //#include "basic/Point.js" //#include "basic/Size.js" //#include "basic/Rectangle.js" @@ -128,16 +138,6 @@ Base.inject({ //#include "tool/ToolHandler.js" //#include "tool/Tool.js" -//#ifdef BROWSER -//#include "browser/Element.js" -//#include "browser/Event.js" -//#endif // BROWSER - -//#include "util/BlendMode.js" -//#include "util/CanvasProvider.js" -//#include "util/Numerical.js" -//#include "util/PaperScript.js" - //#ifdef BROWSER //#include "ui/Key.js" //#endif // BROWSER