flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [6/6] git commit: some fixes for test case
Date Fri, 12 Apr 2013 07:02:22 GMT
some fixes for test case


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

Branch: refs/heads/develop
Commit: 02eba99773dbc1a2580758690b6016af1079b3df
Parents: ebdc5a7
Author: Alex Harui <aharui@apache.org>
Authored: Thu Apr 11 23:59:04 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Apr 12 00:00:35 2013 -0700

----------------------------------------------------------------------
 .../src/StockDataJSONItemConverter.as              |    2 ++
 .../src/org/apache/flex/core/HTMLElementWrapper.js |    1 +
 .../flex/html/staticControls/DropDownList.js       |    6 +++---
 .../org/apache/flex/html/staticControls/List.js    |    6 +++---
 4 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as b/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
index c381db1..2483ce0 100644
--- a/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
+++ b/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
@@ -30,6 +30,8 @@ package
         override public function convertItem(data:String):Object
         {
             var obj:Object = super.convertItem(data);
+			if (obj['query']['results'] == null)
+				return 'No Quote Available';
             return obj['query']['results']['quote']['Ask'];
         }
     }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
index 95157d8..ec837af 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -15,6 +15,7 @@
 goog.provide('org.apache.flex.core.HTMLElementWrapper');
 
 goog.require('org.apache.flex.FlexObject');
+goog.require('org.apache.flex.events.EventDispatcher');
 goog.require('org.apache.flex.utils.IE8Utils');
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
index 5d315ed..f6d15e5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
@@ -41,8 +41,8 @@ goog.inherits(
  */
 org.apache.flex.html.staticControls.DropDownList.prototype.addToParent = function(p) {
     this.element = document.createElement('select');
-    this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
-                this, this.changeHandler);
+    //this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
+    //            this, this.changeHandler);
                 
     p.appendChild(this.element);
 
@@ -138,7 +138,7 @@ function(value) {
  */
 org.apache.flex.html.staticControls.DropDownList.prototype.changeHandler =
 function() {
-    evt = this.createEvent('change');
+    var evt = this.createEvent('change');
     this.dispatchEvent(evt);
 };
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
index 8986501..911b72b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
@@ -41,8 +41,8 @@ goog.inherits(
  */
 org.apache.flex.html.staticControls.List.prototype.addToParent = function(p) {
     this.element = document.createElement('select');
-    this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
-                this, this.changeHandler);
+    //this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
+    //            this, this.changeHandler);
     this.element.size = 5;
                 
     p.appendChild(this.element);
@@ -139,7 +139,7 @@ function(value) {
  */
 org.apache.flex.html.staticControls.List.prototype.changeHandler =
 function() {
-    evt = this.createEvent('change');
+    var evt = this.createEvent('change');
     this.dispatchEvent(evt);
 };
 


Mime
View raw message