Comparing version 0.0.6 to 0.0.7
10
model.js
@@ -313,3 +313,8 @@ var Emitter = require('emitter'); | ||
Construct.prototype.destroy = function(cb) { | ||
Construct.prototype.destroy = function(query, cb) { | ||
if (!cb) { | ||
cb = query; | ||
query = undefined; | ||
} | ||
var self = this; | ||
@@ -323,3 +328,4 @@ // model was never saved to server | ||
url: self.url, | ||
method: 'DELETE' | ||
method: 'DELETE', | ||
query: query | ||
}; | ||
@@ -326,0 +332,0 @@ |
{ | ||
"name": "bamboo", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": "Roman Shtylman <shtylman@gmail.com>", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
36866
19
974