Changes between Initial Version and Version 1 of Ticket #17390, comment 1
- Timestamp:
- Aug 16, 2013, 7:08:36 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17390, comment 1
initial v1 1 1 In 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) 2 2 3 {{{ 4 3 {{{#!js 5 4 declare(ValidationTextBox, { 6 constructor: function(params){7 constraints: {allowCruft: false},8 pattern: dojox.validate.regexp.emailAddress5 pattern: dojox.validate.regexp.emailAddress, 6 constructor: function () { 7 this.constraints = { allowCruft: false }; 9 8 } 10 9 }); 11 12 10 }}}