flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [19/31] git commit: [flex-asjs] [refs/heads/develop] - lint
Date Tue, 09 Dec 2014 05:17:06 GMT
lint


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

Branch: refs/heads/develop
Commit: 2407811a927875cff0272e2ac22700d68c423adf
Parents: e02fff0
Author: Alex Harui <aharui@apache.org>
Authored: Wed Nov 26 15:57:14 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Dec 8 20:47:43 2014 -0800

----------------------------------------------------------------------
 .../js/FlexJS/src/org/apache/flex/core/ContainerBase.js   | 10 +++++-----
 frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js   |  6 +++---
 frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js |  6 +++---
 .../js/FlexJS/src/org/apache/flex/utils/Language.js       |  2 +-
 .../src/org/apache/flex/utils/MXMLDataInterpreter.js      |  6 +++---
 5 files changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2407811a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
index eed7204..16bbfcf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -31,7 +31,7 @@ org.apache.flex.core.ContainerBase = function() {
    * @type {boolean}
    */
   this.initialized_ = false;
-  
+
   this.document = this;
 
 };
@@ -74,14 +74,14 @@ org.apache.flex.core.ContainerBase.prototype.FLEXJS_CLASS_INFO =
  */
 org.apache.flex.core.ContainerBase.prototype.addedToParent = function() {
   org.apache.flex.core.ContainerBase.base(this, 'addedToParent');
-  
+
   if (!this.initialized_) {
     org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this.document,
-	    this, this.get_MXMLDescriptor());
+        this, this.get_MXMLDescriptor());
 
     this.dispatchEvent('initBindings');
     this.dispatchEvent('initComplete');
-	this.initialized_ = true;
+    this.initialized_ = true;
   }
   this.dispatchEvent('childrenAdded');
 };
@@ -114,6 +114,6 @@ org.apache.flex.core.ContainerBase.prototype.setMXMLDescriptor =
     function(doc, desc) {
   this.mxmlDescriptor = desc;
   this.document = doc;
-}
+};
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2407811a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
index 6c95b56..dc8f649 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -186,11 +186,11 @@ org.apache.flex.core.UIBase.prototype.addedToParent = function() {
 
   if (this.beads) {
     var n = this.beads.length;
-	for (var i = 0; i < n; i++) {
+    for (var i = 0; i < n; i++) {
       this.addBead(this.beads[i]);
-	}
+    }
   }
-  
+
   /**
    * @type {Function}
    */

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2407811a/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 17cf1bc..432b810 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -54,7 +54,7 @@ org.apache.flex.core.ViewBase = function() {
    * @type {boolean}
    */
   this.initialized_ = false;
-  
+
   this.document = this;
 
 };
@@ -111,7 +111,7 @@ org.apache.flex.core.ViewBase.prototype.setMXMLDescriptor =
     function(doc, desc) {
   this.MXMLDescriptor = desc;
   this.document = doc;
-}
+};
 
 
 /**
@@ -125,7 +125,7 @@ org.apache.flex.core.ViewBase.prototype.addedToParent = function() {
     org.apache.flex.core.ValuesManager.valuesImpl.init(this);
   }
 
-  org.apache.flex.core.ViewBase.base(this, 'addedToParent')
+  org.apache.flex.core.ViewBase.base(this, 'addedToParent');
 
   if (!this.initialized_) {
     org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this.document,

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2407811a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
index 5c5d9a0..f29433d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -126,7 +126,7 @@ org.apache.flex.utils.Language.is = function(leftOperand, rightOperand)
{
     return rightOperand === Number;
   if (rightOperand === Array && Array.isArray(leftOperand))
     return true;
-  if (leftOperand.FLEXJS_CLASS_INFO == undefined)
+  if (leftOperand.FLEXJS_CLASS_INFO === undefined)
     return false; // could be a function but not an instance
   if (leftOperand.FLEXJS_CLASS_INFO.interfaces) {
     if (checkInterfaces(leftOperand)) {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2407811a/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
index 03b873b..42c7fd0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
@@ -268,8 +268,8 @@ org.apache.flex.utils.MXMLDataInterpreter.initializeStrandBasedObject
=
   }
 
   children = data[i++];
-  if (children && comp["setMXMLDescriptor"]) {
-    comp["setMXMLDescriptor"](document, children);
+  if (children && comp['setMXMLDescriptor']) {
+    comp['setMXMLDescriptor'](document, children);
   }
   if (parent && org.apache.flex.utils.Language.is(comp,
       org.apache.flex.core.IUIBase)) {
@@ -277,7 +277,7 @@ org.apache.flex.utils.MXMLDataInterpreter.initializeStrandBasedObject
=
   }
 
   if (children) {
-    if (!comp["setMXMLDescriptor"]) {
+    if (!comp['setMXMLDescriptor']) {
       self = org.apache.flex.utils.MXMLDataInterpreter;
       self.generateMXMLInstances(
             document, comp, children);


Mime
View raw message