From 4f5dfbc362d9683177708ebcc00c98cf594d1287 Mon Sep 17 00:00:00 2001 From: Ken Sheedlo Date: Wed, 7 Aug 2013 21:55:44 -0700 Subject: fix(jqLite): throw when jqLite#off called with 4 args Closes #3501 --- src/jqLite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jqLite.js b/src/jqLite.js index ae6da9f7..dbd57447 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -193,8 +193,8 @@ function JQLiteDealoc(element){ } } -function JQLiteOff(element, type, fn) { - if ( arguments.length > 4 ) throw jqLiteMinErr('off_args', 'jqLite#off() does not support the `selector` parameter'); +function JQLiteOff(element, type, fn, selector) { + if (isDefined(selector)) throw jqLiteMinErr('off_args', 'jqLite#off() does not support the `selector` argument'); var events = JQLiteExpandoStore(element, 'events'), handle = JQLiteExpandoStore(element, 'handle'); -- cgit v1.2.3