Changes between Initial Version and Version 1 of Ticket #15582, comment 1


Ignore:
Timestamp:
Jun 29, 2012, 6:36:58 AM (9 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15582, comment 1

    initial v1  
    1 Probably this is by design; note that declared() classes have an extend method to do what you want:
    2 
    3  {{{
    4 dojo.declare('test.Father', null, {
    5         constructor: function() {
    6                 forcare.fatherCtorCount++;
    7         },
    8         getName: function() {
    9                 return 'father';
    10         }
    11 });
    12 
    13 test.Father.extend({
    14         getName : function() {
    15                 return 'god' + this.inherited('getName', arguments);
    16         }
    17 });
    18 }}}