commenting out jquery magic, pt. 2
This commit is contained in:
parent
dbdd3e4fdb
commit
cf9ecbf01b
1 changed files with 6 additions and 6 deletions
|
@ -776,7 +776,7 @@ requires
|
||||||
that[fn] = function() {
|
that[fn] = function() {
|
||||||
var args = arguments,
|
var args = arguments,
|
||||||
length = args.length,
|
length = args.length,
|
||||||
id, ret, $element;
|
id, ret;
|
||||||
$.each(args, function(i, arg) {
|
$.each(args, function(i, arg) {
|
||||||
// if an ox object was passed
|
// if an ox object was passed
|
||||||
// then pass its $element instead
|
// then pass its $element instead
|
||||||
|
@ -801,15 +801,15 @@ requires
|
||||||
// why does this not work?
|
// why does this not work?
|
||||||
// ret = that.$element[v].apply(this, arguments);
|
// ret = that.$element[v].apply(this, arguments);
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
ret = $element[fn]();
|
ret = that.$element[fn]();
|
||||||
} else if (length == 1) {
|
} else if (length == 1) {
|
||||||
ret = $element[fn](args[0]);
|
ret = that.$element[fn](args[0]);
|
||||||
} else if (length == 2) {
|
} else if (length == 2) {
|
||||||
ret = $element[fn](args[0], args[1]);
|
ret = that.$element[fn](args[0], args[1]);
|
||||||
} else if (length == 3) {
|
} else if (length == 3) {
|
||||||
ret = $element[fn](args[0], args[1], args[2]);
|
ret = that.$element[fn](args[0], args[1], args[2]);
|
||||||
} else if (length == 4) {
|
} else if (length == 4) {
|
||||||
ret = $element[fn](args[0], args[1], args[2], args[3]);
|
ret = that.$element[fn](args[0], args[1], args[2], args[3]);
|
||||||
}
|
}
|
||||||
if (fn == "data") {
|
if (fn == "data") {
|
||||||
// Ox.print("data ret", ret, $(ret))
|
// Ox.print("data ret", ret, $(ret))
|
||||||
|
|
Loading…
Reference in a new issue