diff options
| author | Ken Sheedlo | 2013-08-07 21:55:44 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-08-08 22:40:04 -0700 |
| commit | 4f5dfbc362d9683177708ebcc00c98cf594d1287 (patch) | |
| tree | e738dde764bfcb8dbfbdcab21992a0b78e04bee6 /src | |
| parent | 5c560117425e7b3f7270389274476e843d6f69ec (diff) | |
| download | angular.js-4f5dfbc362d9683177708ebcc00c98cf594d1287.tar.bz2 | |
fix(jqLite): throw when jqLite#off called with 4 args
Closes #3501
Diffstat (limited to 'src')
| -rw-r--r-- | src/jqLite.js | 4 |
1 files changed, 2 insertions, 2 deletions
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'); |
