Add a comment for why starting at '' - avoids infinite loops in set_value() / set_select_options()

This commit is contained in:
Nathan Gray 2014-02-05 16:34:32 +00:00
parent 0af573a3e1
commit 565ead7288

View File

@ -94,6 +94,7 @@ var et2_selectbox = et2_inputWidget.extend(
this._super.apply(this, arguments); this._super.apply(this, arguments);
this.input = null; this.input = null;
// Start at '' to avoid infinite loops while setting value/select options
this.value = ''; this.value = '';
// Allow no other widgets inside this one // Allow no other widgets inside this one