mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-30 13:00:29 +00:00
fix(jqLite): properly detect unsupported calls for on()/off()
This commit is contained in:
parent
953fa4cd16
commit
3824e40011
1 changed files with 4 additions and 4 deletions
|
|
@ -193,8 +193,8 @@ function JQLiteDealoc(element){
|
|||
}
|
||||
}
|
||||
|
||||
function JQLiteOff(element, type, fn, selector) {
|
||||
if (isDefined(selector)) throw jqLiteMinErr('off_args', 'jqLite#off() does not support the `selector` argument');
|
||||
function JQLiteOff(element, type, fn, unsupported) {
|
||||
if (isDefined(unsupported)) throw jqLiteMinErr('off_args', 'jqLite#off() does not support the `selector` argument');
|
||||
|
||||
var events = JQLiteExpandoStore(element, 'events'),
|
||||
handle = JQLiteExpandoStore(element, 'handle');
|
||||
|
|
@ -632,8 +632,8 @@ forEach({
|
|||
|
||||
dealoc: JQLiteDealoc,
|
||||
|
||||
on: function onFn(element, type, fn, other1){
|
||||
if ( isDefined(other1) ) throw jqLiteMinErr('on_args', 'jqLite#on() does not support the `selector` or `eventData` parameters');
|
||||
on: function onFn(element, type, fn, unsupported){
|
||||
if (isDefined(unsupported)) throw jqLiteMinErr('on_args', 'jqLite#on() does not support the `selector` or `eventData` parameters');
|
||||
|
||||
var events = JQLiteExpandoStore(element, 'events'),
|
||||
handle = JQLiteExpandoStore(element, 'handle');
|
||||
|
|
|
|||
Loading…
Reference in a new issue