Swap out to === for the true comparison to avoid possible coercion issues

This commit is contained in:
Travis Swicegood 2012-05-16 13:40:24 -05:00
parent 6e3b9962cc
commit f92c7c5df2
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@
$(actionCheckboxes).click(function(event) {
if (!event) { event = window.event; }
var target = event.target ? event.target : event.srcElement;
if (lastChecked && $.data(lastChecked) != $.data(target) && event.shiftKey == true) {
if (lastChecked && $.data(lastChecked) != $.data(target) && event.shiftKey === true) {
var inrange = false;
$(lastChecked).attr("checked", target.checked)
.parent().parent().toggleClass(options.selectedClass, target.checked);