[jQuery] $.fn.setObj
[jQuery] $.fn.setObj
I'm trying to make a simple plugin to set the Object (like find does)
so the $.end() can be used later. This function seems to work within
itself (if I output the variables), but once I check the variables
outside the function they haven't changed. Any ideas or thoughts?
$.fn.setObj = function(o) {
var old = [];
this.each(function(){ old[old.length] = this; });
this.old = old;
this.cur = o;
return this;
}
~Sean
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/