On 11/30/06, Dave Methvin <[EMAIL PROTECTED]> wrote:
> I don't know if this a good idiom; changing the object type within the chain
> might be be too tricky. Also, would the plugin itself have a need for
> chained methods to change its internal state? Still, to make your object
> chainable like that, I think your $().grid method would just need to save
> its jQuery "this" in your Grid object before returning:
>
> jQuery.fn.grid = function() {
>   var gridObject = // ... get your grid object ...
>   gridObject.jQuery = this;
>   return gridObject;
> }
> jQuery.fn.drig = function() {
>   return this.jQuery;
> }

Why not just extend .end() for something like this.

--
Brandon Aaron

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to