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

Commit

Permalink
Correct some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiefolsom committed Aug 18, 2015
1 parent bbdeabb commit 0e6de40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/static/ui/js/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,17 @@ define("utils", ["jquery", "lodash", "react", "select2"],
}
},
applySelect2: function () {
//this function can be used only if the component has been mounted
// This function can be used only if the component has been mounted
var thiz = this;
var isMultiTerms = this.props.multiple;

//not allowing the clear for the multi terms dropdown
// Either use the value set when the component is instantiated, or set a default.
var allowClear = this.props.allowClear;
if (this.props.allowClear === undefined) {
allowClear = !isMultiTerms;
}

//apply select2 to the right elements
// Apply select2 to the right elements
var parent = React.findDOMNode(this);
var $select = $(parent).find('select').first();

Expand Down

0 comments on commit 0e6de40

Please sign in to comment.