Permalink
Browse files

Remove process.mixin (Thanks to andyvanwagoner)

  • Loading branch information...
1 parent 774555a commit b8ceacb6242b239c282a083f84e6ff59c8beaef3 taggon committed Apr 23, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 gd.js
View
6 gd.js
@@ -14,13 +14,13 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-// TODO: async
-
var sys = require('sys');
var fs = require("fs");
var bind = require("./gd_bindings");
-process.mixin(exports, bind);
+for(var p in bind) {
+ if (bind[p] !== undefined) exports[p] = bind[p];
+}
var formats = {
jpeg : [1,2], // format : arguments' length [open, save]

0 comments on commit b8ceacb

Please sign in to comment.