Permalink
Browse files

Provide my own mixin to replace vanished process.mixin

  • Loading branch information...
1 parent 8a2e068 commit 760b3ac2870a7bfba3389282a4d4d2d3069c5b9f @grumdrig committed Sep 20, 2010
Showing with 9 additions and 2 deletions.
  1. +9 −2 sqlite.js
View
@@ -16,9 +16,16 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
// TODO: async
+function mixin(target, source) {
+ for (var name in source) {
+ if (source.hasOwnProperty(name))
+ target[name] = source[name];
+ }
+}
+
var bindings = require("./sqlite3_bindings");
-process.mixin(GLOBAL, bindings);
-process.mixin(exports, bindings);
+mixin(GLOBAL, bindings);
+mixin(exports, bindings);
// Conform somewhat to http://dev.w3.org/html5/webdatabase/#sql

0 comments on commit 760b3ac

Please sign in to comment.