From 4bed3130b86da5089548f39b733d20b1b3af16e5 Mon Sep 17 00:00:00 2001 From: Justin D'Arcangelo Date: Tue, 29 Jul 2014 20:33:27 -0400 Subject: [PATCH] Add support for viewCleanup() method --- .gitignore | 1 + angular-pouchdb.coffee | 1 + angular-pouchdb.js | 12 +++--------- bower.json | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index f662f47..3467ed6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.*~ bower_components +node_modules diff --git a/angular-pouchdb.coffee b/angular-pouchdb.coffee index 6490af4..67a429e 100644 --- a/angular-pouchdb.coffee +++ b/angular-pouchdb.coffee @@ -103,6 +103,7 @@ pouchdb.provider 'pouchdb', -> from: db.replicate.from.bind(db) sync: db.replicate.sync.bind(db) destroy: qify db.destroy.bind(db) + viewCleanup: qify db.viewCleanup.bind(db) ] # pouch-repeat="name in collection" diff --git a/angular-pouchdb.js b/angular-pouchdb.js index 385592b..b685a45 100644 --- a/angular-pouchdb.js +++ b/angular-pouchdb.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 1.4.0 +// Generated by CoffeeScript 1.7.1 /* The MIT License @@ -22,8 +22,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - + */ (function() { var concat, exists, indexOf, pouchdb, slice, sortedIndex; @@ -124,12 +123,7 @@ THE SOFTWARE. info: qify(db.info.bind(db)), compact: qify(db.compact.bind(db)), revsDiff: qify(db.revsDiff.bind(db)), - replicate: { - to: db.replicate.to.bind(db), - from: db.replicate.from.bind(db), - sync: db.replicate.sync.bind(db) - }, - destroy: qify(db.destroy.bind(db)) + viewCleanup: qify(db.viewCleanup.bind(db)) }; } }; diff --git a/bower.json b/bower.json index 3e09b36..fa8217b 100644 --- a/bower.json +++ b/bower.json @@ -21,7 +21,7 @@ ], "dependencies": { "angular": "~1.2.3", - "pouchdb": "~2.0.1" + "pouchdb": "~3.0.1" }, "devDependencies": { "angular-mocks": "~1.2.3"