mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-22 21:38:00 -05:00
Fix #1391 - Use apply in example to account for variadic usage.
This commit is contained in:
@@ -786,7 +786,7 @@ var PrivateNote = Note.extend({
|
||||
<pre>
|
||||
var Note = Backbone.Model.extend({
|
||||
set: function(attributes, options) {
|
||||
Backbone.Model.prototype.set.call(this, attributes, options);
|
||||
Backbone.Model.prototype.set.apply(this, arguments);
|
||||
...
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user