[Pkg-javascript-commits] [backbone] 08/37: ensure `options` is present
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:02:46 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.9.1
in repository backbone.
commit 7a486392f1b7af4bc1050e2b71490a4e9274d952
Author: Brad Dunbar <dunbarb2 at gmail.com>
Date: Tue Jan 31 10:21:56 2012 -0500
ensure `options` is present
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index bca4595..f5ab94d 100644
--- a/backbone.js
+++ b/backbone.js
@@ -425,7 +425,7 @@
attrs = _.extend({}, this.attributes, attrs);
var error = this.validate(attrs, options);
if (!error) return true;
- if (options.error) {
+ if (options && options.error) {
options.error(this, error, options);
} else {
this.trigger('error', this, error, options);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list