aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 1e6ed970..ff537a09 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -145,9 +145,9 @@ error = noop;
function click(element) {
element = jqLite(element);
- if ( (msie || jqLite == window.jQuery) &&
+ if ( msie &&
nodeName(element) == 'INPUT' && (lowercase(element.attr('type')) == 'radio' || lowercase(element.attr('type')) == 'checkbox')) {
element[0].checked = ! element[0].checked;
}
- element.trigger('click');
+ JQLite.prototype.trigger.call(element, 'click');
}