flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [38/47] git commit: [flex-asjs] [refs/heads/develop] - lint
Date Wed, 08 Apr 2015 23:05:57 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/26e26676
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/26e26676
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/26e26676

Branch: refs/heads/develop
Commit: 26e266765bbe8dea4832f75e834386f1af1ac2b7
Parents: 5c486ee
Author: Alex Harui <aharui@apache.org>
Authored: Tue Apr 7 11:03:49 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Apr 7 11:03:49 2015 -0700

----------------------------------------------------------------------
 .../org/apache/flex/core/HTMLElementWrapper.js  |  11 +-
 .../org/apache/flex/core/SimpleCSSValuesImpl.js |   4 +-
 .../src/org/apache/flex/events/BrowserEvent.js  | 161 ++++++++++---------
 .../src/org/apache/flex/events/DragEvent.js     |   2 +-
 .../src/org/apache/flex/events/MouseEvent.js    |   2 +-
 .../apache/flex/html/beads/models/ImageModel.js |   2 +-
 .../apache/flex/html/beads/models/RangeModel.js |   2 +-
 .../src/org/apache/flex/html5/RadioButton.js    |   2 +-
 8 files changed, 97 insertions(+), 89 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/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 88021d5..1b6147c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -137,6 +137,7 @@ org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead)
{
  */
 org_apache_flex_core_HTMLElementWrapper.googFireListener = null;
 
+
 /**
  * Fires a listener with a set of arguments
  *
@@ -151,13 +152,19 @@ org_apache_flex_core_HTMLElementWrapper.fireListenerOverride = function(listener
 };
 
 
+/**
+ * Static initializer
+ */
 org_apache_flex_core_HTMLElementWrapper.installOverride = function() {
   org_apache_flex_core_HTMLElementWrapper.googFireListener =
       goog.events.fireListener;
   goog.events.fireListener = org_apache_flex_core_HTMLElementWrapper.fireListenerOverride;
 };
 
-	
+
+/**
+ * The properties that triggers the static initializer
+ */
 org_apache_flex_core_HTMLElementWrapper.installedOverride =
     org_apache_flex_core_HTMLElementWrapper.installOverride();
-	
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
index 6d59057..4799569 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -82,7 +82,7 @@ org_apache_flex_core_SimpleCSSValuesImpl.prototype.getValue =
         return value;
     }
   }
-  catch(e) {};
+  catch (e) {}
 
   if ('className' in thisObject)
   {
@@ -304,7 +304,7 @@ org_apache_flex_core_SimpleCSSValuesImpl.prototype.applyStyles =
   for (var p in styles) {
     //if (styleList[p])
     if (skipStyles[p])
-	  continue;
+      continue;
     var value = styles[p];
     if (typeof(value) == 'number') {
       if (colorStyles[p])

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js b/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js
index 74c9d73..7f80b0a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js
@@ -50,102 +50,103 @@ org_apache_flex_events_BrowserEvent.prototype.wrappedEvent = null;
  */
 org_apache_flex_events_BrowserEvent.prototype.preventDefault = function() {
   this.wrappedEvent.preventDefault();
-}
+};
+
 
 Object.defineProperties(org_apache_flex_events_BrowserEvent.prototype, {
     /** @expose */
     currentTarget: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			var o = this.wrappedEvent.currentTarget;
-			if (o && o.flexjs_wrapper)
-			  return o.flexjs_wrapper;
-			return o;
-		}
-	},
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            var o = this.wrappedEvent.currentTarget;
+            if (o && o.flexjs_wrapper)
+              return o.flexjs_wrapper;
+            return o;
+        }
+    },
     /** @expose */
-	button: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.button;
-		}
-	},
+    button: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.button;
+        }
+    },
     /** @expose */
-	charCode: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.charCode;
-		}
-	},
+    charCode: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.charCode;
+        }
+    },
     /** @expose */
-	clientX: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.clientX;
-		}
-	},
+    clientX: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.clientX;
+        }
+    },
     /** @expose */
-	clientY: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.clientY;
-		}
-	},
+    clientY: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.clientY;
+        }
+    },
     /** @expose */
-	keyCode: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.keyCode;
-		}
-	},
+    keyCode: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.keyCode;
+        }
+    },
     /** @expose */
-	offsetX: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.offsetX;
-		}
-	},
+    offsetX: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.offsetX;
+        }
+    },
     /** @expose */
-	offsetY: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.offsetY;
-		}
-	},
+    offsetY: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.offsetY;
+        }
+    },
     /** @expose */
-	screenX: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.screenX;
-		}
-	},
+    screenX: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.screenX;
+        }
+    },
     /** @expose */
-	screenY: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			return this.wrappedEvent.screenY;
-		}
-	},
+    screenY: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            return this.wrappedEvent.screenY;
+        }
+    },
     /** @expose */
-	relatedTarget: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			var o = this.wrappedEvent.relatedTarget;
-			if (o && o.flexjs_wrapper)
-			  return o.flexjs_wrapper;
-			return o;
-		}
-	},
+    relatedTarget: {
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            var o = this.wrappedEvent.relatedTarget;
+            if (o && o.flexjs_wrapper)
+              return o.flexjs_wrapper;
+            return o;
+        }
+    },
     /** @expose */
     target: {
-		/** @this {org_apache_flex_events_BrowserEvent} */
-		get: function() {
-			var o = this.wrappedEvent.target;
-			if (o && o.flexjs_wrapper)
-			  return o.flexjs_wrapper;
-			return o;
-		}
-	}
+        /** @this {org_apache_flex_events_BrowserEvent} */
+        get: function() {
+            var o = this.wrappedEvent.target;
+            if (o && o.flexjs_wrapper)
+              return o.flexjs_wrapper;
+            return o;
+        }
+    }
 });
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js b/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
index b758c25..3212ebe 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
@@ -59,7 +59,7 @@ org_apache_flex_events_DragEvent.createDragEvent =
   var out = new MouseEvent(type);
   out.initMouseEvent(type, true, true,
     e.view, e.detail, e.screenX, e.screenY,
-    e.clientX, e.clientY, e.ctrlKey, e.altKey, 
+    e.clientX, e.clientY, e.ctrlKey, e.altKey,
     e.shiftKey, e.metaKey, e.button, e.relatedTarget);
   return out;
 };

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js b/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
index b2d1094..64e61d7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
@@ -180,7 +180,7 @@ org_apache_flex_events_MouseEvent.makeMouseEvent = function(type, e) {
   var out = new MouseEvent(type);
   out.initMouseEvent(type, false, false,
     e.view, e.detail, e.screenX, e.screenY,
-    e.clientX, e.clientY, e.ctrlKey, e.altKey, 
+    e.clientX, e.clientY, e.ctrlKey, e.altKey,
     e.shiftKey, e.metaKey, e.button, e.relatedTarget);
   return out;
 };

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ImageModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ImageModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ImageModel.js
index 1b80a28..8eec911 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ImageModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ImageModel.js
@@ -40,7 +40,7 @@ goog.inherits(
 org_apache_flex_html_beads_models_ImageModel.prototype.FLEXJS_CLASS_INFO =
     { names: [{ name: 'ImageModel',
                 qName: 'org_apache_flex_html_beads_models_ImageModel'}],
-      interfaces: [ org_apache_flex_core_IBeadModel] };
+      interfaces: [org_apache_flex_core_IBeadModel]};
 
 
 Object.defineProperties(org_apache_flex_html_beads_models_ImageModel.prototype, {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/RangeModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/RangeModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/RangeModel.js
index 030856b..f623972 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/RangeModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/RangeModel.js
@@ -44,7 +44,7 @@ goog.inherits(org_apache_flex_html_beads_models_RangeModel,
 org_apache_flex_html_beads_models_RangeModel.prototype.FLEXJS_CLASS_INFO =
     { names: [{ name: 'RangeModel',
                 qName: 'org_apache_flex_html_beads_models_RangeModel'}],
-      interfaces: [ org_apache_flex_core_IBeadModel] };
+      interfaces: [org_apache_flex_core_IBeadModel]};
 
 
 Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype, {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e26676/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
index 3f9b3a5..0775f7e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
@@ -62,7 +62,7 @@ Object.defineProperties(org_apache_flex_html5_RadioButton.prototype, {
         }
     },
     /** @expose */
-    text : {
+    text: {
         /** @this {org_apache_flex_html5_RadioButton} */
         get: function() {
             return this.element.childNodes.item(1).nodeValue;


Mime
View raw message