Skip to main content

Bug Tracker

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.

Attachments (0)
Change History (2)

Changed September 14, 2009 06:53PM UTC by flesler comment:1

cc: → balazs.endresz
owner: → flesler

Changed November 11, 2009 06:43PM UTC by john comment:2

resolution: → fixed
status: newclosed