Switch from options.browser and options.node to options.environment

This commit is contained in:
Jürg Lehni 2013-10-10 23:09:00 +02:00
parent 6b45a9382c
commit c68a7d33da
10 changed files with 42 additions and 39 deletions

View file

@ -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'