aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2013-08-09 00:12:19 -0700
committerIgor Minar2013-08-09 00:12:19 -0700
commit3824e40011df1c0fdf5964d78776f1a12a29c144 (patch)
treeb568107b9ed8ec9158b37aaa3fec013ffc460959
parent953fa4cd1631e77cd8ddf321b968fcbd9e3a10f2 (diff)
downloadangular.js-3824e40011df1c0fdf5964d78776f1a12a29c144.tar.bz2
fix(jqLite): properly detect unsupported calls for on()/off()
-rw-r--r--src/jqLite.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index dbd57447..76031182 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -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');