Skip to content

Commit bd3bd55

Browse files
committed
Allow chaining for .select2('readonly', ...)
1 parent 596cf52 commit bd3bd55

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

select2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,12 +1146,11 @@ the specific language governing permissions and limitations under the Apache Lic
11461146
// abstract
11471147
readonly: function(enabled) {
11481148
if (enabled === undefined) enabled = false;
1149-
if (this._readonly === enabled) return false;
1149+
if (this._readonly === enabled) return;
11501150
this._readonly = enabled;
11511151

11521152
this.opts.element.prop("readonly", enabled);
11531153
this.enableInterface();
1154-
return true;
11551154
},
11561155

11571156
// abstract

0 commit comments

Comments
 (0)