Opened 5 years ago

Last modified 3 years ago

#18257 assigned defect

this.inherited('name', arguments, true) with isDebug dojo config fails

Reported by: fbest Owned by: dylan
Priority: undecided Milestone: 1.15
Component: Documentation Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:

Description

if isDebug is set in dojoConfig I run into an exception when calling this.inherited('name', arguments, true) to get only the super method instead of calling it.

TypeError?: Function.prototype.apply: Arguments list has wrong type

Change History (7)

comment:1 Changed 5 years ago by bill

Resolution: invalid
Status: newclosed

to get only the super method instead of calling it

In that case you should be calling getInherited(), for example see https://github.com/dojo/dojox/blob/master/html/_base.js#L327.

comment:2 Changed 5 years ago by fbest

Well at least fix the documentation then and put something into the release notes that this is obsolete/deprecated.

"""newArgs Object Optional If "true", the found function will be returned without executing it. If Array, it will be used to call a super method. Otherwise "args" will be used. """

http://dojotoolkit.org/api/?qs=1.10/dojo/_base/declare.__DeclareCreatedObject#1_10dojo__base_declare___DeclareCreatedObject_inherited

There are also the following typos in the docstring: using a »methoid« property This method cannot »me« called

comment:3 Changed 4 years ago by bill

Resolution: invalid
Status: closedreopened

OK, I'll leave the ticket open in case someone wants to look at this or update the doc. I'm not going to though because I'm not familiar with this code.

comment:4 Changed 4 years ago by bill

Owner: set to Eugene Lazutkin
Status: reopenedassigned

comment:5 Changed 3 years ago by dylan

Component: CoreDocumentation
Milestone: tbd1.12

comment:6 Changed 3 years ago by dylan

Owner: changed from Eugene Lazutkin to dylan

comment:7 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.