Opened 15 years ago
Closed 15 years ago
#4348 closed enhancement (fixed)
Add extension mechanims to declare that supports name-free 'inherited'
Reported by: | sjmiles | Owned by: | sjmiles |
---|---|---|---|
Priority: | low | Milestone: | 1.0 |
Component: | Core | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Declare names functional properties so that a short-form of 'inherited' can be used.
dojo.declare("myClass", null, { method: function() { // .. code ... this.inherited(arguments); } }
Alter declare to add an 'extend' method onto declared classes such that class extensions can also use short-form 'inherited'.
myClass.extend({ extension: function() { // .. code ... this.inherited(arguments); } });
Note: See
TracTickets for help on using
tickets.
(In [10408]) Add 'extend' method to declared classes (not instances), fixes #4348.