Add reset to the list of destructive commands

This commit is contained in:
Michael Hart 2012-06-13 17:41:28 +10:00 committed by Pavan Kumar Sunkara
parent 26d81e8dca
commit 6cbc323005

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 = [];