Add reset to the list of destructive commands

master 0.6.0
Michael Hart 2012-06-13 17:41:28 +10:00 committed by Pavan Kumar Sunkara
parent 26d81e8dca
commit 6cbc323005
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ Provider.prototype.save = function (value, callback) {
Provider.prototype._execute = function (action, syncLength /* [arguments] */) {
var args = Array.prototype.slice.call(arguments, 2),
callback = typeof args[args.length - 1] === 'function' && args.pop(),
destructive = ['set', 'clear', 'merge'].indexOf(action) !== -1,
destructive = ['set', 'clear', 'merge', 'reset'].indexOf(action) !== -1,
self = this,
response,
mergeObjs = [];