Skip to content

Commit

Permalink
Check for this.$help in setError
Browse files Browse the repository at this point in the history
  • Loading branch information
powmedia committed Mar 1, 2012
1 parent 7773a6a commit 7325fdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backbone-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@
var errClass = Form.classNames.error;

this.$el.addClass(errClass);
this.$help.html(errMsg);

if (this.$help) this.$help.html(errMsg);
},

/**
Expand Down

0 comments on commit 7325fdb

Please sign in to comment.