commenting out jquery magic, pt. 2
This commit is contained in:
parent
e7c8315ad1
commit
5547b2060e
|
@ -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 New Issue
Block a user