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() {
|
||||
var args = arguments,
|
||||
length = args.length,
|
||||
id, ret, $element;
|
||||
id, ret;
|
||||
$.each(args, function(i, arg) {
|
||||
// if an ox object was passed
|
||||
// then pass its $element instead
|
||||
|
@ -801,15 +801,15 @@ requires
|
|||
// why does this not work?
|
||||
// ret = that.$element[v].apply(this, arguments);
|
||||
if (length == 0) {
|
||||
ret = $element[fn]();
|
||||
ret = that.$element[fn]();
|
||||
} else if (length == 1) {
|
||||
ret = $element[fn](args[0]);
|
||||
ret = that.$element[fn](args[0]);
|
||||
} else if (length == 2) {
|
||||
ret = $element[fn](args[0], args[1]);
|
||||
ret = that.$element[fn](args[0], args[1]);
|
||||
} 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) {
|
||||
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") {
|
||||
// Ox.print("data ret", ret, $(ret))
|
||||
|
|
Loading…
Reference in a new issue