mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-14 15:08:53 -04:00
Switch from options.browser and options.node to options.environment
This commit is contained in:
parent
6b45a9382c
commit
c68a7d33da
10 changed files with 42 additions and 39 deletions
src/ui
|
@ -188,7 +188,7 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
|
|||
};
|
||||
});
|
||||
|
||||
/*#*/ if (options.node) {
|
||||
/*#*/ if (options.environment == 'node') {
|
||||
// Node.js based image exporting code.
|
||||
CanvasView.inject(new function() {
|
||||
// Utility function that converts a number to a string with
|
||||
|
@ -273,4 +273,4 @@ CanvasView.inject(new function() {
|
|||
}
|
||||
};
|
||||
});
|
||||
/*#*/ } // options.node
|
||||
/*#*/ } // options.environment == 'node'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue