Fixes #2824 — create() triggering an improper parse()

This commit is contained in:
Jeremy Ashkenas
2013-11-09 10:57:48 -03:00
parent 19dcf9f1c5
commit 9280d855e3

View File

@@ -876,7 +876,7 @@
if (!options.wait) this.add(model, options);
var collection = this;
var success = options.success;
options.success = function(model, resp, options) {
options.success = function(model, resp) {
if (options.wait) collection.add(model, options);
if (success) success(model, resp, options);
};