You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/03/06 09:29:33 UTC
git commit: [flex-asjs] [refs/heads/develop] - Added
'stopPropagation' on the original event and made the handler's visibility
'private' to prevent the method being overridden.
Repository: flex-asjs
Updated Branches:
refs/heads/develop 8fd96fcad -> 455273f4c
Added 'stopPropagation' on the original event and made the handler's visibility 'private' to prevent the method being overridden.
Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/455273f4
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/455273f4
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/455273f4
Branch: refs/heads/develop
Commit: 455273f4c06dc6cfb12cf6c0edbb6395347e098d
Parents: 8fd96fc
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Thu Mar 6 09:26:35 2014 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Thu Mar 6 09:26:35 2014 +0100
----------------------------------------------------------------------
.../src/org/apache/flex/html/staticControls/TextInput.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/455273f4/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextInput.js
index 422b57c..a71acfb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TextInput.js
@@ -50,7 +50,7 @@ org.apache.flex.html.staticControls.TextInput.prototype.createElement =
//attach input handler to dispatch flexjs change event when user write in textinput
var ih = new goog.events.InputHandler(this.element);
- goog.events.listen(ih, goog.events.InputHandler.EventType.INPUT, goog.bind(this.inputChangeHandler, this));
+ goog.events.listen(ih, goog.events.InputHandler.EventType.INPUT, goog.bind(this.inputChangeHandler_, this));
this.positioner = this.element;
this.element.flexjs_wrapper = this;
@@ -79,10 +79,12 @@ org.apache.flex.html.staticControls.TextInput.prototype.set_text =
/**
- * @expose
+ * @private
* @param {Object} event The event.
*/
-org.apache.flex.html.staticControls.TextInput.prototype.inputChangeHandler =
+org.apache.flex.html.staticControls.TextInput.prototype.inputChangeHandler_ =
function(event) {
+ event.stopPropagation();
+
this.dispatchEvent(new org.apache.flex.events.Event(org.apache.flex.events.Event.EventType.CHANGE));
};