Opened 8 years ago
Last modified 6 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 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 8 years ago by
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. """
There are also the following typos in the docstring: using a »methoid« property This method cannot »me« called
comment:3 Changed 7 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
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 7 years ago by
Owner: | set to Eugene Lazutkin |
---|---|
Status: | reopened → assigned |
comment:5 Changed 7 years ago by
Component: | Core → Documentation |
---|---|
Milestone: | tbd → 1.12 |
comment:6 Changed 7 years ago by
Owner: | changed from Eugene Lazutkin to dylan |
---|
comment:7 Changed 6 years ago by
Milestone: | 1.13 → 1.15 |
---|
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.
In that case you should be calling getInherited(), for example see https://github.com/dojo/dojox/blob/master/html/_base.js#L327.