flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [01/28] git commit: [flex-asjs] [refs/heads/develop] - need bubbles and cancelable params so cross-compile works
Date Tue, 23 Dec 2014 07:41:24 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 23b46651f -> 22c78cef6


need bubbles and cancelable params so cross-compile works


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/51951036
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/51951036
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/51951036

Branch: refs/heads/develop
Commit: 51951036d353c48450a2bd975cafd9dacfa4b641
Parents: 23b4665
Author: Alex Harui <aharui@apache.org>
Authored: Wed Dec 17 07:39:59 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Dec 17 07:39:59 2014 -0800

----------------------------------------------------------------------
 .../js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js     | 5 +++--
 frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js      | 2 +-
 .../js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js   | 6 ++++--
 3 files changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/51951036/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
index 1e5e701..79646a1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
@@ -85,8 +85,9 @@ org.apache.flex.core.SimpleStatesImpl.prototype.initialStateHandler_ =
      *  @type {Object}
     **/
     var host = this.strand_;
-    this.dispatchEvent(new org.apache.flex.events.ValueChangeEvent('currentStateChanged',
null,
-      host.get_currentState()));
+    this.dispatchEvent(new org.apache.flex.events.ValueChangeEvent('currentStateChanged',
+        false, false, null,
+        host.get_currentState()));
   };
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/51951036/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
index ac42291..1c0029a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -216,7 +216,7 @@ org.apache.flex.core.ViewBase.prototype.get_currentState = function()
{
  */
 org.apache.flex.core.ViewBase.prototype.set_currentState = function(value) {
   var event = new org.apache.flex.events.ValueChangeEvent(
-      'currentStateChanged', this.currentState_, value);
+      'currentStateChanged', false, false, this.currentState_, value);
   this.currentState_ = value;
   this.dispatchEvent(event);
 };

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/51951036/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js b/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
index 79fd734..c54e9e7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
@@ -22,10 +22,12 @@ goog.require('goog.events.Event');
  * @constructor
  * @extends {goog.events.Event}
  * @param {string} type The event type.
+ * @param {boolean} b The bubbles parameter.
+ * @param {boolean} c The cancelable parameter.
  * @param {*} ov The old value.
  * @param {*} nv The new value.
  */
-org.apache.flex.events.ValueChangeEvent = function(type, ov, nv) {
+org.apache.flex.events.ValueChangeEvent = function(type, b, c, ov, nv) {
   org.apache.flex.events.ValueChangeEvent.base(this, 'constructor', type);
 
   this.type = type;
@@ -103,7 +105,7 @@ org.apache.flex.events.ValueChangeEvent.createUpdateEvent =
     {
   var event = new org.apache.flex.events.ValueChangeEvent(
       org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE,
-      oldValue, newValue);
+      false, false, oldValue, newValue);
   event.propertyName = name;
   event.source = source;
   return event;


Mime
View raw message