Add reset to the list of destructive commands
This commit is contained in:
parent
26d81e8dca
commit
6cbc323005
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ Provider.prototype.save = function (value, callback) {
|
||||||
Provider.prototype._execute = function (action, syncLength /* [arguments] */) {
|
Provider.prototype._execute = function (action, syncLength /* [arguments] */) {
|
||||||
var args = Array.prototype.slice.call(arguments, 2),
|
var args = Array.prototype.slice.call(arguments, 2),
|
||||||
callback = typeof args[args.length - 1] === 'function' && args.pop(),
|
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,
|
self = this,
|
||||||
response,
|
response,
|
||||||
mergeObjs = [];
|
mergeObjs = [];
|
||||||
|
|
Loading…
Reference in a new issue