From 378f52918420e96f9aaa48d088531f2f43df7b7b Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sat, 12 Oct 2013 15:59:08 +0200 Subject: [PATCH] update lawnchair --- src/lib/lawnchair/lawnchair-adapter-indexed-db-git.js | 2 +- src/lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js | 2 +- src/lib/lawnchair/lawnchair-git.js | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/lib/lawnchair/lawnchair-adapter-indexed-db-git.js b/src/lib/lawnchair/lawnchair-adapter-indexed-db-git.js index 4247c16..e0b0d84 100644 --- a/src/lib/lawnchair/lawnchair-adapter-indexed-db-git.js +++ b/src/lib/lawnchair/lawnchair-adapter-indexed-db-git.js @@ -317,7 +317,7 @@ Lawnchair.adapter('indexed-db', (function(){ var key = keyOrArray.key ? keyOrArray.key : keyOrArray; for (var i = 0; i < toDelete.length; i++) { var key = toDelete[i].key ? toDelete[i].key : toDelete[i]; - os.delete(key); + os['delete'](key); }; os.transaction.oncomplete = win; diff --git a/src/lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js b/src/lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js index 9ab5c7e..3bf50ef 100644 --- a/src/lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js +++ b/src/lib/lawnchair/lawnchair-adapter-webkit-sqlite-git.js @@ -184,4 +184,4 @@ Lawnchair.adapter('webkit-sqlite', (function () { return this } ////// -}})()) +}})()); diff --git a/src/lib/lawnchair/lawnchair-git.js b/src/lib/lawnchair/lawnchair-git.js index 6a7c630..bdbd752 100644 --- a/src/lib/lawnchair/lawnchair-git.js +++ b/src/lib/lawnchair/lawnchair-git.js @@ -161,6 +161,13 @@ Lawnchair.prototype = { } // -- }; + +/** + * Expose nodeJS module + */ +if (typeof module !== 'undefined' && module.exports) { + module.exports = Lawnchair; +} // window.name code courtesy Remy Sharp: http://24ways.org/2009/breaking-out-the-edges-of-the-browser Lawnchair.adapter('window-name', (function() { if (typeof window==='undefined') { @@ -290,4 +297,4 @@ Lawnchair.adapter('window-name', (function() { } } ///// -})()) +})()); \ No newline at end of file