Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Introduce Form::hasField()
Browse files Browse the repository at this point in the history
  • Loading branch information
njam committed Feb 17, 2015
1 parent df5c802 commit 56d895e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/CM/Form/Abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ var CM_Form_Abstract = CM_View_Abstract.extend({
return this._fields[name];
},

/**
* @return Boolean
*/
hasField: function(name) {
return !!this._fields[name];
},

/**
* @return jQuery
*/
Expand Down

0 comments on commit 56d895e

Please sign in to comment.