commenting out jquery magic, pt. 2

This commit is contained in:
Rolux 2010-02-11 01:20:10 +05:30
parent e7c8315ad1
commit 5547b2060e

View File

@ -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))