Opened 10 years ago

Closed 10 years ago

#10862 closed defect (duplicate)

dojox.data.JsonRestStore never send parentInfo to its listener on its onNew() event

Reported by: riceyeh Owned by: anonymous
Priority: high Milestone: tbd
Component: DojoX Data Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

dojox.data.JsonRestStore? never send parentInfo to its listener on its onNew() event. dojox.data.JsonRestStore? call its onNew method on its _constructor function at line 131 as shown below

this._constructor = function(data){

constructor.call(this, data); self.onNew(this);

}

_constructor is a constructor and called at line 158 as shown below, where parentInfo gets lost when passing to _constructor.

data = new this._constructor(data);

A correct timing to invoking onNew event is after completion of data construction and have the new constructed data added to its parent's children, instead of during data construction.

Change History (1)

comment:1 Changed 10 years ago by bill

Component: GeneralDojoX Data
Resolution: duplicate
Status: newclosed

Dup of #9801, and see also #10706.

Note: See TracTickets for help on using tickets.