Bug Tracker

Opened 10 years ago

Closed 10 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 10 years ago by flesler

Cc: balazs.endresz added
Owner: set to flesler

comment:2 Changed 10 years ago by john

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.