Side navigation
#4955 closed bug (fixed)
Opened July 23, 2009 08:34AM UTC
Closed November 11, 2009 06:43PM UTC
Changeset 6449, init method now causes troube if called after initialization
Reported by: | balazs.endresz | Owned by: | flesler |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | core | Version: | |
Keywords: | Cc: | balazs.endresz | |
Blocked by: | Blocking: |
Description
this.length = 1;
has been changed to
this.length++;
which means you can no longer call $jqObj.init( DOMElement )
, which is useful if you want to use a flyweight object.
More info here:
http://en.wikipedia.org/wiki/Flyweight_pattern
And an implementation in Extjs:
http://extjs.com/deploy/dev/docs/source/Element.html#method-Ext.Element-fly
, which is not the same thing but $.fn.init
could be used for the same purpose.