From a2011ef39c8f0da51a32fb4a0fc58e963d0b3d13 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 24 Dec 2015 11:53:34 -0700 Subject: [PATCH] setText() for MaskEditTextView --- core/mask_edit_text_view.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/mask_edit_text_view.js b/core/mask_edit_text_view.js index a25a2553..f99774e6 100644 --- a/core/mask_edit_text_view.js +++ b/core/mask_edit_text_view.js @@ -103,6 +103,14 @@ MaskEditTextView.maskPatternCharacterRegEx = { '&' : /[\w\d\s]/, // Any "printable" 32-126, 128-255 }; +MaskEditTextView.prototype.setText = function(text) { + MaskEditTextView.super_.prototype.setText.call(this, text); + + if(this.patternArray) { // :TODO: This is a hack - see TextView ctor note about setText() + this.patternArrayPos = this.patternArray.length; + } +}; + MaskEditTextView.prototype.setMaskPattern = function(pattern) { this.dimens.width = pattern.length;