I am trying to edit every function under the UI
"class" to return their first argument but still run their native code.
Here is what I have tried:
for(var i in UI) {
var cur = UI[i];
UI[i] = function() {
cur.call(this, arguments);
return arguments[0];
}
}
This returns my arguments but no longer runs the original function correctly as the UI element is not called.
Thanks in advance.