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


Ignore:
Timestamp:
Aug 16, 2013, 7:08:36 PM (9 years ago)
Author:
ben hockey
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17390, comment 1

    initial v1  
    11In order to preserve getters/setters, I think you really want something like this (you really don't want to set constraints on the prototype, you want to set them on the constructor)
    22
    3 {{{
    4 
     3{{{#!js
    54declare(ValidationTextBox, {
    6   constructor: function(params){
    7     constraints: {allowCruft: false},
    8     pattern: dojox.validate.regexp.emailAddress
     5  pattern: dojox.validate.regexp.emailAddress,
     6  constructor: function () {
     7    this.constraints = { allowCruft: false };
    98  }
    109});
    11 
    1210}}}