Opened 14 years ago
Closed 14 years ago
#4955 closed bug (fixed)
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.
Change History (2)
comment:1 Changed 14 years ago by
Cc: | balazs.endresz added |
---|---|
Owner: | set to flesler |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fixed: http://github.com/jquery/jquery/commit/dee8e45ef35b4e97693a03c8199e7556823cf5c3