flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Fixes warnings from closure compiler tools.
Date Tue, 01 Sep 2015 19:54:36 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 353193105 -> 7472d5bc4


Fixes warnings from closure compiler tools.


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

Branch: refs/heads/develop
Commit: 7472d5bc47443d6085277e691e323f62acab70ca
Parents: 3531931
Author: Peter Ent <pent@apache.org>
Authored: Tue Sep 1 15:54:29 2015 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Tue Sep 1 15:54:29 2015 -0400

----------------------------------------------------------------------
 .../js/src/org/apache/flex/core/IItemRendererParent.js    |  1 +
 .../js/src/org/apache/flex/utils/MXMLDataInterpreter.js   |  2 +-
 .../Core/js/src/org/apache/flex/utils/MixinManager.js     |  2 ++
 .../js/src/org/apache/flex/maps/google/beads/MapView.js   |  2 ++
 .../js/src/org/apache/flex/maps/google/models/MapModel.js | 10 +++++++++-
 .../js/src/org/apache/flex/core/graphics/GraphicShape.js  |  2 +-
 .../org/apache/flex/core/graphics/GraphicsContainer.js    |  2 +-
 .../Graphics/js/src/org/apache/flex/core/graphics/Path.js |  2 +-
 .../Graphics/js/src/org/apache/flex/core/graphics/Rect.js |  2 +-
 .../src/org/apache/flex/html/supportClasses/DataGroup.js  |  4 ++--
 10 files changed, 21 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js b/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js
index 15aa0ca..da62752 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/core/IItemRendererParent.js
@@ -41,6 +41,7 @@ org.apache.flex.core.IItemRendererParent.prototype.FLEXJS_CLASS_INFO =
 /**
  * @export
  * @param {number} index The selected index.
+ * @return {Object} The itemRenderer at the given index.
  */
 org.apache.flex.core.IItemRendererParent.prototype.
     getItemRendererForIndex = function(index) {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
b/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
index 8af3fdb..a56c912 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/utils/MXMLDataInterpreter.js
@@ -267,7 +267,7 @@ org.apache.flex.utils.MXMLDataInterpreter.initializeStrandBasedObject
=
       self.generateMXMLInstances(
             document, comp, children);
       if (isContainer)
-        comp.childrenAdded();
+        comp['childrenAdded']();
     }
   }
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js b/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js
index 5ef59a9..7dd8764 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/utils/MixinManager.js
@@ -14,6 +14,8 @@
 
 goog.provide('org.apache.flex.utils.MixinManager');
 
+goog.require('org.apache.flex.core.IBead');
+
 
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js
b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js
index 0bea74a..dbb7ecb 100644
--- a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js
+++ b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/beads/MapView.js
@@ -16,6 +16,8 @@
 
 goog.provide('org.apache.flex.maps.google.beads.MapView');
 
+goog.require('org.apache.flex.core.IBeadView');
+
 
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
index 786e8fe..7b0dd48 100644
--- a/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
+++ b/frameworks/projects/GoogleMaps/js/src/org/apache/flex/maps/google/models/MapModel.js
@@ -49,7 +49,7 @@ FLEXJS_CLASS_INFO =
     interfaces: [org.apache.flex.core.IBeadModel] };
 
 
-Object.defineProperties(org.apache.flex.maps.google.models.MapModelv.prototype, {
+Object.defineProperties(org.apache.flex.maps.google.models.MapModel.prototype, {
     /** @export */
     strand: {
         /** @this {org.apache.flex.maps.google.models.MapModel} */
@@ -59,9 +59,11 @@ Object.defineProperties(org.apache.flex.maps.google.models.MapModelv.prototype,
     },
     /** @export */
     searchResults: {
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         get: function() {
             return this._searchResults;
         },
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         set: function(value) {
             this._searchResults = value;
             this.dispatchEvent('searchResultsChanged');
@@ -69,9 +71,11 @@ Object.defineProperties(org.apache.flex.maps.google.models.MapModelv.prototype,
     },
     /** @export */
     zoom: {
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         get: function() {
             return this._zoom;
         },
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         set: function(value) {
             this._zoom = value;
             this.dispatchEvent('zoomChanged');
@@ -79,9 +83,11 @@ Object.defineProperties(org.apache.flex.maps.google.models.MapModelv.prototype,
     },
     /** @export */
     selectedMarker: {
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         get: function() {
             return this._selectedMarker;
         },
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         set: function(value) {
             this._selectedMarker = value;
             this.dispatchEvent('selectedMarkerChanged');
@@ -89,9 +95,11 @@ Object.defineProperties(org.apache.flex.maps.google.models.MapModelv.prototype,
     },
     /** @export */
     currentLocation: {
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         get: function() {
             return this._currentLocation;
         },
+        /** @this {org.apache.flex.maps.google.models.MapModel} */
         set: function(value) {
             this._currentLocation = value;
             this.dispatchEvent('currentLocationChanged');

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
index b38784f..bfa37ac 100644
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
+++ b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicShape.js
@@ -65,7 +65,7 @@ org.apache.flex.core.graphics.GraphicShape = function() {
 
     /**
    * @export
-   * @type {SVGElement}
+   * @type {Object}
    */
   this.element = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
   this.element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
index b48b71a..2894cab 100644
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/GraphicsContainer.js
@@ -216,7 +216,7 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPath = function(da
  * @param {string} value The text string to draw.
  * @param {number} x The x position of the text.
  * @param {number} y The y position of the text.
- * @return {object} The text node created to display the graphics.
+ * @return {Object} The text node created to display the graphics.
  */
 org.apache.flex.core.graphics.GraphicsContainer.prototype.drawText = function(value, x, y)
{
   var style = this.getStyleStr();

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js
index 67c8873..1567ae9 100644
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js
+++ b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Path.js
@@ -89,7 +89,7 @@ org.apache.flex.core.graphics.Path.prototype.drawPath = function(x, y, data)
{
       this.setPosition(x, y, 0, 0);
     }
 
-    this.resize(x, y, path.getBBox());
+    this.resize(x, y, path['getBBox']());
   };
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js
index a170fe9..f468c44 100644
--- a/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js
+++ b/frameworks/projects/Graphics/js/src/org/apache/flex/core/graphics/Rect.js
@@ -68,7 +68,7 @@ org.apache.flex.core.graphics.Rect.prototype.drawRect = function(x, y, width,
he
     rect.setAttribute('height', String(height) + 'px');
     this.element.appendChild(rect);
 
-    this.resize(x, y, rect.getBBox());
+    this.resize(x, y, rect['getBBox']());
   };
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7472d5bc/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
index 21ba481..f1a5ea2 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/DataGroup.js
@@ -129,8 +129,8 @@ org.apache.flex.html.supportClasses.DataGroup.
 
 /**
  * @export
- * @param {Object} index The index for the itemRenderer.
- * @return {Object} The itemRenderer that matches the index.
+ * @param {number} index The selected index.
+ * @return {Object} The itemRenderer at the given index.
  */
 org.apache.flex.html.supportClasses.DataGroup.
     prototype.getItemRendererForIndex = function(index) {


Mime
View raw message