Skip to content

Commit

Permalink
added support for data-locked=true next to locked=locked attr. fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaynberg committed Jun 26, 2013
1 parent 4969dcb commit 75edea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ the specific language governing permissions and limitations under the Apache Lic
element: element.get(),
css: element.attr("class"),
disabled: element.prop("disabled"),
locked: equal(element.attr("locked"), "locked")
locked: equal(element.attr("locked"), "locked") || equal(element.data("locked"), true)
};
} else if (element.is("optgroup")) {
return {
Expand Down

0 comments on commit 75edea8

Please sign in to comment.