Opened 12 years ago

Closed 12 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);
  }
});

Change History (1)

comment:1 Changed 12 years ago by sjmiles

Resolution: fixed
Status: newclosed

(In [10408]) Add 'extend' method to declared classes (not instances), fixes #4348.

Note: See TracTickets for help on using tickets.