documentcloud/backbone — Issue #1074: Backbone unset bug
Author: guy-sadger
Created: 2012-03-07 15:27:02+00:00
State: open

var model = new Backbone.Model.extend({

});
var SILENT = {silent: true};

model.set('foo', 'bar'); // this works
model.unset('foo', SILENT); // this changes SILENT to {silent:true, unset:true}
model.set('foo', 'bar2'); // this will not work now because of the new value of SILENT