You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/04/09 01:05:20 UTC
[01/47] git commit: [flex-asjs] [refs/heads/develop] - replace
get_xxx() calls with xxx
Repository: flex-asjs
Updated Branches:
refs/heads/develop 7f179c9dd -> 23b457c6b
replace get_xxx() calls with xxx
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/4aed23bf
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/4aed23bf
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/4aed23bf
Branch: refs/heads/develop
Commit: 4aed23bf1c12cc9fdb40d09ad51e0b19a4cbd361
Parents: 4ba5cb8
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jan 29 14:16:06 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jan 29 14:16:06 2015 -0800
----------------------------------------------------------------------
.../charts/supportClasses/ChartAxisGroup.js | 12 +++++------
.../charts/supportClasses/ChartDataGroup.js | 4 ++--
.../src/org/apache/flex/core/Application.js | 2 +-
.../src/org/apache/flex/core/ContainerBase.js | 2 +-
.../src/org/apache/flex/core/FilledRectangle.js | 2 +-
.../src/org/apache/flex/core/FormatBase.js | 2 +-
.../org/apache/flex/core/HTMLElementWrapper.js | 4 ++--
.../flex/core/ItemRendererClassFactory.js | 2 +-
.../FlexJS/src/org/apache/flex/core/ListBase.js | 12 +++++------
.../org/apache/flex/core/SimpleCSSValuesImpl.js | 2 +-
.../org/apache/flex/core/SimpleStatesImpl.js | 4 ++--
.../FlexJS/src/org/apache/flex/core/UIBase.js | 10 ++++-----
.../FlexJS/src/org/apache/flex/core/ViewBase.js | 2 +-
.../src/org/apache/flex/core/graphics/Circle.js | 10 ++++-----
.../org/apache/flex/core/graphics/Ellipse.js | 10 ++++-----
.../apache/flex/core/graphics/GradientEntry.js | 4 ++--
.../apache/flex/core/graphics/GraphicShape.js | 18 ++++++++--------
.../src/org/apache/flex/core/graphics/Line.js | 2 +-
.../apache/flex/core/graphics/LinearGradient.js | 16 +++++++-------
.../src/org/apache/flex/core/graphics/Path.js | 6 +++---
.../src/org/apache/flex/core/graphics/Rect.js | 10 ++++-----
.../org/apache/flex/core/graphics/SolidColor.js | 4 ++--
.../flex/core/graphics/SolidColorStroke.js | 4 ++--
.../src/org/apache/flex/createjs/Application.js | 2 +-
.../src/org/apache/flex/createjs/CheckBox.js | 2 +-
.../org/apache/flex/createjs/core/ViewBase.js | 4 ++--
.../src/org/apache/flex/events/MouseEvent.js | 4 ++--
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 4 ++--
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 4 ++--
.../src/org/apache/flex/html/DropDownList.js | 2 +-
.../js/FlexJS/src/org/apache/flex/html/Image.js | 2 +-
.../js/FlexJS/src/org/apache/flex/html/List.js | 10 ++++-----
.../src/org/apache/flex/html/NumericStepper.js | 16 +++++++-------
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 8 +++----
.../src/org/apache/flex/html/SimpleList.js | 6 +++---
.../FlexJS/src/org/apache/flex/html/Slider.js | 22 ++++++++++----------
.../FlexJS/src/org/apache/flex/html/TitleBar.js | 4 ++--
.../DataItemRendererFactoryForArrayData.js | 8 +++----
.../src/org/apache/flex/html/beads/ImageView.js | 2 +-
.../src/org/apache/flex/html/beads/ListView.js | 12 +++++------
.../src/org/apache/flex/html/beads/PanelView.js | 12 +++++------
.../TextItemRendererFactoryForArrayData.js | 4 ++--
.../controllers/ItemRendererMouseController.js | 6 +++---
.../ListSingleSelectionMouseController.js | 4 ++--
.../beads/controllers/SliderMouseController.js | 16 +++++++-------
.../beads/controllers/SpinnerMouseController.js | 12 +++++------
.../flex/html/beads/layouts/ButtonBarLayout.js | 10 ++++-----
.../html/beads/layouts/NonVirtualBasicLayout.js | 12 +++++------
.../layouts/NonVirtualBasicScrollingLayout.js | 8 +++----
.../beads/layouts/NonVirtualHorizontalLayout.js | 4 ++--
.../beads/layouts/NonVirtualVerticalLayout.js | 4 ++--
.../flex/html/beads/layouts/TileLayout.js | 12 +++++------
.../html/supportClasses/StringItemRenderer.js | 8 +++----
.../html/supportClasses/UIItemRendererBase.js | 8 +++----
.../src/org/apache/flex/html5/ComboBox.js | 4 ++--
.../src/org/apache/flex/net/BinaryUploader.js | 6 +++---
.../flex/net/dataConverters/LazyCollection.js | 2 +-
.../src/org/apache/flex/utils/PointUtils.js | 4 ++--
.../FlexJS/src/org/apache/flex/utils/UIUtils.js | 12 +++++------
59 files changed, 202 insertions(+), 202 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
index f4135ca..bf760e0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
@@ -75,7 +75,7 @@ function(text, xpos, ypos, boxWidth, boxHeight, tickFill) {
var label = new org_apache_flex_html_Label();
this.addElement(label);
label.set_text(text);
- label.set_x(xpos - label.get_width() / 2);
+ label.set_x(xpos - label.width / 2);
label.set_y(ypos);
};
@@ -95,7 +95,7 @@ function(text, xpos, ypos, boxWidth, boxHeight, tickFill) {
this.addElement(label);
label.set_text(text);
label.set_x(xpos);
- label.set_y(ypos - label.get_height() / 2);
+ label.set_y(ypos - label.height / 2);
};
@@ -113,8 +113,8 @@ function(originX, originY, width, height, marks, tickStroke) {
var tickPath = new org_apache_flex_core_graphics_Path();
tickPath.set_x(0);
tickPath.set_y(0);
- tickPath.set_width(this.get_width());
- tickPath.set_height(this.get_height());
+ tickPath.set_width(this.width);
+ tickPath.set_height(this.height);
this.addElement(tickPath);
tickPath.set_stroke(tickStroke);
tickPath.drawPath(0, 0, marks);
@@ -134,8 +134,8 @@ function(originX, originY, width, height, lineStroke) {
var axisPath = new org_apache_flex_core_graphics_Path();
axisPath.set_x(0);
axisPath.set_y(0);
- axisPath.set_width(this.get_width());
- axisPath.set_height(this.get_height());
+ axisPath.set_width(this.width);
+ axisPath.set_height(this.height);
this.addElement(axisPath);
axisPath.set_stroke(lineStroke);
var pathLine = 'M ' + String(originX) + ' ' + String(originY) + ' l ' + String(width) + ' ' + String(height);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
index 0a132d1..960f1ea 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
@@ -67,11 +67,11 @@ org_apache_flex_charts_supportClasses_ChartDataGroup.
*/
org_apache_flex_charts_supportClasses_ChartDataGroup.prototype.getItemRendererForSeriesAtIndex =
function(series, index) {
- var n = this.get_numElements();
+ var n = this.numElements;
for (var i = 0; i < n; i++)
{
var child = this.getElementAt(i);
- if (child && child.get_series() == series) {
+ if (child && child.series == series) {
if (index === 0) return child;
--index;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
index ee6da47..89dc4cd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
@@ -86,7 +86,7 @@ org_apache_flex_core_Application.prototype.start = function() {
this.element.flexjs_wrapper = this;
this.element.className = 'Application';
- org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this, null, this.get_MXMLDescriptor());
+ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this, null, this.MXMLDescriptor);
this.dispatchEvent('initialize');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/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 18bf504..ae3c9f4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -99,7 +99,7 @@ org_apache_flex_core_ContainerBase.prototype.addedToParent = function() {
if (!this.initialized_) {
org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this.document,
- this, this.get_MXMLDescriptor());
+ this, this.MXMLDescriptor);
this.dispatchEvent('initBindings');
this.dispatchEvent('initComplete');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
index 9b246ad..85b67f9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
@@ -50,7 +50,7 @@ org_apache_flex_core_FilledRectangle.prototype.FLEXJS_CLASS_INFO =
*/
org_apache_flex_core_FilledRectangle.prototype.addedToParent = function() {
org_apache_flex_core_FilledRectangle.base(this, 'addedToParent');
- this.drawRect(this.get_x(), this.get_y(), this.get_width(), this.get_height());
+ this.drawRect(this.x, this.y, this.width, this.height);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index 9799929..19494fd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -86,7 +86,7 @@ org_apache_flex_core_FormatBase.prototype._formattedResult = '';
* @return {Object}
*/
org_apache_flex_core_FormatBase.prototype.get_propertyValue = function() {
- var value = this.strand_['get_' + this.get_propertyName()]();
+ var value = this.strand_['get_' + this.propertyName]();
return value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/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 cc38ec7..08658b0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -164,7 +164,7 @@ goog.events.BrowserEvent.prototype.get_target = function() {
// if it is a faked event so just return the target
if (!this.event_) return this.target;
// for true browser events, get the embedded event's target
- return this.event_.get_target();
+ return this.event_.target;
};
@@ -178,7 +178,7 @@ goog.events.BrowserEvent.prototype.get_currentTarget = function() {
// if it is a faked event so just return the currentTarget
if (!this.event_) return this.currentTarget;
// for true browser events, get the embedded event's currentTarget
- return this.event_.get_currentTarget();
+ return this.event_.currentTarget;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
index e9f41be..12930a7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -55,7 +55,7 @@ org_apache_flex_core_ItemRendererClassFactory.
// see if the _strand has an itemRenderer property that isn't empty. if that's
// true, use that value instead of pulling it from the the style
if (this.strand_.get_itemRenderer) {
- this.itemRendererClassFactory = this.strand_.get_itemRenderer();
+ this.itemRendererClassFactory = this.strand_.itemRenderer;
if (this.itemRendererClassFactory) {
this.createFunction = this.createFromClass;
return;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
index 54c43e5..375edba 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
@@ -77,7 +77,7 @@ org_apache_flex_core_ListBase.prototype.createElement = function() {
*/
org_apache_flex_core_ListBase.prototype.get_dataProvider =
function() {
- return this.get_model().get_dataProvider();
+ return this.model.dataProvider;
};
@@ -87,7 +87,7 @@ org_apache_flex_core_ListBase.prototype.get_dataProvider =
*/
org_apache_flex_core_ListBase.prototype.set_dataProvider =
function(value) {
- this.get_model().set_dataProvider(value);
+ this.model.set_dataProvider(value);
};
@@ -97,7 +97,7 @@ org_apache_flex_core_ListBase.prototype.set_dataProvider =
*/
org_apache_flex_core_ListBase.prototype.get_selectedIndex =
function() {
- return this.get_model().get_selectedIndex();
+ return this.model.selectedIndex;
};
@@ -107,7 +107,7 @@ org_apache_flex_core_ListBase.prototype.get_selectedIndex =
*/
org_apache_flex_core_ListBase.prototype.set_selectedIndex =
function(value) {
- this.get_model().set_selectedIndex(value);
+ this.model.set_selectedIndex(value);
};
@@ -117,7 +117,7 @@ org_apache_flex_core_ListBase.prototype.set_selectedIndex =
*/
org_apache_flex_core_ListBase.prototype.get_selectedItem =
function() {
- return this.get_model().get_selectedItem();
+ return this.model.selectedItem;
};
@@ -127,7 +127,7 @@ org_apache_flex_core_ListBase.prototype.get_selectedItem =
*/
org_apache_flex_core_ListBase.prototype.set_selectedItem =
function(value) {
- this.get_model().set_selectedItem(value);
+ this.model.set_selectedItem(value);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/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 e39ab75..f930f0a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -76,7 +76,7 @@ org_apache_flex_core_SimpleCSSValuesImpl.prototype.getValue =
if (typeof(thisObject.get_style) === 'function')
{
- var style = thisObject.get_style();
+ var style = thisObject.style;
if (style != null)
{
try {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/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 c5780f5..6b12d08 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
@@ -87,7 +87,7 @@ org_apache_flex_core_SimpleStatesImpl.prototype.initialStateHandler_ =
var host = this.strand_;
this.dispatchEvent(new org_apache_flex_events_ValueChangeEvent('currentStateChange',
false, false, null,
- host.get_currentState()));
+ host.currentState));
};
@@ -100,7 +100,7 @@ org_apache_flex_core_SimpleStatesImpl.prototype.stateChangeHandler_ =
var arr, doc, p, s;
doc = event.target;
- arr = doc.get_states();
+ arr = doc.states;
for (p in arr) {
s = arr[p];
if (s.name === event.oldValue) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/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 cd71d13..cb7a536 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -234,7 +234,7 @@ org_apache_flex_core_UIBase.prototype.get_parent = function() {
*/
org_apache_flex_core_UIBase.prototype.addedToParent = function() {
- var styles = this.get_style();
+ var styles = this.style;
if (styles)
org_apache_flex_core_ValuesManager.valuesImpl.applyStyles(this, styles);
@@ -586,7 +586,7 @@ org_apache_flex_core_UIBase.prototype.setHeight =
if (opt_noEvent === undefined)
opt_noEvent = false;
- var _height = this.get_height();
+ var _height = this.height;
if (_height != value) {
this.positioner.style.height = value.toString() + 'px';
if (!opt_noEvent)
@@ -606,7 +606,7 @@ org_apache_flex_core_UIBase.prototype.setWidth =
if (opt_noEvent === undefined)
opt_noEvent = false;
- var _width = this.get_width();
+ var _width = this.width;
if (_width != value) {
this.positioner.style.width = value.toString() + 'px';
if (!opt_noEvent)
@@ -627,13 +627,13 @@ org_apache_flex_core_UIBase.prototype.setWidthAndHeight =
if (opt_noEvent === undefined)
opt_noEvent = false;
- var _width = this.get_width();
+ var _width = this.width;
if (_width != newWidth) {
this.positioner.style.width = newWidth.toString() + 'px';
if (!opt_noEvent)
this.dispatchEvent('widthChanged');
}
- var _height = this.get_height();
+ var _height = this.height;
if (_height != newHeight) {
this.positioner.style.height = newHeight.toString() + 'px';
if (!opt_noEvent)
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/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 c5175e9..cebe40a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -138,7 +138,7 @@ org_apache_flex_core_ViewBase.prototype.addedToParent = function() {
if (!this.initialized_) {
org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this.document,
- this, this.get_MXMLDescriptor());
+ this, this.MXMLDescriptor);
this.dispatchEvent(new org_apache_flex_events_Event('initBindings'));
this.dispatchEvent(new org_apache_flex_events_Event('initComplete'));
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
index 7a7b47f..b64bd2e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
@@ -74,11 +74,11 @@ org_apache_flex_core_graphics_Circle.prototype.drawCircle = function(x, y, radiu
var circle = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse');
circle.flexjs_wrapper = this;
circle.setAttribute('style', style);
- if (this.get_stroke())
+ if (this.stroke)
{
- circle.setAttribute('cx', String(radius + this.get_stroke().get_weight()));
- circle.setAttribute('cy', String(radius + this.get_stroke().get_weight()));
- this.setPosition(x - radius, y - radius, this.get_stroke().get_weight(), this.get_stroke().get_weight());
+ circle.setAttribute('cx', String(radius + this.stroke.weight));
+ circle.setAttribute('cy', String(radius + this.stroke.weight));
+ this.setPosition(x - radius, y - radius, this.stroke.weight, this.stroke.weight);
}
else
{
@@ -99,5 +99,5 @@ org_apache_flex_core_graphics_Circle.prototype.drawCircle = function(x, y, radiu
* @override
*/
org_apache_flex_core_graphics_Circle.prototype.draw = function() {
- this.drawCircle(this.get_x(), this.get_y(), this.get_radius());
+ this.drawCircle(this.x, this.y, this.radius);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js
index 1cd5d18..65469bb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Ellipse.js
@@ -52,11 +52,11 @@ org_apache_flex_core_graphics_Ellipse.prototype.drawEllipse = function(x, y, wid
var ellipse = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse');
ellipse.flexjs_wrapper = this;
ellipse.setAttribute('style', style);
- if (this.get_stroke())
+ if (this.stroke)
{
- ellipse.setAttribute('cx', String(width / 2 + this.get_stroke().get_weight()));
- ellipse.setAttribute('cy', String(height / 2 + this.get_stroke().get_weight()));
- this.setPosition(x, y, this.get_stroke().get_weight() * 2, this.get_stroke().get_weight() * 2);
+ ellipse.setAttribute('cx', String(width / 2 + this.stroke.weight));
+ ellipse.setAttribute('cy', String(height / 2 + this.stroke.weight));
+ this.setPosition(x, y, this.stroke.weight * 2, this.stroke.weight * 2);
}
else
{
@@ -76,5 +76,5 @@ org_apache_flex_core_graphics_Ellipse.prototype.drawEllipse = function(x, y, wid
* @override
*/
org_apache_flex_core_graphics_Ellipse.prototype.draw = function() {
- this.drawEllipse(this.get_x(), this.get_y(), this.get_width(), this.get_height());
+ this.drawEllipse(this.x, this.y, this.width, this.height);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
index df85483..aeb0d52 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
@@ -120,7 +120,7 @@ org_apache_flex_core_graphics_GradientEntry.prototype.set_ratio = function(value
* @param {org_apache_flex_core_graphics_GraphicShape} s
*/
org_apache_flex_core_graphics_GradientEntry.prototype.begin = function(s) {
- s.get_graphics().beginFill(this.get_color(), this.get_alpha());
+ s.graphics.beginFill(this.color, this.alpha);
};
@@ -129,7 +129,7 @@ org_apache_flex_core_graphics_GradientEntry.prototype.begin = function(s) {
* @param {org_apache_flex_core_graphics_GraphicShape} s
*/
org_apache_flex_core_graphics_GradientEntry.prototype.end = function(s) {
- s.get_graphics().endFill();
+ s.graphics.endFill();
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
index fd4526f..870c645 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
@@ -132,9 +132,9 @@ org_apache_flex_core_graphics_GraphicShape.prototype.addedToParent = function()
/*
* not sure this is valuable any longer
var bbox = this.element.getBBox();
- if (bbox.width === 0 && !isNaN(this.get_width())) bbox.width = this.get_width();
- if (bbox.height === 0 && !isNaN(this.get_height())) bbox.height = this.get_height();
- this.resize(this.get_x(), this.get_y(), bbox);*/
+ if (bbox.width === 0 && !isNaN(this.width)) bbox.width = this.width;
+ if (bbox.height === 0 && !isNaN(this.height)) bbox.height = this.height;
+ this.resize(this.x, this.y, bbox);*/
};
@@ -152,9 +152,9 @@ org_apache_flex_core_graphics_GraphicShape.prototype.draw = function() {
*/
org_apache_flex_core_graphics_GraphicShape.prototype.getStyleStr = function() {
var fillStr;
- if (this.get_fill())
+ if (this.fill)
{
- fillStr = this.get_fill().addFillAttrib(this);
+ fillStr = this.fill.addFillAttrib(this);
}
else
{
@@ -162,9 +162,9 @@ org_apache_flex_core_graphics_GraphicShape.prototype.getStyleStr = function() {
}
var strokeStr;
- if (this.get_stroke())
+ if (this.stroke)
{
- strokeStr = this.get_stroke().addStrokeAttrib(this);
+ strokeStr = this.stroke.addStrokeAttrib(this);
}
else
{
@@ -183,8 +183,8 @@ org_apache_flex_core_graphics_GraphicShape.prototype.getStyleStr = function() {
* @param {Object} bbox The bounding box of the svg element.
*/
org_apache_flex_core_graphics_GraphicShape.prototype.resize = function(x, y, bbox) {
- var width = Math.max(this.get_width(), bbox.width);
- var height = Math.max(this.get_height(), bbox.height);
+ var width = Math.max(this.width, bbox.width);
+ var height = Math.max(this.height, bbox.height);
this.element.style.position = 'absolute';
if (!isNaN(x)) this.element.style.top = String(x) + 'px';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js
index 9cb54a3..b45f8d7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Line.js
@@ -56,7 +56,7 @@ org_apache_flex_core_graphics_Line.prototype.drawLine = function(x1, y1, x2, y2)
line.setAttribute('y1', y1);
line.setAttribute('x2', x2 - x1);
line.setAttribute('y2', y2);
- this.setPosition(x1, y2, this.get_stroke().get_weight(), this.get_stroke().get_weight());
+ this.setPosition(x1, y2, this.stroke.weight, this.stroke.weight);
this.element.appendChild(line);
this.resize(x, y, line.getBBox());
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
index c5eaec5..0d41a7a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
@@ -71,7 +71,7 @@ org_apache_flex_core_graphics_LinearGradient.prototype.addFillAttrib = function(
//Create and add a linear gradient def
var svgNS = value.element.namespaceURI;
var grad = document.createElementNS(svgNS, 'linearGradient');
- var gradientId = this.get_newId();
+ var gradientId = this.newId;
grad.setAttribute('id', gradientId);
//Set x1, y1, x2, y2 of gradient
@@ -80,28 +80,28 @@ org_apache_flex_core_graphics_LinearGradient.prototype.addFillAttrib = function(
grad.setAttribute('x2', '100%');
grad.setAttribute('y2', '0%');
- //Apply rotation to the gradient if get_rotatation() is a number
- if (this.get_rotation())
+ //Apply rotation to the gradient if rotation is a number
+ if (this.rotation)
{
- grad.setAttribute('gradientTransform', 'rotate(' + this.get_rotation() + ' 0.5 0.5)');
+ grad.setAttribute('gradientTransform', 'rotate(' + this.rotation + ' 0.5 0.5)');
}
//Process gradient entries and create a stop for each entry
- var entries = this.get_entries();
+ var entries = this.entries;
for (var i = 0; i < entries.length; i++)
{
var gradientEntry = entries[i];
var stop = document.createElementNS(svgNS, 'stop');
//Set Offset
- stop.setAttribute('offset', String(gradientEntry.get_ratio() * 100) + '%');
+ stop.setAttribute('offset', String(gradientEntry.ratio * 100) + '%');
//Set Color
- var color = Number(gradientEntry.get_color()).toString(16);
+ var color = Number(gradientEntry.color).toString(16);
if (color.length == 1) color = '00' + color;
if (color.length == 2) color = '00' + color;
if (color.length == 4) color = '00' + color;
stop.setAttribute('stop-color', '#' + String(color));
//Set Alpha
- stop.setAttribute('stop-opacity', String(gradientEntry.get_alpha()));
+ stop.setAttribute('stop-opacity', String(gradientEntry.alpha));
grad.appendChild(stop);
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
index 1490de9..293a481 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
@@ -83,9 +83,9 @@ org_apache_flex_core_graphics_Path.prototype.drawPath = function(x, y, data) {
path.setAttribute('style', style);
path.setAttribute('d', data);
this.element.appendChild(path);
- if (this.get_stroke())
+ if (this.stroke)
{
- this.setPosition(x, y, this.get_stroke().get_weight(), this.get_stroke().get_weight());
+ this.setPosition(x, y, this.stroke.weight, this.stroke.weight);
}
else
{
@@ -100,5 +100,5 @@ org_apache_flex_core_graphics_Path.prototype.drawPath = function(x, y, data) {
* @override
*/
org_apache_flex_core_graphics_Path.prototype.draw = function() {
- this.drawPath(this.get_x(), this.get_y(), this.get_data());
+ this.drawPath(this.x, this.y, this.data);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js
index f145b63..2a3c849 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Rect.js
@@ -52,11 +52,11 @@ org_apache_flex_core_graphics_Rect.prototype.drawRect = function(x, y, width, he
var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
rect.flexjs_wrapper = this;
rect.setAttribute('style', style);
- if (this.get_stroke())
+ if (this.stroke)
{
- rect.setAttribute('x', String(this.get_stroke().get_weight() / 2) + 'px');
- rect.setAttribute('y', String(this.get_stroke().get_weight() / 2) + 'px');
- this.setPosition(x, y, this.get_stroke().get_weight(), this.get_stroke().get_weight());
+ rect.setAttribute('x', String(this.stroke.weight / 2) + 'px');
+ rect.setAttribute('y', String(this.stroke.weight / 2) + 'px');
+ this.setPosition(x, y, this.stroke.weight, this.stroke.weight);
}
else
{
@@ -76,5 +76,5 @@ org_apache_flex_core_graphics_Rect.prototype.drawRect = function(x, y, width, he
* @override
*/
org_apache_flex_core_graphics_Rect.prototype.draw = function() {
- this.drawRect(this.get_x(), this.get_y(), this.get_width(), this.get_height());
+ this.drawRect(this.x, this.y, this.width, this.height);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
index 43079b7..309905a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
@@ -91,10 +91,10 @@ org_apache_flex_core_graphics_SolidColor.prototype.set_alpha = function(value) {
* @return {string}
*/
org_apache_flex_core_graphics_SolidColor.prototype.addFillAttrib = function(value) {
- var color = Number(this.get_color()).toString(16);
+ var color = Number(this.color).toString(16);
if (color.length == 1) color = '00' + color;
if (color.length == 2) color = '00' + color;
if (color.length == 4) color = '00' + color;
- return 'fill:#' + String(color) + ';fill-opacity:' + String(this.get_alpha());
+ return 'fill:#' + String(color) + ';fill-opacity:' + String(this.alpha);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
index f6465eb..0e1f026 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
@@ -114,10 +114,10 @@ org_apache_flex_core_graphics_SolidColorStroke.prototype.set_weight = function(v
* @return {string}
*/
org_apache_flex_core_graphics_SolidColorStroke.prototype.addStrokeAttrib = function(value) {
- var strokeColor = Number(this.get_color()).toString(16);
+ var strokeColor = Number(this.color).toString(16);
if (strokeColor.length == 1) strokeColor = '00' + strokeColor;
if (strokeColor.length == 2) strokeColor = '00' + strokeColor;
if (strokeColor.length == 4) strokeColor = '00' + strokeColor;
return 'stroke:#' + String(strokeColor) + ';stroke-width:' +
- String(this.get_weight()) + ';stroke-opacity:' + String(this.get_alpha());
+ String(this.weight) + ';stroke-opacity:' + String(this.alpha);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js
index 6dba7eb..82ffdcc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Application.js
@@ -99,7 +99,7 @@ org_apache_flex_createjs_Application.prototype.start = function() {
this.stage = new createjs.Stage('flexjsCanvas');
org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties(this,
- this.get_MXMLProperties());
+ this.MXMLProperties);
this.dispatchEvent('initialize');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
index bd7f0dc..2f95955 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
@@ -140,5 +140,5 @@ org_apache_flex_createjs_CheckBox.prototype.set_selected =
*/
org_apache_flex_createjs_CheckBox.prototype.clickHandler =
function(event) {
- this.set_selected(!this.get_selected());
+ this.set_selected(!this.selected);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
index 81c140b..2c1ff4a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
@@ -76,7 +76,7 @@ org_apache_flex_createjs_core_ViewBase.prototype.MXMLDescriptor = null;
org_apache_flex_createjs_core_ViewBase.prototype.initUI = function(model) {
this.applicationModel = model;
org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties(this,
- this.get_MXMLProperties());
+ this.MXMLProperties);
org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this,
- this, this.get_MXMLDescriptor());
+ this, this.MXMLDescriptor);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/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 0bad510..d182d4e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
@@ -126,14 +126,14 @@ org_apache_flex_events_MouseEvent.mouseOverHandler = function(e) {
if (target.get_parent === undefined)
parent = null;
else
- parent = target.get_parent();
+ parent = target.parent;
while (parent) {
index = targets.indexOf(parent);
if (index == -1) {
newTargets.unshift(parent);
if (parent.get_parent === undefined)
break;
- parent = parent.get_parent();
+ parent = parent.parent;
}
else {
outs = targets.slice(index + 1);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index 80d7ec0..3edca01 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -121,7 +121,7 @@ org_apache_flex_html_Alert.show =
*/
org_apache_flex_html_Alert.prototype.get_title = function()
{
- return this.titleBar.get_title();
+ return this.titleBar.title;
};
@@ -140,7 +140,7 @@ org_apache_flex_html_Alert.prototype.set_title =
*/
org_apache_flex_html_Alert.prototype.get_text = function()
{
- return this.message.get_text();
+ return this.message.text;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
index 72dbd53..ed4f452 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
@@ -156,7 +156,7 @@ org_apache_flex_html_ComboBox.prototype.buttonClicked =
goog.events.listen(select, 'change', goog.bind(this.selectChanged, this));
opts = select.options;
- dp = /** @type {Array.<string>} */ (this.get_dataProvider());
+ dp = /** @type {Array.<string>} */ (this.dataProvider);
n = dp.length;
for (i = 0; i < n; i++) {
opt = document.createElement('option');
@@ -166,7 +166,7 @@ org_apache_flex_html_ComboBox.prototype.buttonClicked =
select.size = n;
- si = this.get_selectedIndex();
+ si = this.selectedIndex;
if (si < 0) {
select.value = null;
} else {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
index cdf487a..e76e5be 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
@@ -111,5 +111,5 @@ org_apache_flex_html_DropDownList.prototype.
org_apache_flex_html_DropDownList.prototype.
set_selectedItem = function(value) {
this.model.set_selectedItem(value);
- this.element.selectedIndex = this.get_selectedIndex();
+ this.element.selectedIndex = this.selectedIndex;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
index 7d7b76c..8498c8a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
@@ -72,7 +72,7 @@ org_apache_flex_html_Image.prototype.createElement =
*/
org_apache_flex_html_Image.prototype.
get_source = function() {
- return this.model.get_source();
+ return this.model.source;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
index de2e274..d4786f8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
@@ -77,7 +77,7 @@ function(value) {
*/
org_apache_flex_html_List.prototype.get_labelField =
function() {
- return this.get_model().get_labelField();
+ return this.model.labelField;
};
@@ -87,7 +87,7 @@ function() {
*/
org_apache_flex_html_List.prototype.set_labelField =
function(value) {
- this.get_model().set_labelField(value);
+ this.model.set_labelField(value);
};
@@ -97,7 +97,7 @@ function(value) {
*/
org_apache_flex_html_List.prototype.get_rowHeight =
function() {
- return this.get_presentationModel().get_rowHeight();
+ return this.presentationModel.rowHeight;
};
@@ -107,7 +107,7 @@ function() {
*/
org_apache_flex_html_List.prototype.set_rowHeight =
function(value) {
- this.get_presentationModel().set_rowHeight(value);
+ this.presentationModel.set_rowHeight(value);
};
@@ -170,7 +170,7 @@ org_apache_flex_html_List.prototype.internalChildren =
function() {
var listView =
this.getBeadByType(org_apache_flex_html_beads_ListView);
- var dg = listView.get_dataGroup();
+ var dg = listView.dataGroup;
var items = null;
if (dg.renderers) {
items = dg.renderers;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
index f66ab83..131e49d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
@@ -81,7 +81,7 @@ org_apache_flex_html_NumericStepper.prototype.createElement =
this.element.flexjs_wrapper = this;
this.set_className('NumericStepper');
- this.input.set_text(String(this.spinner.get_value()));
+ this.input.set_text(String(this.spinner.value));
return this.element;
};
@@ -93,9 +93,9 @@ org_apache_flex_html_NumericStepper.prototype.createElement =
org_apache_flex_html_NumericStepper.prototype.spinnerChange =
function(event)
{
- var newValue = this.spinner.get_value();
+ var newValue = this.spinner.value;
this.set_value(newValue);
- this.input.set_text(String(this.spinner.get_value()));
+ this.input.set_text(String(this.spinner.value));
this.dispatchEvent(new org_apache_flex_events_Event('valueChange'));
};
@@ -106,7 +106,7 @@ org_apache_flex_html_NumericStepper.prototype.spinnerChange =
*/
org_apache_flex_html_NumericStepper.prototype.get_minimum =
function() {
- return this.model.get_minimum();
+ return this.model.minimum;
};
@@ -126,7 +126,7 @@ org_apache_flex_html_NumericStepper.prototype.set_minimum =
*/
org_apache_flex_html_NumericStepper.prototype.get_maximum =
function() {
- return this.model.get_maximum();
+ return this.model.maximum;
};
@@ -146,7 +146,7 @@ org_apache_flex_html_NumericStepper.prototype.set_maximum =
*/
org_apache_flex_html_NumericStepper.prototype.get_value =
function() {
- return this.model.get_value();
+ return this.model.value;
};
@@ -167,7 +167,7 @@ org_apache_flex_html_NumericStepper.prototype.set_value =
*/
org_apache_flex_html_NumericStepper.prototype.get_snapInterval =
function() {
- return this.model.get_snapInterval();
+ return this.model.snapInterval;
};
@@ -187,7 +187,7 @@ org_apache_flex_html_NumericStepper.prototype.set_snapInterval =
*/
org_apache_flex_html_NumericStepper.prototype.get_stepSize =
function() {
- return this.model.get_stepSize();
+ return this.model.stepSize;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
index b44f317..a94a477 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
@@ -143,7 +143,7 @@ org_apache_flex_html_Panel.prototype.addedToParent =
* @return {boolean} The showCloseButton getter.
*/
org_apache_flex_html_Panel.prototype.get_showCloseButton = function() {
- return this.get_model().get_showCloseButton();
+ return this.model.showCloseButton;
};
@@ -153,7 +153,7 @@ org_apache_flex_html_Panel.prototype.get_showCloseButton = function() {
*/
org_apache_flex_html_Panel.prototype.set_showCloseButton =
function(value) {
- this.get_model().set_showCloseButton(value);
+ this.model.set_showCloseButton(value);
};
@@ -162,7 +162,7 @@ org_apache_flex_html_Panel.prototype.set_showCloseButton =
* @return {string} The title getter.
*/
org_apache_flex_html_Panel.prototype.get_title = function() {
- return this.get_model().get_title();
+ return this.model.title;
};
@@ -172,7 +172,7 @@ org_apache_flex_html_Panel.prototype.get_title = function() {
*/
org_apache_flex_html_Panel.prototype.set_title =
function(value) {
- this.get_model().set_title(value);
+ this.model.set_title(value);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
index 1498c65..4445476 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
@@ -62,7 +62,7 @@ org_apache_flex_html_SimpleList.prototype.
*/
org_apache_flex_html_SimpleList.prototype.
get_dataProvider = function() {
- return this.model.get_dataProvider();
+ return this.model.dataProvider;
};
@@ -96,7 +96,7 @@ org_apache_flex_html_SimpleList.prototype.
*/
org_apache_flex_html_SimpleList.prototype.
get_selectedIndex = function() {
- return this.model.get_selectedIndex();
+ return this.model.selectedIndex;
};
@@ -114,7 +114,7 @@ org_apache_flex_html_SimpleList.prototype.
*/
org_apache_flex_html_SimpleList.prototype.
get_selectedItem = function() {
- return this.model.get_selectedItem();
+ return this.model.selectedItem;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
index ccc2456..c4752c2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
@@ -79,7 +79,7 @@ org_apache_flex_html_Slider.prototype.createElement =
*/
org_apache_flex_html_Slider.prototype.get_value =
function() {
- return this.model.get_value();
+ return this.model.value;
};
@@ -91,7 +91,7 @@ org_apache_flex_html_Slider.prototype.get_value =
org_apache_flex_html_Slider.prototype.set_value =
function(newValue) {
this.model.set_value(newValue);
- this.setThumbFromValue(this.model.get_value());
+ this.setThumbFromValue(this.model.value);
};
@@ -101,7 +101,7 @@ org_apache_flex_html_Slider.prototype.set_value =
*/
org_apache_flex_html_Slider.prototype.get_minimum =
function() {
- return this.model.get_minimum();
+ return this.model.minimum;
};
@@ -122,7 +122,7 @@ org_apache_flex_html_Slider.prototype.set_minimum =
*/
org_apache_flex_html_Slider.prototype.get_maximum =
function() {
- return this.model.get_maximum();
+ return this.model.maximum;
};
@@ -143,7 +143,7 @@ org_apache_flex_html_Slider.prototype.set_maximum =
*/
org_apache_flex_html_Slider.prototype.get_snapInterval =
function() {
- return this.model.get_snapInterval();
+ return this.model.snapInterval;
};
@@ -164,7 +164,7 @@ org_apache_flex_html_Slider.prototype.set_snapInterval =
*/
org_apache_flex_html_Slider.prototype.get_stepSize =
function() {
- return this.model.get_stepSize();
+ return this.model.stepSize;
};
@@ -185,9 +185,9 @@ org_apache_flex_html_Slider.prototype.set_stepSize =
*/
org_apache_flex_html_Slider.prototype.snap = function(value)
{
- var si = this.get_snapInterval();
- var n = Math.round((value - this.get_minimum()) / si) *
- si + this.get_minimum();
+ var si = this.snapInterval;
+ var n = Math.round((value - this.minimum) / si) *
+ si + this.minimum;
if (value > 0)
{
if (value - n < n + si - value)
@@ -207,8 +207,8 @@ org_apache_flex_html_Slider.prototype.snap = function(value)
org_apache_flex_html_Slider.prototype.setThumbFromValue =
function(value)
{
- var min = this.model.get_minimum();
- var max = this.model.get_maximum();
+ var min = this.model.minimum;
+ var max = this.model.maximum;
var p = (value - min) / (max - min);
var xloc = p * (parseInt(this.track.element.style.width, 10) -
parseInt(this.thumb.element.style.width, 10));
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
index 595314a..19e46a1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
@@ -66,7 +66,7 @@ org_apache_flex_html_TitleBar.prototype.createElement =
*/
org_apache_flex_html_TitleBar.prototype.get_title =
function() {
- return this.model.get_title();
+ return this.model.title;
};
@@ -86,7 +86,7 @@ org_apache_flex_html_TitleBar.prototype.set_title =
*/
org_apache_flex_html_TitleBar.prototype.get_showCloseButton =
function() {
- return this.model.get_showCloseButton();
+ return this.model.showCloseButton;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
index 0994346..7c35505 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
@@ -71,7 +71,7 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
this.listView = value.getBeadByType(
org_apache_flex_html_beads_ListView);
- this.dataGroup = this.listView.get_dataGroup();
+ this.dataGroup = this.listView.dataGroup;
this.model.addEventListener('dataProviderChanged',
goog.bind(this.dataProviderChangedHandler, this));
@@ -128,14 +128,14 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
var presModel = this.strand_.getBeadByType(org_apache_flex_core_IListPresentationModel);
- dp = this.model.get_dataProvider();
+ dp = this.model.dataProvider;
n = dp.length;
for (i = 0; i < n; i++) {
var ir = this.itemRendererFactory_.createItemRenderer(this.dataGroup);
ir.set_index(i);
- ir.set_labelField(this.model.get_labelField());
+ ir.set_labelField(this.model.labelField);
ir.set_data(dp[i]);
- if (presModel) ir.set_height(presModel.get_rowHeight());
+ if (presModel) ir.set_height(presModel.rowHeight);
}
var newEvent = new org_apache_flex_events_Event('itemsCreated');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
index 94b6846..888f6ff 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
@@ -59,5 +59,5 @@ org_apache_flex_html_beads_ImageView.prototype.set_strand =
*/
org_apache_flex_html_beads_ImageView.prototype.
sourceChangeHandler = function(event) {
- this.strand_.element.src = this.model.get_source();
+ this.strand_.element.src = this.model.source;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index 4394572..f7f9e6e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -66,7 +66,7 @@ org_apache_flex_html_beads_ListView.prototype.set_strand =
this.strand_.addEventListener('heightChanged',
goog.bind(this.handleSizeChange, this));
- this.model = this.strand_.get_model();
+ this.model = this.strand_.model;
this.model.addEventListener('selectedIndexChanged',
goog.bind(this.selectionChangeHandler, this));
this.model.addEventListener('dataProviderChanged',
@@ -122,12 +122,12 @@ org_apache_flex_html_beads_ListView.prototype.
ir = this.dataGroup_.getItemRendererForIndex(this.lastSelectedIndex);
if (ir) ir.set_selected(false);
}
- if (this.model.get_selectedIndex() != -1) {
+ if (this.model.selectedIndex != -1) {
ir = this.dataGroup_.getItemRendererForIndex(
- this.model.get_selectedIndex());
+ this.model.selectedIndex);
if (ir) ir.set_selected(true);
}
- this.lastSelectedIndex = this.model.get_selectedIndex();
+ this.lastSelectedIndex = this.model.selectedIndex;
};
@@ -190,6 +190,6 @@ org_apache_flex_html_beads_ListView.prototype.get_resizeableView = function() {
* @param {Object} event The event that triggered the resize.
*/
org_apache_flex_html_beads_ListView.prototype.handleSizeChange = function(event) {
- this.dataGroup_.set_width(this.strand_.get_width());
- this.dataGroup_.set_height(this.strand_.get_height());
+ this.dataGroup_.set_width(this.strand_.width);
+ this.dataGroup_.set_height(this.strand_.height);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
index a5a6716..d7ffb4c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
@@ -62,7 +62,7 @@ org_apache_flex_html_beads_PanelView.prototype.set_strand =
this.strand_.titleBar = this.titleBar_;
this.titleBar_.set_id('titleBar');
- this.titleBar_.set_model(this.strand_.get_model());
+ this.titleBar_.set_model(this.strand_.model);
this.strand_.controlBar =
new org_apache_flex_html_ControlBar();
@@ -93,12 +93,12 @@ org_apache_flex_html_beads_PanelView.prototype.changeHandler =
}
if (event.type == 'titleChange') {
- this.titleBar_.set_title(strand.model.get_title());
+ this.titleBar_.set_title(strand.model.title);
}
var p = this.strand_.positioner;
if (!strand.isWidthSizedToContent()) {
- var w = strand.get_width();
+ var w = strand.width;
w -= p.offsetWidth - p.clientWidth;
this.titleBar_.setWidth(w);
strand.contentArea.style.width = w.toString() + 'px';
@@ -106,12 +106,12 @@ org_apache_flex_html_beads_PanelView.prototype.changeHandler =
strand.controlBar.setWidth(w);
}
if (!strand.isHeightSizedToContent()) {
- var t = this.titleBar_.get_height();
+ var t = this.titleBar_.height;
var b = 0;
if (strand.controlBar)
- b = strand.controlBar.get_height();
+ b = strand.controlBar.height;
strand.contentArea.style.top = t.toString() + 'px';
- var h = strand.get_height() - t - b;
+ var h = strand.height - t - b;
h -= p.offsetHeight - p.clientHeight;
strand.contentArea.style.height = h.toString() + 'px';
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
index 1db4afa..33a8340 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
@@ -60,7 +60,7 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
this.listView = value.getBeadByType(
org_apache_flex_html_beads_ListView);
- this.dataGroup = this.listView.get_dataGroup();
+ this.dataGroup = this.listView.dataGroup;
this.model.addEventListener('dataProviderChanged',
goog.bind(this.dataProviderChangedHandler, this));
@@ -77,7 +77,7 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
prototype.dataProviderChangedHandler = function(event) {
var dp, i, n, opt;
- dp = this.model.get_dataProvider();
+ dp = this.model.dataProvider;
n = dp.length;
for (i = 0; i < n; i++) {
opt = new
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
index 879d3d2..97282c9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
@@ -68,7 +68,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.han
var newEvent = new goog.events.Event('rollover');
newEvent.target = this.strand_;
- this.strand_.get_itemRendererParent().dispatchEvent(newEvent);
+ this.strand_.itemRendererParent.dispatchEvent(newEvent);
};
@@ -82,7 +82,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.han
var newEvent = new goog.events.Event('rollout');
newEvent.target = this.strand_;
- this.strand_.get_itemRendererParent().dispatchEvent(newEvent);
+ this.strand_.itemRendererParent.dispatchEvent(newEvent);
};
@@ -113,5 +113,5 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.han
// since the event is not going to up the chain, we also have to dispatch
// it against its final destination.
- this.strand_.get_itemRendererParent().dispatchEvent(newEvent);
+ this.strand_.itemRendererParent.dispatchEvent(newEvent);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
index 3875d07..9d5e3c0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
@@ -52,7 +52,7 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
this.listView = value.getBeadByType(
org_apache_flex_html_beads_ListView);
- this.dataGroup = this.listView.get_dataGroup();
+ this.dataGroup = this.listView.dataGroup;
this.dataGroup.addEventListener('selected',
goog.bind(this.selectedHandler, this));
};
@@ -66,7 +66,7 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype.selectedHandler =
function(event) {
- var index = event.target.get_index();
+ var index = event.target.index;
this.model.set_selectedIndex(index);
var newEvent = new org_apache_flex_events_Event('change');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
index 7bc9b89..29b3f1f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
@@ -70,8 +70,8 @@ org_apache_flex_html_beads_controllers_SliderMouseController.
{
var xloc = event.clientX;
var p = Math.min(1, xloc / parseInt(this.track.element.style.width, 10));
- var n = p * (this.strand_.get_maximum() - this.strand_.get_minimum()) +
- this.strand_.get_minimum();
+ var n = p * (this.strand_.maximum - this.strand_.minimum) +
+ this.strand_.minimum;
this.strand_.set_value(n);
@@ -154,14 +154,14 @@ org_apache_flex_html_beads_controllers_SliderMouseController.
var newX = this.position + deltaX;
var p = newX / parseInt(this.track.element.style.width, 10);
- var n = p * (this.strand_.get_maximum() - this.strand_.get_minimum()) +
- this.strand_.get_minimum();
+ var n = p * (this.strand_.maximum - this.strand_.minimum) +
+ this.strand_.minimum;
n = this.strand_.snap(n);
- if (n < this.strand_.get_minimum()) n = this.strand_.get_minimum();
- else if (n > this.strand_.get_maximum()) n = this.strand_.get_maximum();
+ if (n < this.strand_.minimum) n = this.strand_.minimum;
+ else if (n > this.strand_.maximum) n = this.strand_.maximum;
- p = (n - this.strand_.get_minimum()) / (this.strand_.get_maximum() -
- this.strand_.get_minimum());
+ p = (n - this.strand_.minimum) / (this.strand_.maximum -
+ this.strand_.minimum);
newX = p * parseInt(this.track.element.style.width, 10);
this.thumb.element.style.left = String(newX -
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
index af6f574..89d9375 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
@@ -63,9 +63,9 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.
org_apache_flex_html_beads_controllers_SpinnerMouseController.
prototype.handleIncrementClick = function(event)
{
- var newValue = this.strand_.snap(Math.min(this.strand_.get_maximum(),
- this.strand_.get_value() +
- this.strand_.get_stepSize()));
+ var newValue = this.strand_.snap(Math.min(this.strand_.maximum,
+ this.strand_.value +
+ this.strand_.stepSize));
this.strand_.set_value(newValue);
};
@@ -78,8 +78,8 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.
prototype.handleDecrementClick =
function(event)
{
- var newValue = this.strand_.snap(Math.max(this.strand_.get_minimum(),
- this.strand_.get_value() -
- this.strand_.get_stepSize()));
+ var newValue = this.strand_.snap(Math.max(this.strand_.minimum,
+ this.strand_.value -
+ this.strand_.stepSize));
this.strand_.set_value(newValue);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
index f87f2ff..a4874ea 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
@@ -94,13 +94,13 @@ org_apache_flex_html_beads_layouts_ButtonBarLayout.
prototype.changeHandler = function(event) {
var layoutParent = this.strand_.getBeadByType(org_apache_flex_core_ILayoutParent);
- var contentView = layoutParent.get_contentView();
+ var contentView = layoutParent.contentView;
var itemRendererParent = contentView;
- var n = itemRendererParent.get_numElements();
+ var n = itemRendererParent.numElements;
var xpos = 0;
- var useWidth = this.strand_.get_width() / n;
- var useHeight = this.strand_.get_height();
+ var useWidth = this.strand_.width / n;
+ var useHeight = this.strand_.height;
for (var i = 0; i < n; i++)
{
@@ -121,6 +121,6 @@ org_apache_flex_html_beads_layouts_ButtonBarLayout.
else
ir.element.style.display = 'inline-block';
- xpos += ir.get_width();
+ xpos += ir.width;
}
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index 26ee24e..f705adc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@ -66,8 +66,8 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.
// events because we let the browser layout based on
// %'s and don't convert to pixels, so listen to the
// other events anyway.
- /* if (!isNaN(this.strand_.get_explicitWidth()) &&
- !isNaN(this.strand_.get_explicitHeight()))*/
+ /* if (!isNaN(this.strand_.explicitWidth) &&
+ !isNaN(this.strand_.explicitHeight))*/
this.addOtherListeners();
}
}
@@ -106,10 +106,10 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.
var i, n, h, w;
var viewBead = this.strand_.getBeadByType(org_apache_flex_core_ILayoutParent);
- var contentView = viewBead.get_contentView();
- w = contentView.get_width();
- h = contentView.get_height();
- n = contentView.get_numElements();
+ var contentView = viewBead.contentView;
+ w = contentView.width;
+ h = contentView.height;
+ n = contentView.numElements;
for (i = 0; i < n; i++) {
var child = contentView.getElementAt(i);
var left = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'left');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
index c7b95a5..af85336 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
@@ -64,11 +64,11 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.
var i, n, h, w;
var viewBead = this.strand_.getBeadByType(org_apache_flex_core_ILayoutParent);
- var contentView = viewBead.get_contentView();
+ var contentView = viewBead.contentView;
contentView.element.style.overflow = 'auto';
- w = contentView.get_width();
- h = contentView.get_height();
- n = contentView.get_numElements();
+ w = contentView.width;
+ h = contentView.height;
+ n = contentView.numElements;
for (i = 0; i < n; i++) {
var child = contentView.getElementAt(i);
var left = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'left');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
index fcf067a..984a62c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
@@ -61,8 +61,8 @@ org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout.
goog.bind(this.changeHandler, this));
this.strand_.addEventListener('sizeChanged',
goog.bind(this.sizeChangeHandler, this));
- if (!isNaN(this.strand_.get_explicitWidth()) &&
- !isNaN(this.strand_.get_explicitHeight()))
+ if (!isNaN(this.strand_.explicitWidth) &&
+ !isNaN(this.strand_.explicitHeight))
this.addOtherListeners();
}
this.strand_.element.style.display = 'block';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
index 2e017c5..747a1f9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
@@ -58,8 +58,8 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.
goog.bind(this.changeHandler, this));
this.strand_.addEventListener('sizeChanged',
goog.bind(this.sizeChangeHandler, this));
- if (!isNaN(this.strand_.get_explicitWidth()) &&
- !isNaN(this.strand_.get_explicitHeight()))
+ if (!isNaN(this.strand_.explicitWidth) &&
+ !isNaN(this.strand_.explicitHeight))
this.addOtherListeners();
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
index 5b95491..c9a2b9e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
@@ -130,14 +130,14 @@ org_apache_flex_html_beads_layouts_TileLayout.
xpos = 0;
ypos = 0;
- useWidth = this.get_columnWidth();
- useHeight = this.get_rowHeight();
+ useWidth = this.columnWidth;
+ useHeight = this.rowHeight;
- if (isNaN(useWidth)) useWidth = Math.floor(this.strand_.get_width() / this.get_numColumns()); // + gap
+ if (isNaN(useWidth)) useWidth = Math.floor(this.strand_.width / this.numColumns); // + gap
if (isNaN(useHeight)) {
// given the width and total number of items, how many rows?
- var numRows = Math.floor(n / this.get_numColumns());
- useHeight = Math.floor(this.strand_.get_height() / numRows);
+ var numRows = Math.floor(n / this.numColumns);
+ useHeight = Math.floor(this.strand_.height / numRows);
}
for (i = 0; i < n; i++)
@@ -150,7 +150,7 @@ org_apache_flex_html_beads_layouts_TileLayout.
xpos += useWidth;
- if (((i + 1) % this.get_numColumns()) === 0) {
+ if (((i + 1) % this.numColumns) === 0) {
xpos = 0;
ypos += useHeight;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
index 73052cb..cca3712 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -152,11 +152,11 @@ org_apache_flex_html_supportClasses_StringItemRenderer.
org_apache_flex_html_supportClasses_StringItemRenderer.base(this, 'set_data', value);
- if (this.get_labelField()) {
- this.element.innerHTML = String(value[this.get_labelField()]);
+ if (this.labelField) {
+ this.element.innerHTML = String(value[this.labelField]);
}
- else if (this.get_dataField()) {
- this.element.innerHTML = String(value[this.get_dataField()]);
+ else if (this.dataField) {
+ this.element.innerHTML = String(value[this.dataField]);
}
else if (value.toString) {
this.element.innerHTML = value.toString();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
index 300dbcb..d3c8bac 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
@@ -61,7 +61,7 @@ function() {
// each MXML file can also have styles in fx:Style block
//? appropriate for JavaScript? ValuesManager.valuesImpl.init(this);
- org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this, this, this.get_MXMLDescriptor());
+ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLInstances(this, this, this.MXMLDescriptor);
this.dispatchEvent(new org_apache_flex_events_Event('initComplete'));
};
@@ -201,11 +201,11 @@ function(value) {
*/
org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.updateRenderer =
function() {
- if (this.get_down()) {
+ if (this.down) {
}
- else if (this.get_hovered()) {
+ else if (this.hovered) {
}
- else if (this.get_selected()) {
+ else if (this.selected) {
}
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
index 07119a2..1e1f7e5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
@@ -142,7 +142,7 @@ org_apache_flex_html5_ComboBox.prototype.buttonClicked =
select.onchange = /** @type {function(Event)} */ (goog.bind(this.selectChanged, this));
opts = select.options;
- dp = /** @type {Array.<string>} */ (this.get_dataProvider());
+ dp = /** @type {Array.<string>} */ (this.dataProvider);
n = dp.length;
for (i = 0; i < n; i++) {
opt = document.createElement('option');
@@ -152,7 +152,7 @@ org_apache_flex_html5_ComboBox.prototype.buttonClicked =
select.size = n;
- si = this.get_selectedIndex();
+ si = this.selectedIndex;
if (si < 0) {
select.value = null;
} else {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
index 14cfe9f..2df3b82 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
@@ -306,12 +306,12 @@ org_apache_flex_net_BinaryUploader.prototype.send = function() {
if (this.binaryData_ !== undefined) {
if (this.method_ === org_apache_flex_net_BinaryUploader.HTTP_METHOD_GET) {
if (url.indexOf('?') !== -1) {
- url += this.binaryData_.get_data();
+ url += this.binaryData_.data;
} else {
- url += '?' + this.binaryData_.get_data();
+ url += '?' + this.binaryData_.data;
}
} else {
- binaryData = this.binaryData_.get_data();
+ binaryData = this.binaryData_.data;
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
index bd3db2a..06799a1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
@@ -159,7 +159,7 @@ org_apache_flex_net_dataConverters_LazyCollection.prototype.set_strand =
*/
org_apache_flex_net_dataConverters_LazyCollection.prototype.completeHandler =
function() {
- var results = this.strand_.get_data();
+ var results = this.strand_.data;
this.rawData_ = this.inputParser_.parseItems(results);
this.data_ = [];
this.dispatchEvent('complete');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
index 0d6ea8d..0cb0216 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
@@ -50,7 +50,7 @@ org_apache_flex_utils_PointUtils.globalToLocal =
x -= element.offsetLeft;
y -= element.offsetTop;
if (local.get_parent) {
- local = local.get_parent();
+ local = local.parent;
element = local.element;
} else {
element = null;
@@ -76,7 +76,7 @@ org_apache_flex_utils_PointUtils.localToGlobal =
x += element.offsetLeft;
y += element.offsetTop;
if (local.get_parent) {
- local = local.get_parent();
+ local = local.parent;
element = local.element;
} else {
element = null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4aed23bf/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
index 3c503ef..dd51073 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
@@ -44,13 +44,13 @@ org_apache_flex_utils_UIUtils.prototype.FLEXJS_CLASS_INFO =
org_apache_flex_utils_UIUtils.center =
function(item, relativeTo) {
- var rw = relativeTo.get_width();
+ var rw = relativeTo.width;
if (isNaN(rw)) rw = window.innerWidth;
- var rh = relativeTo.get_height();
+ var rh = relativeTo.height;
if (isNaN(rh)) rh = window.innerHeight;
- var xpos = (rw - item.get_width()) / 2;
- var ypos = (rh - item.get_height()) / 2;
+ var xpos = (rw - item.width) / 2;
+ var ypos = (rh - item.height) / 2;
item.set_x(xpos);
item.set_y(ypos);
};
@@ -65,7 +65,7 @@ org_apache_flex_utils_UIUtils.findPopUpHost =
function(start) {
while (start != null && !org_apache_flex_utils_Language.is(start, org_apache_flex_core_IPopUpHost)) {
- start = start.get_parent();
+ start = start.parent;
}
return start;
@@ -79,6 +79,6 @@ org_apache_flex_utils_UIUtils.findPopUpHost =
org_apache_flex_utils_UIUtils.removePopUp =
function(popUp) {
- var p = popUp.get_parent();
+ var p = popUp.parent;
p.removeElement(popUp);
};
[07/47] git commit: [flex-asjs] [refs/heads/develop] - manual
conversion to Object.defineProperties. Needs major cleanup before it will
work
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
index 7db0225..ca67517 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
@@ -40,15 +40,6 @@ org_apache_flex_core_graphics_GraphicsContainer.prototype.FLEXJS_CLASS_INFO =
/**
* @expose
- * @return {number} The number of child elements.
- */
-org_apache_flex_core_graphics_GraphicsContainer.prototype.get_numChildren = function() {
- return this.internalChildren().length;
- };
-
-
-/**
- * @expose
*/
org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = function() {
var svg = this.element;
@@ -58,48 +49,45 @@ org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = fu
};
-/**
- * @override
- */
-org_apache_flex_core_graphics_GraphicsContainer.prototype.set_width = function(value) {
- org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_width', value);
- this.element.setAttribute('width', String(value) + 'px');
- this.element.style.width = String(value) + 'px';
-};
-
-
-/**
- * @override
- */
-org_apache_flex_core_graphics_GraphicsContainer.prototype.set_height = function(value) {
- org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_height', value);
- this.element.setAttribute('height', String(value) + 'px');
- this.element.style.height = String(value) + 'px';
-};
-
-
-/**
- * @override
- */
-org_apache_flex_core_graphics_GraphicsContainer.prototype.set_x = function(value) {
- org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_x', value);
- this.element.setAttribute('x', String(value) + 'px');
- this.element.style.position = 'absolute';
- this.element.style.left = String(value) + 'px';
- this.element.offsetLeft = value;
-};
-
-
-/**
- * @override
- */
-org_apache_flex_core_graphics_GraphicsContainer.prototype.set_y = function(value) {
- org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_y', value);
- this.element.setAttribute('y', String(value) + 'px');
- this.element.style.position = 'absolute';
- this.element.style.top = String(value) + 'px';
- this.element.offsetTop = value;
-};
+Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototype, {
+ 'numChildren': {
+ get: function() {
+ return this.internalChildren().length;
+ }
+ },
+ 'width': {
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(org_apache_flex_core_graphics_GraphicsContainer, this, 'width', value);
+ this.element.setAttribute('width', String(value) + 'px');
+ this.element.style.width = String(value) + 'px';
+ }
+ },
+ 'height': {
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(org_apache_flex_core_graphics_GraphicsContainer, this, 'height', value);
+ this.element.setAttribute('height', String(value) + 'px');
+ this.element.style.height = String(value) + 'px';
+ }
+ },
+ 'x': {
+ set: function(value) {
+ org_apache_flex_core_graphics_GraphicsContainer.base(org_apache_flex_core_graphics_GraphicsContainer, this, 'x', value);
+ this.element.setAttribute('x', String(value) + 'px');
+ this.element.style.position = 'absolute';
+ this.element.style.left = String(value) + 'px';
+ this.element.offsetLeft = value;
+ }
+ },
+ 'y': {
+ set: function(value) {
+ org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_y', value);
+ this.element.setAttribute('y', String(value) + 'px');
+ this.element.style.position = 'absolute';
+ this.element.style.top = String(value) + 'px';
+ this.element.offsetTop = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
index 0d41a7a..e4472e4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
@@ -42,22 +42,17 @@ goog.inherits(org_apache_flex_core_graphics_LinearGradient, org_apache_flex_core
org_apache_flex_core_graphics_LinearGradient.prototype._scaleX = 1.0;
-/**
- * @expose
- * @return {number}
- */
-org_apache_flex_core_graphics_LinearGradient.prototype.get_scaleX = function() {
- return this._scaleX;
-};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_graphics_LinearGradient.prototype.set_scaleX = function(value) {
- this._scaleX = value;
-};
+Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
+ 'scaleX': {
+ get: function() {
+ return this._scaleX;
+ },
+ set: function(value) {
+ this._scaleX = value;
+ }
+ }
+});
+
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
index 293a481..9c8a239 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
@@ -45,22 +45,16 @@ org_apache_flex_core_graphics_Path.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_graphics_Path' }] };
-/**
- * @expose
- * @param {string} v The string representation of the path data.
- */
-org_apache_flex_core_graphics_Path.prototype.set_data = function(v) {
- this.data_ = v;
-};
-
-
-/**
- * @expose
- * @return {string} The string representation of the path data.
- */
-org_apache_flex_core_graphics_Path.prototype.get_data = function() {
- return this.data_;
-};
+Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
+ 'data': {
+ set: function(v) {
+ this.data_ = v;
+ },
+ get: function() {
+ return this.data_;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
index 309905a..d857a5b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
@@ -49,38 +49,24 @@ org_apache_flex_core_graphics_SolidColor.prototype.FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_graphics_IFill] };
-/**
- * @expose
- * @return {number} color.
- */
-org_apache_flex_core_graphics_SolidColor.prototype.get_color = function() {
- return this.color_;
-};
-
-
-/**
- * @param {number} value color.
- */
-org_apache_flex_core_graphics_SolidColor.prototype.set_color = function(value) {
- this.color_ = value;
-};
-
-
-/**
- * @expose
- * @return {number} alpha.
- */
-org_apache_flex_core_graphics_SolidColor.prototype.get_alpha = function() {
- return this.alpha_;
-};
-
-
-/**
- * @param {number} value alpha.
- */
-org_apache_flex_core_graphics_SolidColor.prototype.set_alpha = function(value) {
- this.alpha_ = value;
-};
+Object.defineProperties(org_apache_flex_core_graphics_SolidColor.prototype, {
+ 'color': {
+ get: function() {
+ return this.color_;
+ },
+ set: function(value) {
+ this.color_ = value;
+ }
+ },
+ 'alpha': {
+ get: function() {
+ return this.alpha_;
+ },
+ set: function(value) {
+ this.alpha_ = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
index 0e1f026..0a7e569 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
@@ -55,55 +55,32 @@ org_apache_flex_core_graphics_SolidColorStroke.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_graphics_SolidColorStroke' }] };
-/**
- * @expose
- * @return {number} color.
- */
-org_apache_flex_core_graphics_SolidColorStroke.prototype.get_color = function() {
- return this.color_;
-};
-
-
-/**
- * @param {number} value color.
- */
-org_apache_flex_core_graphics_SolidColorStroke.prototype.set_color = function(value) {
- this.color_ = value;
-};
-
-
-/**
- * @expose
- * @return {number} alpha.
- */
-org_apache_flex_core_graphics_SolidColorStroke.prototype.get_alpha = function() {
- return this.alpha_;
-};
-
-
-/**
- * @param {number} value alpha.
- */
-org_apache_flex_core_graphics_SolidColorStroke.prototype.set_alpha = function(value) {
- this.alpha_ = value;
-};
-
-
-/**
- * @expose
- * @return {number} weight.
- */
-org_apache_flex_core_graphics_SolidColorStroke.prototype.get_weight = function() {
- return this.weight_;
-};
-
-
-/**
- * @param {number} value weight.
- */
-org_apache_flex_core_graphics_SolidColorStroke.prototype.set_weight = function(value) {
- this.weight_ = value;
-};
+Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype, {
+ 'color': {
+ get: function() {
+ return this.color_;
+ },
+ set: function(value) {
+ this.color_ = value;
+ }
+ },
+ 'alpha': {
+ get: function() {
+ return this.alpha_;
+ },
+ set: function(value) {
+ this.alpha_ = value;
+ }
+ },
+ 'weight': {
+ get: function() {
+ return this.weight_;
+ },
+ set: function(value) {
+ this.weight_ = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
index 3cb9867..77139da 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
@@ -47,21 +47,14 @@ org_apache_flex_createjs_Label.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_createjs_Label.prototype.get_text = function() {
- return this.element.text;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_createjs_Label.prototype.set_text =
- function(value) {
- this.element.text = value;
- this.element.getStage().update();
-};
+Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.text;
+ },
+ set: function(value) {
+ this.element.text = value;
+ this.element.getStage().update();
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
index cf479f5..5e7c830 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
@@ -56,44 +56,55 @@ org_apache_flex_createjs_core_UIBase.prototype.createElement =
};
-/**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
-org_apache_flex_createjs_core_UIBase.prototype.set_x = function(pixels) {
- this.positioner.x = pixels;
- this.element.getStage().update();
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the top edge.
- */
-org_apache_flex_createjs_core_UIBase.prototype.set_y = function(pixels) {
- this.positioner.y = pixels;
- this.element.getStage().update();
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
-org_apache_flex_createjs_core_UIBase.prototype.set_width = function(pixels) {
- this.positioner.width = pixels;
- this.element.getStage().update();
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the top edge.
- */
-org_apache_flex_createjs_core_UIBase.prototype.set_height = function(pixels) {
- this.positioner.height = pixels;
- this.element.getStage().update();
-};
+Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
+ 'x': {
+ set: function(pixels) {
+ this.positioner.x = pixels;
+ this.element.getStage().update();
+ }
+ },
+ 'y': {
+ set: function(pixels) {
+ this.positioner.y = pixels;
+ this.element.getStage().update();
+ }
+ },
+ 'width': {
+ set: function(pixels) {
+ this.positioner.width = pixels;
+ this.element.getStage().update();
+ }
+ },
+ 'height': {
+ set: function(pixels) {
+ this.positioner.height = pixels;
+ this.element.getStage().update();
+ }
+ },
+ 'id': {
+ get: function() {
+ return this.name;
+ },
+ set: function(value) {
+ if (this.name !== value) {
+ this.element.name = value;
+ this.name = value;
+ this.dispatchEvent('idChanged');
+ }
+ }
+ },
+ 'model': {
+ get: function() {
+ return this.model;
+ },
+ set: function(value) {
+ if (this.model !== value) {
+ this.addBead(value);
+ this.dispatchEvent('modelChanged');
+ }
+ }
+ }
+});
/**
@@ -102,55 +113,8 @@ org_apache_flex_createjs_core_UIBase.prototype.set_height = function(pixels) {
*/
org_apache_flex_createjs_core_UIBase.prototype.id = null;
-
-/**
- * @expose
- * @return {string} The id.
- */
-org_apache_flex_createjs_core_UIBase.prototype.get_id = function() {
- return this.name;
-};
-
-
-/**
- * @expose
- * @param {object} value The new id.
- */
-org_apache_flex_createjs_core_UIBase.prototype.set_id = function(value) {
- if (this.name !== value)
- {
- this.element.name = value;
- this.name = value;
- this.dispatchEvent('idChanged');
- }
-};
-
-
/**
* @expose
* @type {object}
*/
org_apache_flex_createjs_core_UIBase.prototype.model = null;
-
-
-/**
- * @expose
- * @return {object} The model.
- */
-org_apache_flex_createjs_core_UIBase.prototype.get_model = function() {
- return this.model;
-};
-
-
-/**
- * @expose
- * @param {object} value The new model.
- */
-org_apache_flex_createjs_core_UIBase.prototype.set_model = function(value) {
- if (this.model !== value)
- {
- this.addBead(value);
- this.dispatchEvent('modelChanged');
- }
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
index 9aaef19..74203c6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
@@ -71,28 +71,20 @@ org_apache_flex_events_Event.prototype.init = function(type) {
};
-/**
- * @expose
- * @return {string} The event type.
- */
-org_apache_flex_events_Event.prototype.get_type = function() {
- return this.type;
-};
-
-
-/**
- * @expose
- * @return {Object|undefined} The event target.
- */
-org_apache_flex_events_Event.prototype.get_target = function() {
- return this.target;
-};
-
-
-/**
- * @expose
- * @return {Object|undefined} The event currentTarget.
- */
-org_apache_flex_events_Event.prototype.get_currentTarget = function() {
- return this.currentTarget;
-};
+Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
+ 'type': {
+ get: function() {
+ return this.type;
+ }
+ },
+ 'target': {
+ get: function() {
+ return this.target;
+ }
+ },
+ 'currentTarget': {
+ get: function() {
+ return this.currentTarget;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index 7154dc4..e954d99 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -116,51 +116,29 @@ org_apache_flex_html_Alert.show =
};
-/**
- * @return {string} The message to be displayed in the title bar.
- */
-org_apache_flex_html_Alert.prototype.get_title = function()
- {
- return this.titleBar.title;
-};
-
-
-/**
- * @param {string} value The message to be displayed in the title bar.
- */
-org_apache_flex_html_Alert.prototype.set_title =
- function(value)
- {
- this.titleBar.title = value;
-};
-
-
-/**
- * @return {string} The message to be displayed.
- */
-org_apache_flex_html_Alert.prototype.get_text = function()
- {
- return this.message.text;
-};
-
-
-/**
- * @param {string} value The message to be displayed.
- */
-org_apache_flex_html_Alert.prototype.set_text =
- function(value)
- {
- this.message.text = value;
-};
-
-
-/**
- * @return {number} The button options.
- */
-org_apache_flex_html_Alert.prototype.get_flags = function()
- {
- return this.flags;
-};
+Object.defineProperties(org_apache_flex_html_Alert.prototype, {
+ 'title': {
+ get: function() {
+ return this.titleBar.title;
+ },
+ set: function(value) {
+ this.titleBar.title = value;
+ }
+ },
+ 'text': {
+ get: function() {
+ return this.message.text;
+ },
+ set: function(value) {
+ this.message.text = value;
+ }
+ },
+ 'flags': {
+ get: function() {
+ return this.flags;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
index 8c542bd..942c4bc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
@@ -61,40 +61,21 @@ org_apache_flex_html_CheckBox.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_CheckBox.prototype.get_text = function() {
- return this.element.childNodes.item(1).nodeValue;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_CheckBox.prototype.set_text =
- function(value) {
- this.element.childNodes.item(1).nodeValue = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_html_CheckBox.prototype.get_selected =
- function() {
- return this.element.childNodes.item(0).checked;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_html_CheckBox.prototype.set_selected =
- function(value) {
- this.element.childNodes.item(0).checked = value;
-};
+Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.childNodes.item(1).nodeValue;
+ },
+ set: function(value) {
+ this.element.childNodes.item(1).nodeValue = value;
+ }
+ },
+ 'selected': {
+ get: function() {
+ return this.element.childNodes.item(0).checked;
+ },
+ set: function(value) {
+ this.element.childNodes.item(0).checked = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
index 800f7c1..4c3d771 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
@@ -191,20 +191,13 @@ org_apache_flex_html_ComboBox.prototype.set_dataProvider =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_ComboBox.prototype.get_text = function() {
- return this.element.childNodes.item(0).value;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_ComboBox.prototype.set_text =
- function(value) {
- this.element.childNodes.item(0).value = value;
-};
+Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.childNodes.item(0).value;
+ },
+ set: function(value) {
+ this.element.childNodes.item(0).value = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
index c9efb28..37fea09 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
@@ -62,44 +62,26 @@ org_apache_flex_html_ImageAndTextButton.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_ImageAndTextButton.prototype.get_text = function() {
- return this._text;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_ImageAndTextButton.prototype.set_text =
- function(value) {
- this._text = value;
- this.setInnerHTML();
-};
-
-
-/**
- * @expose
- * @return {string} The image url.
- */
-org_apache_flex_html_ImageAndTextButton.prototype.get_image = function() {
- return this._src;
-};
-
-
-/**
- * @expose
- * @param {string} value The image url.
- */
-org_apache_flex_html_ImageAndTextButton.prototype.set_image =
- function(value) {
- this._src = value;
- this.setInnerHTML();
-};
+Object.defineProperties(org_apache_flex_html_ImageAndTextButton.prototype, {
+ 'text': {
+ get: function() {
+ return this._text;
+ },
+ set: function(value) {
+ this._text = value;
+ this.setInnerHTML();
+ }
+ },
+ 'image': {
+ get: function() {
+ return this._src;
+ },
+ set: function(value) {
+ this._src = value;
+ this.setInnerHTML();
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
index 9375221..f6b3a1d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
@@ -43,37 +43,21 @@ org_apache_flex_html_Label.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_Label' }] };
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_Label.prototype.get_text = function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_Label.prototype.set_text = function(value) {
- this.element.innerHTML = value;
-};
-
-
-/**
- * @expose
- * @return {string} The html getter.
- */
-org_apache_flex_html_Label.prototype.get_html = function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The html setter.
- */
-org_apache_flex_html_Label.prototype.set_html = function(value) {
- this.element.innerHTML = value;
-};
+Object.defineProperties(org_apache_flex_html_Label.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.innerHTML;
+ },
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ },
+ 'html': {
+ get: function() {
+ return this.element.innerHTML;
+ },
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
index 9dbb507..b4ba8da 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
@@ -43,37 +43,21 @@ org_apache_flex_html_MultilineLabel.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_MultilineLabel' }] };
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_MultilineLabel.prototype.get_text = function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_MultilineLabel.prototype.set_text = function(value) {
- this.element.innerHTML = value;
-};
-
-
-/**
- * @expose
- * @return {string} The html getter.
- */
-org_apache_flex_html_MultilineLabel.prototype.get_html = function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The html setter.
- */
-org_apache_flex_html_MultilineLabel.prototype.set_html = function(value) {
- this.element.innerHTML = value;
-};
+Object.defineProperties(org_apache_flex_html_MultilineLabel.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.innerHTML;
+ },
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ },
+ 'html': {
+ get: function() {
+ return this.element.innerHTML;
+ },
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
index 6477ca5..d4d20b0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
@@ -138,64 +138,34 @@ org_apache_flex_html_Panel.prototype.addedToParent =
};
-/**
- * @expose
- * @return {boolean} The showCloseButton getter.
- */
-org_apache_flex_html_Panel.prototype.get_showCloseButton = function() {
- return this.model.showCloseButton;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The showCloseButton setter.
- */
-org_apache_flex_html_Panel.prototype.set_showCloseButton =
- function(value) {
- this.model.showCloseButton = value;
-};
-
-
-/**
- * @expose
- * @return {string} The title getter.
- */
-org_apache_flex_html_Panel.prototype.get_title = function() {
- return this.model.title;
-};
-
-
-/**
- * @expose
- * @param {string} value The title setter.
- */
-org_apache_flex_html_Panel.prototype.set_title =
-function(value) {
- this.model.title = value;
-};
-
-
-/**
- * @expose
- * @return {Array} The controlBar getter.
- */
-org_apache_flex_html_Panel.prototype.get_controlBar =
- function() {
- return this.controlBarChildren;
-};
-
-
-/**
- * @expose
- * @param {Array} value The controlBar setter.
- */
-org_apache_flex_html_Panel.prototype.set_controlBar =
- function(value) {
- this.controlBarChildren = value;
-
- for (var i = 0; i < value.length; i++) {
- var item = value[i];
- this.controlBar.addElement(item);
- }
-};
+Object.defineProperties(org_apache_flex_html_Panel.prototype, {
+ 'showCloseButton': {
+ get: function() {
+ return this.model.showCloseButton;
+ },
+ set: function(value) {
+ this.model.showCloseButton = value;
+ }
+ },
+ 'title': {
+ get: function() {
+ return this.model.title;
+ },
+ set: function(value) {
+ this.model.title = value;
+ }
+ },
+ 'controlBar': {
+ get: function() {
+ return this.controlBarChildren;
+ },
+ set: function(value) {
+ this.controlBarChildren = value;
+
+ for (var i = 0; i < value.length; i++) {
+ var item = value[i];
+ this.controlBar.addElement(item);
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
index 8fad4e5..9989df5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
@@ -87,132 +87,73 @@ org_apache_flex_html_RadioButton.prototype.initSkin =
};
-/**
- * @override
- */
-org_apache_flex_html_RadioButton.prototype.set_id = function(value) {
- org_apache_flex_html_RadioButton.base(this, 'set_id', value);
- this.labelFor.id = value;
- this.input.id = value;
-};
-
-
-/**
- * @expose
- * @return {string} The groupName getter.
- */
-org_apache_flex_html_RadioButton.prototype.get_groupName =
- function() {
- return this.input.name;
-};
-
-
-/**
- * @expose
- * @param {string} value The groupName setter.
- */
-org_apache_flex_html_RadioButton.prototype.set_groupName =
- function(value) {
- this.input.name = value;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_RadioButton.prototype.get_text =
- function() {
- return this.textNode.nodeValue;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_RadioButton.prototype.set_text =
- function(value) {
- this.textNode.nodeValue = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_html_RadioButton.prototype.get_selected =
- function() {
- return this.input.checked;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_html_RadioButton.prototype.set_selected =
- function(value) {
- this.input.checked = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The value getter.
- */
-org_apache_flex_html_RadioButton.prototype.get_value =
- function() {
- return this.input.value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The value setter.
- */
-org_apache_flex_html_RadioButton.prototype.set_value =
- function(value) {
- this.input.value = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The value of the selected RadioButton.
- */
-org_apache_flex_html_RadioButton.prototype.get_selectedValue =
- function() {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
-
- for (i = 0; i < n; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
- }
- return null;
-};
-
-
-/**
- * @expose
- * @param {Object} value The value of the selected RadioButton.
- */
-org_apache_flex_html_RadioButton.prototype.set_selectedValue =
- function(value) {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].value === value) {
- buttons[i].checked = true;
- break;
- }
- }
-};
+Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
+ 'id': {
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(org_apache_flex_html_RadioButton, this, 'id', value);
+ this.labelFor.id = value;
+ this.input.id = value;
+ }
+ },
+ 'groupName': {
+ get: function() {
+ return this.input.name;
+ },
+ set: function(value) {
+ this.input.name = value;
+ }
+ },
+ 'text': {
+ get: function() {
+ return this.textNode.nodeValue;
+ },
+ set: function(value) {
+ this.textNode.nodeValue = value;
+ }
+ },
+ 'selected': {
+ get: function() {
+ return this.input.checked;
+ },
+ set: function(value) {
+ this.input.checked = value;
+ }
+ },
+ 'value': {
+ get: function() {
+ return this.input.value;
+ },
+ set: function(value) {
+ this.input.value = value;
+ }
+ },
+ 'selectedValue': {
+ get: function() {
+ var buttons, groupName, i, n;
+
+ groupName = this.input.name;
+ buttons = document.getElementsByName(groupName);
+ n = buttons.length;
+
+ for (i = 0; i < n; i++) {
+ if (buttons[i].checked) {
+ return buttons[i].value;
+ }
+ }
+ return null;
+ },
+ set: function(value) {
+ var buttons, groupName, i, n;
+
+ groupName = this.input.name;
+ buttons = document.getElementsByName(groupName);
+ n = buttons.length;
+ for (i = 0; i < n; i++) {
+ if (buttons[i].value === value) {
+ buttons[i].checked = true;
+ break;
+ }
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
index 873d651..cd53fcc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
@@ -97,95 +97,52 @@ org_apache_flex_html_Spinner.prototype.set_value =
};
-/**
- * @expose
- * @return {number} The minimum value.
- */
-org_apache_flex_html_Spinner.prototype.get_minimum = function() {
- return this.minimum_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new minimum value.
- */
-org_apache_flex_html_Spinner.prototype.set_minimum =
- function(value) {
- if (value != this.minimum_) {
- this.minimum_ = value;
- this.dispatchEvent('minimumChanged');
- }
-};
-
-
-/**
- * @expose
- * @return {number} The maximum value.
- */
-org_apache_flex_html_Spinner.prototype.get_maximum =
- function() {
- return this.maximum_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new maximum setter.
- */
-org_apache_flex_html_Spinner.prototype.set_maximum =
- function(value) {
- if (value != this.maximum_) {
- this.maximum_ = value;
- this.dispatchEvent('maximumChanged');
- }
-};
-
-
-/**
- * @expose
- * @return {number} The snapInterval.
- */
-org_apache_flex_html_Spinner.prototype.get_snapInterval =
- function() {
- return this.snapInterval_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new snapInterval value.
- */
-org_apache_flex_html_Spinner.prototype.set_snapInterval =
- function(value) {
- if (value != this.snapInterval_) {
- this.snapInterval_ = value;
- this.dispatchEvent('snapIntervalChanged');
- }
-};
-
-
-/**
- * @expose
- * @return {number} The stepSize.
- */
-org_apache_flex_html_Spinner.prototype.get_stepSize =
- function() {
- return this.stepSize_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new stepSize value.
- */
-org_apache_flex_html_Spinner.prototype.set_stepSize =
- function(value) {
- if (value != this.stepSize_) {
- this.stepSize_ = value;
- this.dispatchEvent('stepSizeChanged');
- }
-};
+Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
+ 'minimum': {
+ get: function() {
+ return this.minimum_;
+ },
+ set: function(value) {
+ if (value != this.minimum_) {
+ this.minimum_ = value;
+ this.dispatchEvent('minimumChanged');
+ }
+ }
+ },
+ 'maximum': {
+ get: function() {
+ return this.maximum_;
+ },
+ set: function(value) {
+ if (value != this.maximum_) {
+ this.maximum_ = value;
+ this.dispatchEvent('maximumChanged');
+ }
+ }
+ },
+ 'snapInterval': {
+ get: function() {
+ return this.snapInterval_;
+ },
+ set: function(value) {
+ if (value != this.snapInterval_) {
+ this.snapInterval_ = value;
+ this.dispatchEvent('snapIntervalChanged');
+ }
+ }
+ },
+ 'stepSize': {
+ get: function() {
+ return this.stepSize_;
+ },
+ set: function(value) {
+ if (value != this.stepSize_) {
+ this.stepSize_ = value;
+ this.dispatchEvent('stepSizeChanged');
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
index aaba67e..3accf39 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
@@ -53,20 +53,13 @@ org_apache_flex_html_TextArea.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_TextArea.prototype.get_text = function() {
- return this.element.value;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_TextArea.prototype.set_text =
- function(value) {
- this.element.value = value;
-};
+Object.defineProperties(org_apache_flex_html_TextArea.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.value;
+ },
+ set: function(value) {
+ this.element.value = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
index 1442327..0dce8f8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
@@ -39,20 +39,13 @@ org_apache_flex_html_TextButton.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_TextButton'}] };
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_TextButton.prototype.get_text = function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_TextButton.prototype.set_text =
- function(value) {
- this.element.innerHTML = value;
-};
+Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.innerHTML;
+ },
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
index b6fb306..b86c315 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
@@ -57,23 +57,17 @@ org_apache_flex_html_TextInput.prototype.createElement = function() {
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_TextInput.prototype.get_text = function() {
- return this.element.value;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_TextInput.prototype.set_text = function(value) {
- this.element.value = value;
- this.dispatchEvent(new org_apache_flex_events_Event('textChange'));
-};
+Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.value;
+ },
+ set: function(value) {
+ this.element.value = value;
+ this.dispatchEvent(new org_apache_flex_events_Event('textChange'));
+ }
+ },
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
index 22bfda7..4373cef 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
@@ -47,56 +47,36 @@ org_apache_flex_html_ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_ToggleTextButton'}] };
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html_ToggleTextButton.prototype.get_text = function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html_ToggleTextButton.prototype.set_text =
- function(value) {
- this.element.innerHTML = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_html_ToggleTextButton.prototype.get_selected =
- function() {
- return this.selected_;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_html_ToggleTextButton.prototype.set_selected =
- function(value) {
- if (this.selected_ != value) {
- this.selected_ = value;
-
- var className = this.className;
- if (value) {
- if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
- this.className = className.substring(0, className.length - this.SELECTED.length);
- }
- else {
- if (className.indexOf(this.SELECTED) == -1)
- this.className = className + this.SELECTED;
- }
-
- }
-};
+Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.innerHTML;
+ },
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ },
+ 'selected': {
+ get: function() {
+ return this.selected_;
+ },
+ set: function(value) {
+ if (this.selected_ != value) {
+ this.selected_ = value;
+
+ var className = this.className;
+ if (value) {
+ if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
+ this.className = className.substring(0, className.length - this.SELECTED.length);
+ }
+ else {
+ if (className.indexOf(this.SELECTED) == -1)
+ this.className = className + this.SELECTED;
+ }
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
index f602571..0fa28a7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
@@ -44,13 +44,16 @@ org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype.FLEXJS_CLASS
* @expose
* @param {Object} value The new host.
*/
-org_apache_flex_html_accessories_NumericOnlyTextInputBead.
- prototype.set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- value.addEventListener('keypress', goog.bind(this.validateInput, this));
- }
-};
+Object.defineProperties(org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype, {
+ 'strand': {
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ value.addEventListener('keypress', goog.bind(this.validateInput, this));
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
index 84ac89b..6c30516 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
@@ -40,14 +40,13 @@ org_apache_flex_html_accessories_PasswordInputBead.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_accessories_PasswordInputBead' }] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_accessories_PasswordInputBead.
- prototype.set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- value.element.type = 'password';
- }
-};
+Object.defineProperties(org_apache_flex_html_accessories_PasswordInputBead.prototype, {
+ 'strand': {
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ value.element.type = 'password';
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
index 0bd17f2..5dcdd63 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
@@ -58,62 +58,49 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
prototype.itemRendererClass_ = null;
-/**
- * @expose
- * @param {Object} value The component strand.
- */
-org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
- prototype.set_strand = function(value) {
- this.strand_ = value;
-
- this.model = value.getBeadByType(
- org_apache_flex_html_beads_models_ArraySelectionModel);
-
- this.listView = value.getBeadByType(
- org_apache_flex_html_beads_ListView);
- this.dataGroup = this.listView.dataGroup;
-
- this.model.addEventListener('dataProviderChanged',
- goog.bind(this.dataProviderChangedHandler, this));
-
- if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererFactory_) {
- /**
- * @type {Function}
- */
- var c = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_,
- 'iItemRendererClassFactory'));
- this.itemRendererFactory_ = new c();
- this.strand_.addBead(this.itemRendererFactory_);
- }
-
- this.dataProviderChangedHandler(null);
-};
-
-
-/**
- * @expose
- * @return {Object} The itemRenderer.
- */
-org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
- prototype.get_itemRendererClass = function() {
- if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) {
- var c = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRenderer');
- if (c) {
- this.itemRendererClass_ = c;
- }
- }
- return this.itemRendererClass_;
-};
-
-
-/**
- * @expose
- * @param {Object} value class to use for the item renderer.
- */
-org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
- prototype.set_itemRendererClass = function(value) {
- this.itemRendererClass_ = value;
-};
+Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
+
+ this.model = value.getBeadByType(
+ org_apache_flex_html_beads_models_ArraySelectionModel);
+
+ this.listView = value.getBeadByType(
+ org_apache_flex_html_beads_ListView);
+ this.dataGroup = this.listView.dataGroup;
+
+ this.model.addEventListener('dataProviderChanged',
+ goog.bind(this.dataProviderChangedHandler, this));
+
+ if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererFactory_) {
+ /**
+ * @type {Function}
+ */
+ var c = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_,
+ 'iItemRendererClassFactory'));
+ this.itemRendererFactory_ = new c();
+ this.strand_.addBead(this.itemRendererFactory_);
+ }
+
+ this.dataProviderChangedHandler(null);
+ }
+ },
+ 'itemRendererClass': {
+ get: function() {
+ if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) {
+ var c = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRenderer');
+ if (c) {
+ this.itemRendererClass_ = c;
+ }
+ }
+ return this.itemRendererClass_;
+ },
+ set: function(value) {
+ this.itemRendererClass_ = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index 9f7dd4a..2428fdf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -141,48 +141,30 @@ org_apache_flex_html_beads_ListView.prototype.
};
-/**
- * @expose
- * @return {Object} The view that contains the layout objects.
- */
-org_apache_flex_html_beads_ListView.prototype.get_contentView = function() {
- return this.dataGroup_;
-};
-
-
-/**
- * @expose
- * @return {Object} The border for the layout area.
- */
-org_apache_flex_html_beads_ListView.prototype.get_border = function() {
- return null;
-};
-
-
-/**
- * @expose
- * @return {Object} The vertical scrollbar.
- */
-org_apache_flex_html_beads_ListView.prototype.get_vScrollBar = function() {
- return null;
-};
-
-
-/**
- * @expose
- * @param {Object} value The vertical scrollbar.
- */
-org_apache_flex_html_beads_ListView.prototype.set_vScrollBar = function(value) {
-};
-
-
-/**
- * @expose
- * @return {Object} The view that can be resized.
- */
-org_apache_flex_html_beads_ListView.prototype.get_resizeableView = function() {
- return this;
-};
+Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
+ 'contentView': {
+ get: function() {
+ return this.dataGroup_;
+ }
+ },
+ 'border': {
+ get: function() {
+ return null;
+ }
+ },
+ 'vScrollBar': {
+ get: function() {
+ return null;
+ },
+ set: function(value) {
+ }
+ },
+ 'resizeableView': {
+ get: function() {
+ return this;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
index 76c3544..3033f6f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
@@ -47,26 +47,25 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
interfaces: [org_apache_flex_core_IItemRenderer] };
-/**
- * @expose
- * @param {Object} value The component strand.
- */
-org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
- prototype.set_strand = function(value) {
- this.strand_ = value;
+Object.defineProperties(org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
- this.model = value.getBeadByType(
- org_apache_flex_html_beads_models_ArraySelectionModel);
+ this.model = value.getBeadByType(
+ org_apache_flex_html_beads_models_ArraySelectionModel);
- this.listView = value.getBeadByType(
- org_apache_flex_html_beads_ListView);
- this.dataGroup = this.listView.dataGroup;
+ this.listView = value.getBeadByType(
+ org_apache_flex_html_beads_ListView);
+ this.dataGroup = this.listView.dataGroup;
- this.model.addEventListener('dataProviderChanged',
- goog.bind(this.dataProviderChangedHandler, this));
+ this.model.addEventListener('dataProviderChanged',
+ goog.bind(this.dataProviderChangedHandler, this));
- this.dataProviderChangedHandler(null);
-};
+ this.dataProviderChangedHandler(null);
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
index fec6fad..617adeb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
@@ -37,25 +37,25 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.FLE
interfaces: [org_apache_flex_core_IBeadController] };
-/**
- * @expose
- * @param {Object} value The strand for this component.
- */
-org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.set_strand = function(value) {
- this.strand_ = value;
+Object.defineProperties(org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEOVER,
- goog.bind(this.handleMouseOver, this));
+ goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEOVER,
+ goog.bind(this.handleMouseOver, this));
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEOUT,
- goog.bind(this.handleMouseOut, this));
+ goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEOUT,
+ goog.bind(this.handleMouseOut, this));
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEDOWN,
- goog.bind(this.handleMouseDown, this));
+ goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEDOWN,
+ goog.bind(this.handleMouseDown, this));
- goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEUP,
- goog.bind(this.handleMouseUp, this));
-};
+ goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEUP,
+ goog.bind(this.handleMouseUp, this));
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
index 6ee9dc6..8770bf6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
@@ -39,23 +39,22 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
interfaces: [org_apache_flex_core_IBeadController] };
-/**
- * @expose
- * ListSingleSelectionMouseController}
- * @param {Object} value The strand for this component.
- */
-org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype.set_strand = function(value) {
- this.strand_ = value;
+Object.defineProperties(org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
- this.model = value.getBeadByType(
- org_apache_flex_html_beads_models_ArraySelectionModel);
- this.listView = value.getBeadByType(
- org_apache_flex_html_beads_ListView);
+ this.model = value.getBeadByType(
+ org_apache_flex_html_beads_models_ArraySelectionModel);
+ this.listView = value.getBeadByType(
+ org_apache_flex_html_beads_ListView);
- this.dataGroup = this.listView.dataGroup;
- this.dataGroup.addEventListener('selected',
- goog.bind(this.selectedHandler, this));
-};
+ this.dataGroup = this.listView.dataGroup;
+ this.dataGroup.addEventListener('selected',
+ goog.bind(this.selectedHandler, this));
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
index 4493ddc..eb58d58 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
@@ -37,26 +37,24 @@ org_apache_flex_html_beads_controllers_SliderMouseController.prototype.FLEXJS_CL
qName: 'org_apache_flex_html_beads_controllers_SliderMouseController' }] };
-/**
- * @expose
- * SliderMouseController}
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_controllers_SliderMouseController.
- prototype.set_strand = function(value) {
- this.strand_ = value;
+Object.defineProperties(org_apache_flex_html_beads_controllers_SliderMouseController.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
- this.track = this.strand_.getBeadByType(
- org_apache_flex_html_beads_SliderTrackView);
- this.thumb = this.strand_.getBeadByType(
- org_apache_flex_html_beads_SliderThumbView);
+ this.track = this.strand_.getBeadByType(
+ org_apache_flex_html_beads_SliderTrackView);
+ this.thumb = this.strand_.getBeadByType(
+ org_apache_flex_html_beads_SliderThumbView);
- goog.events.listen(this.track.element, goog.events.EventType.CLICK,
+ goog.events.listen(this.track.element, goog.events.EventType.CLICK,
this.handleTrackClick, false, this);
- goog.events.listen(this.thumb.element, goog.events.EventType.MOUSEDOWN,
+ goog.events.listen(this.thumb.element, goog.events.EventType.MOUSEDOWN,
this.handleThumbDown, false, this);
-};
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
index 5bce99c..340317a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
@@ -36,24 +36,22 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype.FLEXJS_C
qName: 'org_apache_flex_html_beads_controllers_SpinnerMouseController' }] };
-/**
- * @expose
- * SpinnerMouseController}
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_controllers_SpinnerMouseController.
- prototype.set_strand = function(value) {
- this.strand_ = value;
-
- this.incrementButton = this.strand_.incrementButton;
- this.decrementButton = this.strand_.decrementButton;
-
- goog.events.listen(this.incrementButton.element, goog.events.EventType.CLICK,
- goog.bind(this.handleIncrementClick, this));
-
- goog.events.listen(this.decrementButton.element, goog.events.EventType.CLICK,
- goog.bind(this.handleDecrementClick, this));
-};
+Object.defineProperties(org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
+
+ this.incrementButton = this.strand_.incrementButton;
+ this.decrementButton = this.strand_.decrementButton;
+
+ goog.events.listen(this.incrementButton.element, goog.events.EventType.CLICK,
+ goog.bind(this.handleIncrementClick, this));
+
+ goog.events.listen(this.decrementButton.element, goog.events.EventType.CLICK,
+ goog.bind(this.handleDecrementClick, this));
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index f705adc..f02734d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@ -43,35 +43,28 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype.FLEXJS_CLASS_
interfaces: [org_apache_flex_core_IBeadLayout] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.
- prototype.set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- if (this.strand_.isWidthSizedToContent() &&
- this.strand_.isHeightSizedToContent())
- this.addOtherListeners();
- else {
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.sizeChangeHandler, this));
-
- // in JS, we won't always get size/width/height change
- // events because we let the browser layout based on
- // %'s and don't convert to pixels, so listen to the
- // other events anyway.
- /* if (!isNaN(this.strand_.explicitWidth) &&
- !isNaN(this.strand_.explicitHeight))*/
- this.addOtherListeners();
- }
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype, {
+ 'strand': {
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ if (this.strand_.isWidthSizedToContent() &&
+ this.strand_.isHeightSizedToContent())
+ this.addOtherListeners();
+ else {
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.sizeChangeHandler, this));
+
+ this.addOtherListeners();
+ }
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
index af85336..03359d6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
@@ -40,20 +40,19 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype.FLEX
interfaces: [org_apache_flex_core_IBeadLayout] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.
- prototype.set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('childrenAdded',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('layoutNeeded',
- goog.bind(this.changeHandler, this));
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype, {
+ 'strand': {
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ this.strand_.addEventListener('childrenAdded',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('layoutNeeded',
+ goog.bind(this.changeHandler, this));
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
index 747a1f9..b15aa99 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
@@ -40,30 +40,29 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype.FLEXJS_CLA
interfaces: [org_apache_flex_core_IBeadLayout] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.
- prototype.set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- if (this.strand_.isWidthSizedToContent() &&
- this.strand_.isHeightSizedToContent())
- this.addOtherListeners();
- else {
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.sizeChangeHandler, this));
- if (!isNaN(this.strand_.explicitWidth) &&
- !isNaN(this.strand_.explicitHeight))
- this.addOtherListeners();
- }
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, {
+ 'strand': {
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ if (this.strand_.isWidthSizedToContent() &&
+ this.strand_.isHeightSizedToContent())
+ this.addOtherListeners();
+ else {
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.sizeChangeHandler, this));
+ if (!isNaN(this.strand_.explicitWidth) &&
+ !isNaN(this.strand_.explicitHeight))
+ this.addOtherListeners();
+ }
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
index 79c4c6e..9a969e9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
@@ -39,12 +39,12 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype.F
interfaces: [org_apache_flex_core_IBeadLayout] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype.set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, {
+ 'strand': {
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
index bca880d..0fc0bd6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
@@ -70,43 +70,29 @@ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
};
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
- prototype.set_strand = function(value) {
-
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The strand.
- */
-org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
- prototype.get_strand = function() {
- return this.strand_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The text to display.
- */
-org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
- prototype.set_data = function(value) {
-
- org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.base(this, 'set_data', value);
-
- if (value.hasOwnProperty('label')) {
- this.button.innerHTML = value.label;
- }
- else if (value.hasOwnProperty('title')) {
- this.button.innerHTML = value.title;
- }
- else {
- this.button.innerHTML = value;
- }
-};
+Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
+ },
+ get: function() {
+ return this.strand_;
+ }
+ },
+ 'data': {
+ set: function(value) {
+
+ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.base(this, 'set_data', value);
+
+ if (value.hasOwnProperty('label')) {
+ this.button.innerHTML = value.label;
+ }
+ else if (value.hasOwnProperty('title')) {
+ this.button.innerHTML = value.title;
+ }
+ else {
+ this.button.innerHTML = value;
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
index 0e4d912..bd9ecf7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
@@ -69,89 +69,52 @@ org_apache_flex_html_supportClasses_DataItemRenderer.
};
-/**
- * @expose
- * @return {Object} The item renderer's parent.
- */
-org_apache_flex_html_supportClasses_DataItemRenderer.
- prototype.get_itemRendererParent = function() {
- return this.rendererParent_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The item renderer's parent.
- */
-org_apache_flex_html_supportClasses_DataItemRenderer.
- prototype.set_itemRendererParent = function(value) {
- this.rendererParent_ = value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The renderer's index.
- */
-org_apache_flex_html_supportClasses_DataItemRenderer.
- prototype.set_index = function(value) {
- this.index_ = value;
-};
-
-
-/**
- * @expose
- * @param {string} value The name of field to use.
- */
-org_apache_flex_html_supportClasses_DataItemRenderer.
- prototype.set_dataField = function(value) {
-
- this.dataField_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} The name of the field to use.
- */
-org_apache_flex_html_supportClasses_DataItemRenderer.
- prototype.get_dataField = function() {
-
- return this.dataField_;
-};
-
-
-/**
- * @override
- * @param {Boolean} value The selection state.
- */
-org_apache_flex_html_supportClasses_DataItemRenderer.
- prototype.set_selected = function(value) {
- this.selected_ = value;
-
- if (value) {
- this.backgroundView.style.backgroundColor = '#9C9C9C';
- } else {
- this.backgroundView.style.backgroundColor = null;
- }
-};
-
-
-/**
- * @override
- * @param {Boolean} value The hovered state.
- */
-org_apache_flex_html_supportClasses_DataItemRenderer.
- prototype.set_hovered = function(value) {
- this.hovered_ = value;
-
- if (value) {
- this.backgroundView.style.backgroundColor = '#ECECEC';
- } else {
- if (this.selected_) {
- this.backgroundView.style.backgroundColor = '#9C9C9C';
- } else {
- this.backgroundView.style.backgroundColor = null;
- }
- }
-};
+Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.prototype, {
+ 'itemRendererParent': {
+ get: function() {
+ return this.rendererParent_;
+ },
+ set: function(value) {
+ this.rendererParent_ = value;
+ }
+ },
+ 'index': {
+ set: function(value) {
+ this.index_ = value;
+ }
+ },
+ 'dataField': {
+ set: function(value) {
+ this.dataField_ = value;
+ },
+ get: function() {
+ return this.dataField_;
+ }
+ },
+ 'selected': {
+ set: function(value) {
+ this.selected_ = value;
+
+ if (value) {
+ this.backgroundView.style.backgroundColor = '#9C9C9C';
+ } else {
+ this.backgroundView.style.backgroundColor = null;
+ }
+ }
+ },
+ 'hovered': {
+ set: function(value) {
+ this.hovered_ = value;
+
+ if (value) {
+ this.backgroundView.style.backgroundColor = '#ECECEC';
+ } else {
+ if (this.selected_) {
+ this.backgroundView.style.backgroundColor = '#9C9C9C';
+ } else {
+ this.backgroundView.style.backgroundColor = null;
+ }
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
index 970c693..a5de69b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
@@ -44,14 +44,20 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype.FLEXJS_CLASS_I
qName: 'org_apache_flex_html_supportClasses_NonVirtualDataGroup' }] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_supportClasses_NonVirtualDataGroup.
- prototype.set_strand = function(value) {
- this.strand_ = value;
-};
+Object.defineProperties(org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'numElements': {
+ get: function() {
+
+ var n = this.element.childNodes.length;
+ return n;
+ }
+ }
+});
/**
@@ -102,18 +108,6 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.
/**
* @expose
- * @return {number} The number of child nodes in the group.
- */
-org_apache_flex_html_supportClasses_NonVirtualDataGroup.
- prototype.get_numElements = function() {
-
- var n = this.element.childNodes.length;
- return n;
-};
-
-
-/**
- * @expose
* @param {number} index The index of the desired element.
* @return {Object} The element at the given index.
*/
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
index 1d4a974..4377bad 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -70,108 +70,54 @@ org_apache_flex_html_supportClasses_StringItemRenderer.
};
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.set_strand = function(value) {
-
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The strand.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.get_strand = function() {
- return this.strand_;
-};
-
-
-/**
- * @expose
- * @return {Object} The item renderer's parent.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.get_itemRendererParent = function() {
- return this.rendererParent_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The item renderer's parent.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.set_itemRendererParent = function(value) {
- this.rendererParent_ = value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The renderer's index.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.set_index = function(value) {
- this.index_ = value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The text to display.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.set_text = function(value) {
-
- this.element.innerHTML = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The text being displayed.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.get_text = function() {
-
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {Object} value The text to display.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.set_data = function(value) {
-
- org_apache_flex_html_supportClasses_StringItemRenderer.base(this, 'set_data', value);
-
- if (this.labelField) {
- this.element.innerHTML = String(value[this.labelField]);
- }
- else if (this.dataField) {
- this.element.innerHTML = String(value[this.dataField]);
- }
- else if (value.toString) {
- this.element.innerHTML = value.toString();
- } else {
- this.element.innerHTML = String(value);
- }
-};
-
-
-/**
- * @expose
- * @return {Object} The text being displayed.
- */
-org_apache_flex_html_supportClasses_StringItemRenderer.
- prototype.get_data = function() {
-
- return this.element.innerHTML;
-};
+Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
+ },
+ get: function() {
+ return this.strand_;
+ }
+ },
+ 'itemRendererParent': {
+ get: function() {
+ return this.rendererParent_;
+ },
+ set: function(value) {
+ this.rendererParent_ = value;
+ }
+ },
+ 'index': {
+ set: function(value) {
+ this.index_ = value;
+ }
+ },
+ 'text': {
+ set: function(value) {
+ this.element.innerHTML = value;
+ },
+ get: function() {
+ return this.element.innerHTML;
+ }
+ },
+ 'data': {
+ set: function(value) {
+ org_apache_flex_html_supportClasses_StringItemRenderer.base(this, 'set_data', value);
+
+ if (this.labelField) {
+ this.element.innerHTML = String(value[this.labelField]);
+ }
+ else if (this.dataField) {
+ this.element.innerHTML = String(value[this.dataField]);
+ }
+ else if (value.toString) {
+ this.element.innerHTML = value.toString();
+ } else {
+ this.element.innerHTML = String(value);
+ }
+ },
+ get: function() {
+ return this.element.innerHTML;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
index ebf79a0..2e4ec8b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
@@ -49,40 +49,21 @@ org_apache_flex_html5_CheckBox.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html5_CheckBox.prototype.get_text = function() {
- return this.element.childNodes.item(1).nodeValue;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html5_CheckBox.prototype.set_text =
- function(value) {
- this.element.childNodes.item(1).nodeValue = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_html5_CheckBox.prototype.get_selected =
- function() {
- return this.element.childNodes.item(0).checked;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_html5_CheckBox.prototype.set_selected =
- function(value) {
- this.element.childNodes.item(0).checked = value;
-};
+Object.defineProperties(org_apache_flex_html5_CheckBox.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.childNodes.item(1).nodeValue;
+ },
+ set: function(value) {
+ this.element.childNodes.item(1).nodeValue = value;
+ }
+ },
+ selected: {
+ get: function() {
+ return this.element.childNodes.item(0).checked;
+ },
+ set: function(value) {
+ this.element.childNodes.item(0).checked = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
index 72dd41c..4b36bbc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
@@ -166,31 +166,18 @@ org_apache_flex_html5_ComboBox.prototype.buttonClicked =
};
-/**
- * @override
- * @expose
- * @param {Array.<Object>} value The collection of data.
- */
-org_apache_flex_html5_ComboBox.prototype.set_dataProvider =
- function(value) {
- this.dataProvider = value;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html5_ComboBox.prototype.get_text = function() {
- return this.element.childNodes.item(0).value;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html5_ComboBox.prototype.set_text =
- function(value) {
- this.element.childNodes.item(0).value = value;
-};
+Object.defineProperties(org_apache_flex_html5_ComboBox.prototype, {
+ 'dataProvider': {
+ set: function(value) {
+ this.dataProvider = value;
+ }
+ },
+ 'text': {
+ get: function() {
+ return this.element.childNodes.item(0).value;
+ },
+ set: function(value) {
+ this.element.childNodes.item(0).value = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
index 05030a3..c4bf43d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
@@ -42,20 +42,13 @@ org_apache_flex_html5_Label.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html5_Label.prototype.get_text = function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html5_Label.prototype.set_text =
- function(value) {
- this.element.innerHTML = value;
-};
+Object.defineProperties(org_apache_flex_html5_Label.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.innerHTML;
+ },
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ }
+});
[18/47] git commit: [flex-asjs] [refs/heads/develop] - more fixups
for defineprop
Posted by ah...@apache.org.
more fixups for defineprop
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/116441cd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/116441cd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/116441cd
Branch: refs/heads/develop
Commit: 116441cdae9f749be3a0474a4fd52d1c014c59cf
Parents: 68c4875
Author: Alex Harui <ah...@apache.org>
Authored: Fri Mar 27 08:31:17 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Mar 27 08:31:17 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/core/Application.js | 8 ++-
.../src/org/apache/flex/core/ContainerBase.js | 7 ++-
.../org/apache/flex/core/HTMLElementWrapper.js | 64 +-------------------
.../org/apache/flex/core/SimpleCSSValuesImpl.js | 2 +-
.../src/org/apache/flex/html/DropDownList.js | 1 +
.../src/org/apache/flex/html/TextInput.js | 1 +
.../TextItemRendererFactoryForArrayData.js | 2 +
7 files changed, 19 insertions(+), 66 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/116441cd/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
index fdf34d4..aab8e23 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
@@ -68,12 +68,18 @@ org_apache_flex_core_Application.prototype.model = null;
Object.defineProperties(org_apache_flex_core_Application.prototype, {
'valuesImpl': {
/** @this {org_apache_flex_core_Application} */
- set: function() {
+ set: function(value) {
org_apache_flex_core_ValuesManager.valuesImpl = value;
if (value.init) {
value.init(this);
}
}
+ },
+ 'MXMLDescriptor': {
+ /** @this {org_apache_flex_core_Application} */
+ get: function() {
+ return null;
+ }
}
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/116441cd/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 77fabb7..b86f09b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -52,7 +52,12 @@ org_apache_flex_core_ContainerBase = function() {
*/
this.currentState_ = null;
-
+ /**
+ * @private
+ * @type {?Array}
+ */
+ this.mxmlDescriptor = null;
+
this.document = this;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/116441cd/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 f33d7c3..e1d9454 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -127,66 +127,4 @@ org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead) {
}
return null;
-};
-
-
-Object.defineProperties(Event.prototype, {
- /** Hack to allow event.target expressions to work
- *
- * @expose
- * @return {Object} The wrapping object.
- */
- 'target': {
- /** @this {Event} */
- get: function() {
- var obj = this.target;
- if (!obj)
- return this.currentTarget;
- return obj.flexjs_wrapper;
- }
- },
- /**
- * Hack to allow event.currentTarget to work
- * @return {Object} The wrapping object.
- */
- 'currentTarget': {
- /** @this {Event} */
- get: function() {
- return this.currentTarget.flexjs_wrapper;
- }
- }
-});
-
-
-Object.defineProperties(goog.events.BrowserEvent.prototype, {
- /**
- * Hack to allow event.target expressions to work
- *
- * @expose
- * @return {Object} The wrapping object.
- */
- 'target': {
- /** @this {goog.events.BrowserEvent} */
- get: function() {
- // if it is a faked event so just return the target
- if (!this.event_) return this.target;
- // for true browser events, get the embedded event's target
- return this.event_.target;
- }
- },
- /**
- * Hack to allow event.currentTarget expressions to work
- *
- * @expose
- * @return {?Node|Object} The wrapping object.
- */
- 'currentTarget': {
- /** @this {goog.events.BrowserEvent} */
- get: function() {
- // if it is a faked event so just return the currentTarget
- if (!this.event_) return this.currentTarget;
- // for true browser events, get the embedded event's currentTarget
- return this.event_.currentTarget;
- }
- }
-});
\ No newline at end of file
+};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/116441cd/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 f1dce9f..23c068d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -74,7 +74,7 @@ org_apache_flex_core_SimpleCSSValuesImpl.prototype.getValue =
var cName;
var selectorName;
- if (typeof(thisObject.hasOwnPropertY('style')) === 'function')
+ if (typeof(thisObject.hasOwnProperty('style')) === 'function')
{
var style = thisObject.style;
if (style != null)
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/116441cd/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
index 5ebe2e3..22668f5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_html_DropDownList');
goog.require('org_apache_flex_core_ListBase');
+goog.require('org_apache_flex_html_beads_models_ArraySelectionModel');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/116441cd/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
index 5e11d7e..cae09d7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_html_TextInput');
goog.require('org_apache_flex_core_UIBase');
+goog.require('org_apache_flex_events_Event');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/116441cd/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
index e88dedd..6161347 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
@@ -16,8 +16,10 @@ goog.provide('org_apache_flex_html_beads_TextItemRendererFactoryForArrayData');
goog.require('org_apache_flex_core_IDataProviderItemRendererMapper');
goog.require('org_apache_flex_core_IItemRenderer');
+goog.require('org_apache_flex_events_Event');
goog.require('org_apache_flex_events_EventDispatcher');
goog.require('org_apache_flex_html_beads_models_ArraySelectionModel');
+goog.require('org_apache_flex_html_supportClasses_StringItemRenderer');
[34/47] git commit: [flex-asjs] [refs/heads/develop] - change way we
handle event.target expressions. Now we wrap all events with a BrowserEvent.
This probably needs revisiting again
Posted by ah...@apache.org.
change way we handle event.target expressions. Now we wrap all events with a BrowserEvent. This probably needs revisiting again
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b7f109fa
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b7f109fa
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b7f109fa
Branch: refs/heads/develop
Commit: b7f109fa3acfab85162852c1ed6625ef40fb1997
Parents: 24205c9
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:09:53 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:09:53 2015 -0700
----------------------------------------------------------------------
.../org/apache/flex/core/HTMLElementWrapper.js | 34 ++++-
.../src/org/apache/flex/events/BrowserEvent.js | 139 +++++++++++++++++++
.../src/org/apache/flex/events/DragEvent.js | 3 +-
.../src/org/apache/flex/events/ElementEvents.js | 47 +++++++
.../FlexJS/src/org/apache/flex/events/Event.js | 22 ---
.../org/apache/flex/events/EventDispatcher.js | 16 +--
6 files changed, 223 insertions(+), 38 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b7f109fa/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 0b1d19d..01dbfdf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -16,6 +16,7 @@ goog.provide('org_apache_flex_core_HTMLElementWrapper');
goog.require('org_apache_flex_core_IBeadModel');
goog.require('org_apache_flex_core_IStrand');
+goog.require('org_apache_flex_events_BrowserEvent');
goog.require('org_apache_flex_events_EventDispatcher');
goog.require('org_apache_flex_utils_Language');
@@ -127,4 +128,35 @@ org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead) {
}
return null;
-};
\ No newline at end of file
+};
+
+
+/**
+ * @type {function((goog.events.Listener|null), (Object|null)):boolean}
+ */
+org_apache_flex_core_HTMLElementWrapper.googFireListener = null;
+
+/**
+ * Fires a listener with a set of arguments
+ *
+ * @param {goog.events.Listener} listener The listener object to call.
+ * @param {Object} eventObject The event object to pass to the listener.
+ * @return {boolean} Result of listener.
+ */
+org_apache_flex_core_HTMLElementWrapper.fireListenerOverride = function(listener, eventObject) {
+ var e = new org_apache_flex_events_BrowserEvent();
+ e.wrappedEvent = eventObject;
+ return org_apache_flex_core_HTMLElementWrapper.googFireListener(listener, e);
+};
+
+
+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;
+};
+
+
+org_apache_flex_core_HTMLElementWrapper.installedOverride =
+ org_apache_flex_core_HTMLElementWrapper.installOverride();
+
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b7f109fa/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
new file mode 100644
index 0000000..454c6ee
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js
@@ -0,0 +1,139 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+goog.provide('org_apache_flex_events_BrowserEvent');
+
+goog.require('goog.events.BrowserEvent');
+//goog.require('org_apache_flex_events_Event');
+
+
+
+/**
+ * @constructor
+ * @extends {org_apache_flex_events_Event}
+ */
+org_apache_flex_events_BrowserEvent = function() {
+// org_apache_flex_events_BrowserEvent.base(this, 'constructor');
+
+};
+//goog.inherits(org_apache_flex_events_BrowserEvent,
+// org_apache_flex_events_Event);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_events_BrowserEvent.prototype.FLEXJS_CLASS_INFO =
+ { names: [{ name: 'BrowserEvent',
+ qName: 'org_apache_flex_events_BrowserEvent' }] };
+
+
+/**
+ * @type {?goog.events.BrowserEvent}
+ */
+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, {
+ 'currentTarget': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ var o = this.wrappedEvent.currentTarget;
+ if (o.flexjs_wrapper)
+ return o.flexjs_wrapper;
+ return o;
+ }
+ },
+ 'button': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.button;
+ }
+ },
+ 'charCode': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.charCode;
+ }
+ },
+ 'clientX': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.clientX;
+ }
+ },
+ 'clientY': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.clientY;
+ }
+ },
+ 'keyCode': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.keyCode;
+ }
+ },
+ 'offsetX': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.offsetX;
+ }
+ },
+ 'offsetY': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.offsetY;
+ }
+ },
+ 'screenX': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.screenX;
+ }
+ },
+ 'screenY': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ return this.wrappedEvent.screenY;
+ }
+ },
+ 'relatedTarget': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ var o = this.wrappedEvent.relatedTarget;
+ if (o.flexjs_wrapper)
+ return o.flexjs_wrapper;
+ return o;
+ }
+ },
+ 'target': {
+ /** @this {org_apache_flex_events_BrowserEvent} */
+ get: function() {
+ var o = this.wrappedEvent.target;
+ if (o.flexjs_wrapper)
+ return o.flexjs_wrapper;
+ return o;
+ }
+ }
+});
+
+
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b7f109fa/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 a75791f..e33feda 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_events_DragEvent');
goog.require('goog.events.BrowserEvent');
+goog.require('org_apache_flex_events_ElementEvents');
goog.require('org_apache_flex_events_EventDispatcher');
@@ -132,7 +133,7 @@ org_apache_flex_events_DragEvent.DRAG_DROP = 'dragDrop';
* @return {boolean}
*/
org_apache_flex_events_DragEvent.installDragEventMixin = function() {
- var o = org_apache_flex_events_EventDispatcher.elementEvents;
+ var o = org_apache_flex_events_ElementEvents.elementEvents;
o['dragEnd'] = 1;
o['dragMove'] = 1;
return true;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b7f109fa/frameworks/js/FlexJS/src/org/apache/flex/events/ElementEvents.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/ElementEvents.js b/frameworks/js/FlexJS/src/org/apache/flex/events/ElementEvents.js
new file mode 100644
index 0000000..315b105
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/ElementEvents.js
@@ -0,0 +1,47 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+goog.provide('org_apache_flex_events_ElementEvents');
+
+
+
+/**
+ * @constructor
+ */
+org_apache_flex_events_ElementEvents = function() {
+};
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org_apache_flex_events_ElementEvents.prototype.FLEXJS_CLASS_INFO =
+ { names: [{ name: 'ElementEvents',
+ qName: 'org_apache_flex_events_ElementEvents' }] };
+
+
+/**
+ * @type {Object}
+ */
+org_apache_flex_events_ElementEvents.elementEvents = {
+ 'mouseover': 1,
+ 'mouseout': 1,
+ 'mouseup': 1,
+ 'mousedown': 1,
+ 'mousemove': 1,
+ 'rollover': 1,
+ 'rollout': 1
+};
+
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b7f109fa/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
index 876c015..73ecdd0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
@@ -69,25 +69,3 @@ org_apache_flex_events_Event.prototype.type = '';
org_apache_flex_events_Event.prototype.init = function(type) {
this.type = type;
};
-
-
-Object.defineProperties(org_apache_flex_events_Event.prototype, {
- 'type': {
- /** @this {org_apache_flex_events_Event} */
- get: function() {
- return this.type;
- }
- },
- 'target': {
- /** @this {org_apache_flex_events_Event} */
- get: function() {
- return this.target;
- }
- },
- 'currentTarget': {
- /** @this {org_apache_flex_events_Event} */
- get: function() {
- return this.currentTarget;
- }
- }
-});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b7f109fa/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js b/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
index e1e2fb7..9f66ef7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_events_EventDispatcher');
goog.require('goog.events.EventTarget');
+goog.require('org_apache_flex_events_ElementEvents');
goog.require('org_apache_flex_events_IEventDispatcher');
@@ -59,7 +60,7 @@ org_apache_flex_events_EventDispatcher.prototype.addEventListener =
this.element.nodeName.toLowerCase() !== 'div' &&
this.element.nodeName.toLowerCase() !== 'body') {
source = this.element;
- } else if (org_apache_flex_events_EventDispatcher.elementEvents[type]) {
+ } else if (org_apache_flex_events_ElementEvents.elementEvents[type]) {
// mouse and keyboard events also dispatch off the element.
source = this.element;
}
@@ -68,16 +69,3 @@ org_apache_flex_events_EventDispatcher.prototype.addEventListener =
};
-/**
- * @type {Object}
- */
-org_apache_flex_events_EventDispatcher.elementEvents = {
- 'mouseover': 1,
- 'mouseout': 1,
- 'mouseup': 1,
- 'mousedown': 1,
- 'mousemove': 1,
- 'rollover': 1,
- 'rollout': 1
-};
-
[23/47] git commit: [flex-asjs] [refs/heads/develop] - handle test
for statics differently
Posted by ah...@apache.org.
handle test for statics differently
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ca5aedcb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ca5aedcb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ca5aedcb
Branch: refs/heads/develop
Commit: ca5aedcbf5de98c93f289c756d8a84c0a11dcdb2
Parents: d9ebd92
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 09:37:41 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 09:37:41 2015 -0700
----------------------------------------------------------------------
.../FlexJS/src/org/apache/flex/binding/ConstantBinding.js | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ca5aedcb/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index 2c56451..8e60fb1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -46,13 +46,10 @@ Object.defineProperties(org_apache_flex_binding_ConstantBinding.prototype, {
org_apache_flex_utils_Language.superSetter(org_apache_flex_binding_ConstantBinding, this, 'strand', value);
var val;
- try {
+ if (this.sourcePropertyName in this.source) {
val = this.source[this.sourcePropertyName];
- } catch (e) {
- try {
- val = this.source.constructor[this.sourcePropertyName];
- } catch (e2) {
- }
+ } else if (this.sourcePropertyName in this.source.constructor) {
+ val = this.source.constructor[this.sourcePropertyName];
}
this.destination[this.destinationPropertyName] = val;
}
[33/47] git commit: [flex-asjs] [refs/heads/develop] - use proper
backing variable
Posted by ah...@apache.org.
use proper backing variable
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/24205c9d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/24205c9d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/24205c9d
Branch: refs/heads/develop
Commit: 24205c9dffdb418b20d4f05542f0cadd75b7c18b
Parents: f90fadf
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:08:26 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:08:26 2015 -0700
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/24205c9d/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 1a87bec..3c2a1ad 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -162,7 +162,11 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
'MXMLDescriptor': {
/** @this {org_apache_flex_core_ViewBase} */
get: function() {
- return this.MXMLDescriptor;
+ return this.mxmldd;
+ },
+ /** @this {org_apache_flex_core_ViewBase} */
+ set: function(value) {
+ this.mxmldd = value;
}
},
/**
[21/47] git commit: [flex-asjs] [refs/heads/develop] - lint
Posted by ah...@apache.org.
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/6940d954
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6940d954
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6940d954
Branch: refs/heads/develop
Commit: 6940d9544c3b117d4df36daa048d5d1915bc871e
Parents: 116441c
Author: Alex Harui <ah...@apache.org>
Authored: Fri Mar 27 10:07:41 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Mar 27 10:07:41 2015 -0700
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/cordova/Weinre.js | 8 +-
.../src/org/apache/flex/binding/BindingBase.js | 2 +-
.../src/org/apache/flex/binding/ChainBinding.js | 2 +-
.../org/apache/flex/binding/ConstantBinding.js | 2 +-
.../org/apache/flex/binding/GenericBinding.js | 4 +-
.../org/apache/flex/binding/SimpleBinding.js | 2 +-
.../org/apache/flex/charts/core/ChartBase.js | 4 +-
.../src/org/apache/flex/core/Application.js | 14 +--
.../src/org/apache/flex/core/BeadViewBase.js | 12 +--
.../src/org/apache/flex/core/CallLaterBead.js | 4 +-
.../src/org/apache/flex/core/ContainerBase.js | 20 ++--
.../src/org/apache/flex/core/FilledRectangle.js | 4 +-
.../src/org/apache/flex/core/FormatBase.js | 14 +--
.../org/apache/flex/core/HTMLElementWrapper.js | 4 +-
.../js/FlexJS/src/org/apache/flex/core/IBead.js | 2 +-
.../flex/core/ItemRendererClassFactory.js | 2 +-
.../FlexJS/src/org/apache/flex/core/ListBase.js | 18 ++--
.../org/apache/flex/core/SimpleStatesImpl.js | 4 +-
.../FlexJS/src/org/apache/flex/core/UIBase.js | 64 ++++++-------
.../src/org/apache/flex/core/ValuesManager.js | 4 +-
.../FlexJS/src/org/apache/flex/core/ViewBase.js | 16 ++--
.../org/apache/flex/core/ViewBaseDataBinding.js | 4 +-
.../src/org/apache/flex/core/graphics/Circle.js | 4 +-
.../apache/flex/core/graphics/GradientBase.js | 18 ++--
.../apache/flex/core/graphics/GradientEntry.js | 12 +--
.../apache/flex/core/graphics/GraphicShape.js | 8 +-
.../flex/core/graphics/GraphicsContainer.js | 10 +-
.../apache/flex/core/graphics/LinearGradient.js | 4 +-
.../src/org/apache/flex/core/graphics/Path.js | 4 +-
.../org/apache/flex/core/graphics/SolidColor.js | 8 +-
.../flex/core/graphics/SolidColorStroke.js | 12 +--
.../src/org/apache/flex/createjs/CheckBox.js | 12 +--
.../src/org/apache/flex/createjs/Label.js | 4 +-
.../src/org/apache/flex/createjs/TextButton.js | 6 +-
.../src/org/apache/flex/createjs/core/UIBase.js | 16 ++--
.../org/apache/flex/createjs/core/ViewBase.js | 6 +-
.../org/apache/flex/effects/PlatformWiper.js | 48 +++++-----
.../FlexJS/src/org/apache/flex/events/Event.js | 6 +-
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 78 ++++++++--------
.../src/org/apache/flex/html/DropDownList.js | 24 ++---
.../js/FlexJS/src/org/apache/flex/html/Image.js | 14 +--
.../js/FlexJS/src/org/apache/flex/html/List.js | 40 ++++----
.../src/org/apache/flex/html/NumericStepper.js | 54 +++++------
.../src/org/apache/flex/html/SimpleList.js | 38 ++++----
.../FlexJS/src/org/apache/flex/html/Slider.js | 62 ++++++-------
.../FlexJS/src/org/apache/flex/html/Spinner.js | 8 +-
.../FlexJS/src/org/apache/flex/html/TextArea.js | 4 +-
.../src/org/apache/flex/html/TextButton.js | 4 +-
.../src/org/apache/flex/html/TextInput.js | 4 +-
.../FlexJS/src/org/apache/flex/html/TitleBar.js | 22 ++---
.../org/apache/flex/html/ToggleTextButton.js | 8 +-
.../accessories/NumericOnlyTextInputBead.js | 2 +-
.../flex/html/accessories/PasswordInputBead.js | 2 +-
.../flex/html/accessories/TextPromptBead.js | 18 ++--
.../org/apache/flex/html/beads/ButtonBarView.js | 6 +-
.../org/apache/flex/html/beads/ContainerView.js | 8 +-
.../apache/flex/html/beads/ImageButtonView.js | 4 +-
.../src/org/apache/flex/html/beads/ImageView.js | 4 +-
.../src/org/apache/flex/html/beads/ListView.js | 72 +++++++--------
.../src/org/apache/flex/html/beads/PanelView.js | 46 +++++-----
.../flex/html/beads/ScrollingContainerView.js | 22 ++---
.../apache/flex/html/beads/SliderThumbView.js | 40 ++++----
.../apache/flex/html/beads/SliderTrackView.js | 34 +++----
.../flex/html/beads/TextInputWithBorderView.js | 4 +-
.../controllers/ItemRendererMouseController.js | 2 +-
.../ListSingleSelectionMouseController.js | 2 +-
.../beads/controllers/SliderMouseController.js | 2 +-
.../flex/html/beads/layouts/ButtonBarLayout.js | 38 ++++----
.../beads/layouts/NonVirtualHorizontalLayout.js | 40 ++++----
.../flex/html/beads/layouts/TileLayout.js | 28 +++---
.../html/beads/models/ArraySelectionModel.js | 62 ++++++-------
.../flex/html/beads/models/DataGridModel.js | 14 +--
.../apache/flex/html/beads/models/ImageModel.js | 12 +--
.../html/beads/models/ListPresentationModel.js | 12 +--
.../apache/flex/html/beads/models/PanelModel.js | 28 +++---
.../apache/flex/html/beads/models/RangeModel.js | 68 +++++++-------
.../apache/flex/html/beads/models/TextModel.js | 14 +--
.../flex/html/beads/models/TitleBarModel.js | 30 +++---
.../flex/html/supportClasses/DataGridColumn.js | 54 +++++------
.../html/supportClasses/DataItemRenderer.js | 12 +--
.../html/supportClasses/NonVirtualDataGroup.js | 4 +-
.../html/supportClasses/StringItemRenderer.js | 18 ++--
.../html/supportClasses/UIItemRendererBase.js | 96 ++++++++++----------
.../src/org/apache/flex/html5/CheckBox.js | 8 +-
.../src/org/apache/flex/html5/ComboBox.js | 6 +-
.../FlexJS/src/org/apache/flex/html5/Label.js | 4 +-
.../src/org/apache/flex/html5/RadioButton.js | 36 ++++----
.../src/org/apache/flex/html5/TextArea.js | 4 +-
.../src/org/apache/flex/html5/TextButton.js | 4 +-
.../src/org/apache/flex/html5/TextInput.js | 4 +-
.../src/org/apache/flex/jquery/CheckBox.js | 8 +-
.../src/org/apache/flex/jquery/RadioButton.js | 22 ++---
.../src/org/apache/flex/jquery/TextButton.js | 4 +-
.../org/apache/flex/jquery/ToggleTextButton.js | 10 +-
.../src/org/apache/flex/maps/google/Map.js | 4 +-
.../apache/flex/maps/google/beads/MapView.js | 4 +-
.../apache/flex/maps/google/models/MapModel.js | 40 ++++----
.../src/org/apache/flex/net/BinaryUploader.js | 40 ++++----
.../src/org/apache/flex/net/HTTPService.js | 44 ++++-----
.../flex/net/dataConverters/LazyCollection.js | 36 ++++----
.../src/org/apache/flex/svg/TextButton.js | 8 +-
.../src/org/apache/flex/utils/BinaryData.js | 10 +-
.../src/org/apache/flex/utils/MixinManager.js | 4 +-
.../FlexJS/src/org/apache/flex/utils/Timer.js | 12 +--
.../flex/utils/ViewSourceContextMenuOption.js | 2 +-
105 files changed, 927 insertions(+), 933 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js b/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
index afaab0a..ccef391 100644
--- a/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
+++ b/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
@@ -34,13 +34,13 @@ org_apache_cordova_Weinre = function() {
Object.defineProperties(org_apache_cordova_Weinre.prototype, {
'strand': {
- /** @this {org_apache_cordova_Weinre} */
+ /** @this {org_apache_cordova_Weinre} */
set: function(value) {
this.strand_ = value;
}
},
'guid': {
- /** @this {org_apache_cordova_Weinre} */
+ /** @this {org_apache_cordova_Weinre} */
set: function(value) {
var scriptNode = document.createElement('SCRIPT');
@@ -50,8 +50,8 @@ Object.defineProperties(org_apache_cordova_Weinre.prototype, {
var headNode = document.getElementsByTagName('HEAD');
if (headNode[0] != null)
headNode[0].appendChild(scriptNode);
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
index ac31bbb..8857bc4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
@@ -101,7 +101,7 @@ org_apache_flex_binding_BindingBase.prototype.sourceChangeHandler = function(eve
Object.defineProperties(org_apache_flex_binding_BindingBase.prototype, {
'strand': {
- /** @this {org_apache_flex_binding_BindingBase} */
+ /** @this {org_apache_flex_binding_BindingBase} */
set: function(value) {
if (this.destination == null)
this.destination = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
index a9b5618..2dde849 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
@@ -198,7 +198,7 @@ org_apache_flex_binding_ChainWatcher.prototype.handler = function(event) {
Object.defineProperties(org_apache_flex_binding_ChainBinding.prototype, {
'strand': {
- /** @this {org_apache_flex_binding_ChainBinding} */
+ /** @this {org_apache_flex_binding_ChainBinding} */
set: function(value) {
this.applyBinding();
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index 3ed2ab9..2c56451 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -41,7 +41,7 @@ org_apache_flex_binding_ConstantBinding.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_binding_ConstantBinding.prototype, {
'strand': {
- /** @this {org_apache_flex_binding_ConstantBinding} */
+ /** @this {org_apache_flex_binding_ConstantBinding} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_binding_ConstantBinding, this, 'strand', value);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
index 357aee0..fd4ee23 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
@@ -65,8 +65,8 @@ Object.defineProperties(org_apache_flex_binding_GenericBinding.prototype, {
this.applyValue(val);
} catch (e) {
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index 235e156..a8cc3c4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -71,7 +71,7 @@ org_apache_flex_binding_SimpleBinding.prototype.sourceChangeHandler = function(e
Object.defineProperties(org_apache_flex_binding_SimpleBinding.prototype, {
'strand': {
- /** @this {org_apache_flex_binding_SimpleBinding} */
+ /** @this {org_apache_flex_binding_SimpleBinding} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_binding_SimpleBinding, this, 'strand', value);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
index 872c9fc..6486bf0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
@@ -71,11 +71,11 @@ org_apache_flex_charts_core_ChartBase.prototype.series_ = null;
Object.defineProperties(org_apache_flex_charts_core_ChartBase.prototype, {
'series': {
- /** @this {org_apache_flex_charts_core_ChartBase} */
+ /** @this {org_apache_flex_charts_core_ChartBase} */
get: function() {
return this.series_;
},
- /** @this {org_apache_flex_charts_core_ChartBase} */
+ /** @this {org_apache_flex_charts_core_ChartBase} */
set: function(value) {
this.series_ = value;
this.dispatchEvent(new org_apache_flex_events_Event('seriesChanged'));
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
index aab8e23..1f96fa4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
@@ -73,14 +73,14 @@ Object.defineProperties(org_apache_flex_core_Application.prototype, {
if (value.init) {
value.init(this);
}
- }
- },
- 'MXMLDescriptor': {
- /** @this {org_apache_flex_core_Application} */
+ }
+ },
+ 'MXMLDescriptor': {
+ /** @this {org_apache_flex_core_Application} */
get: function() {
- return null;
- }
- }
+ return null;
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
index f4cbabe..9f5d903 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
@@ -57,14 +57,14 @@ Object.defineProperties(org_apache_flex_core_BeadViewBase.prototype, {
if (this._strand !== value) {
this._strand = value;
}
- }
- },
- 'host': {
+ }
+ },
+ 'host': {
/** @this {org_apache_flex_core_BeadViewBase} */
- get: function() {
+ get: function() {
return this._strand;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
index fecfba4..e8236a5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
@@ -53,8 +53,8 @@ Object.defineProperties(org_apache_flex_binding_GenericBinding.prototype, {
if (this.strand_ !== value) {
this.strand_ = value;
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 b86f09b..f6bf4d4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -52,12 +52,6 @@ org_apache_flex_core_ContainerBase = function() {
*/
this.currentState_ = null;
- /**
- * @private
- * @type {?Array}
- */
- this.mxmlDescriptor = null;
-
this.document = this;
};
@@ -137,17 +131,17 @@ org_apache_flex_core_ContainerBase.prototype.setMXMLDescriptor =
Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
'MXMLDescriptor': {
- /** @this {org_apache_flex_core_ContainerBase} */
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.mxmlDescriptor;
}
},
'states': {
- /** @this {org_apache_flex_core_ContainerBase} */
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.states_;
},
- /** @this {org_apache_flex_core_ContainerBase} */
+ /** @this {org_apache_flex_core_ContainerBase} */
set: function(s) {
this.states_ = s;
this.currentState_ = s[0].name;
@@ -164,11 +158,11 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
}
},
'currentState': {
- /** @this {org_apache_flex_core_ContainerBase} */
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.currentState_;
},
- /** @this {org_apache_flex_core_ContainerBase} */
+ /** @this {org_apache_flex_core_ContainerBase} */
set: function(s) {
var event = new org_apache_flex_events_ValueChangeEvent(
'currentStateChange', false, false, this.currentState_, s);
@@ -177,11 +171,11 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
}
},
'transitions': {
- /** @this {org_apache_flex_core_ContainerBase} */
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.transitions_;
},
- /** @this {org_apache_flex_core_ContainerBase} */
+ /** @this {org_apache_flex_core_ContainerBase} */
set: function(s) {
this.transitions_ = s;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
index 1d72fc0..ee5a125 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
@@ -56,11 +56,11 @@ org_apache_flex_core_FilledRectangle.prototype.addedToParent = function() {
Object.defineProperties(org_apache_flex_core_FilledRectangle.prototype, {
'fillColor': {
- /** @this {org_apache_flex_core_FilledRectangle} */
+ /** @this {org_apache_flex_core_FilledRectangle} */
get: function() {
return this.fillColor_;
},
- /** @this {org_apache_flex_core_FilledRectangle} */
+ /** @this {org_apache_flex_core_FilledRectangle} */
set: function(value) {
this.fillColor_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index f8acdd9..6e751a9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -74,46 +74,46 @@ org_apache_flex_core_FormatBase.prototype._formattedResult = '';
Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
'strand': {
- /** @this {org_apache_flex_core_FormatBase} */
+ /** @this {org_apache_flex_core_FormatBase} */
set: function(value) {
this.strand_ = value;
}
},
'propertyValue': {
- /** @this {org_apache_flex_core_FormatBase} */
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
var value = this.strand_[this.propertyName];
return value;
}
},
'propertyName': {
- /** @this {org_apache_flex_core_FormatBase} */
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
if (this._propertyName == null) {
this._propertyName = 'text';
}
return this._propertyName;
},
- /** @this {org_apache_flex_core_FormatBase} */
+ /** @this {org_apache_flex_core_FormatBase} */
set: function(value) {
this._propertyName = value;
}
},
'eventName': {
- /** @this {org_apache_flex_core_FormatBase} */
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
if (this._eventName == null) {
return this._propertyName + 'Change';
}
return this._eventName;
},
- /** @this {org_apache_flex_core_FormatBase} */
+ /** @this {org_apache_flex_core_FormatBase} */
set: function(value) {
this._eventName = value;
}
},
'formattedString': {
- /** @this {org_apache_flex_core_FormatBase} */
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
return null;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 e1d9454..0b1d19d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -102,8 +102,8 @@ Object.defineProperties(org_apache_flex_core_HTMLElementWrapper.prototype, {
'MXMLDescriptor': {
get: function() {
return null;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
index 3bba849..619a314 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
@@ -44,5 +44,5 @@ Object.defineProperties(org_apache_flex_core_IBead.prototype, {
'strand': {
/** @this {org_apache_flex_binding_GenericBinding} */
set: function(value) {}
- }
+ }
});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
index 32a6069..be76971 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -46,7 +46,7 @@ org_apache_flex_core_ItemRendererClassFactory.
Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype, {
'strand': {
- /** @this {org_apache_flex_core_ItemRendererClassFactory} */
+ /** @this {org_apache_flex_core_ItemRendererClassFactory} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
index d04df78..7cb3f6c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
@@ -78,30 +78,30 @@ Object.defineProperties(org_apache_flex_core_ListBase.prototype, {
return this.model.dataProvider;
},
/** @this {org_apache_flex_core_ListBase} */
- set: function(value) {
+ set: function(value) {
this.model.dataProvider = value;
- }
- },
+ }
+ },
'selectedIndex': {
/** @this {org_apache_flex_core_ListBase} */
get: function() {
return this.model.selectedIndex;
- },
+ },
/** @this {org_apache_flex_core_ListBase} */
set: function(value) {
this.model.selectedIndex = value;
- }
- },
+ }
+ },
'selectedItem': {
/** @this {org_apache_flex_core_ListBase} */
get: function() {
return this.model.selectedItem;
- },
+ },
/** @this {org_apache_flex_core_ListBase} */
set: function(value) {
this.model.selectedItem = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 7e37110..e0ac5c7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
@@ -70,8 +70,8 @@ Object.defineProperties(org_apache_flex_core_SimpleStatesImpl.prototype, {
goog.bind(this.initialStateHandler_, this));
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 e184bdb..e27ba82 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -341,20 +341,20 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
* @param {Array.<Object>} value The list of beads from MXML.
*/
'beads': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
this.mxmlBeads_ = value;
}
},
'numElements': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var children = this.internalChildren();
return children.length;
}
},
'parent': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var p = this.positioner.parentNode;
var wrapper = p.flexjs_wrapper;
@@ -362,11 +362,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'alpha': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(alpha) {
this.positioner.style.opacity = alpha;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var stralpha = this.positioner.style.opacity;
var alpha = parseFloat(stralpha);
@@ -374,12 +374,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'x': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.positioner.style.position = 'absolute';
this.positioner.style.left = pixels.toString() + 'px';
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var strpixels = this.positioner.style.left;
var pixels = parseFloat(strpixels);
@@ -389,12 +389,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'y': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.positioner.style.position = 'absolute';
this.positioner.style.top = pixels.toString() + 'px';
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var strpixels = this.positioner.style.top;
var pixels = parseFloat(strpixels);
@@ -404,12 +404,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'width': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitWidth = pixels;
this.setWidth(pixels);
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var pixels;
var strpixels = this.positioner.style.width;
@@ -428,37 +428,37 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'explicitWidth': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitWidth_ = pixels;
if (!isNaN(pixels))
this.percentWidth_ = NaN;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.explicitWidth_;
}
},
'percentWidth': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.percentWidth_ = pixels;
this.positioner.style.width = pixels.toString() + '%';
if (!isNaN(pixels))
this.explicitWidth_ = NaN;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.percentWidth_;
}
},
'height': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitHeight = pixels;
this.setHeight(pixels);
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var pixels;
var strpixels = this.positioner.style.height;
@@ -477,36 +477,36 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'explicitHeight': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitHeight_ = pixels;
if (!isNaN(pixels))
this.percentHeight_ = NaN;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.explicitHeight_;
}
},
'percentHeight': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.percentHeight_ = pixels;
this.positioner.style.height = pixels.toString() + '%';
if (!isNaN(pixels))
this.explicitHeight_ = NaN;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.percentHeight_;
}
},
'id': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.id;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.id !== value) {
this.element.id = value;
@@ -516,11 +516,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'className': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.className;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.className !== value) {
this.element.className = this.typeNames ? value + ' ' + this.typeNames : value;
@@ -530,7 +530,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'model': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
if (this.model == null) {
// addbead will set _model
@@ -546,7 +546,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
return this.model;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.model !== value) {
this.addBead(value);
@@ -555,11 +555,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'style': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.style_;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.style_ !== value) {
if (typeof(value) == 'string')
@@ -573,11 +573,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'visible': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.positioner.style.display !== 'none';
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
var oldValue = this.positioner.style.display !== 'none';
if (value !== oldValue) {
@@ -597,7 +597,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'topMostEventDispatcher': {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return document.body.flexjs_wrapper;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
index 625696d..2e5617b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
@@ -44,11 +44,11 @@ org_apache_flex_core_ValuesManager.prototype.valuesImpl = null;
Object.defineProperties(org_apache_flex_core_ValuesManager.prototype, {
'valuesImpl': {
- /** @this {org_apache_flex_core_ValuesManager} */
+ /** @this {org_apache_flex_core_ValuesManager} */
get: function() {
return org_apache_flex_core_ValuesManager.valuesImpl;
},
- /** @this {org_apache_flex_core_ValuesManager} */
+ /** @this {org_apache_flex_core_ValuesManager} */
set: function(value) {
org_apache_flex_core_ValuesManager.valuesImpl = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 2a53d59..1a87bec 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -160,7 +160,7 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
* @return {Array} An array of descriptors.
*/
'MXMLDescriptor': {
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.MXMLDescriptor;
}
@@ -169,17 +169,17 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
* @return {Object} The application model.
*/
'applicationModel': {
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.applicationModel;
}
},
'states': {
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.states_;
},
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
set: function(value) {
this.states_ = value;
this.currentState_ = value[0].name;
@@ -196,11 +196,11 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
}
},
'currentState': {
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.currentState_;
},
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
set: function(value) {
var event = new org_apache_flex_events_ValueChangeEvent(
'currentStateChange', false, false, this.currentState_, value);
@@ -209,11 +209,11 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
}
},
'transitions': {
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.transitions_;
},
- /** @this {org_apache_flex_core_ViewBase} */
+ /** @this {org_apache_flex_core_ViewBase} */
set: function(value) {
this.transitions_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
index b4872a1..4dbedea 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
@@ -62,8 +62,8 @@ Object.defineProperties(org_apache_flex_core_ViewBaseDataBinding.prototype, {
this.strand_.addEventListener('initComplete',
goog.bind(this.initCompleteHandler, this));
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
index 1ad11ea..c9cb729 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
@@ -48,11 +48,11 @@ org_apache_flex_core_graphics_Circle.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_Circle.prototype, {
'radius': {
- /** @this {org_apache_flex_core_graphics_Circle} */
+ /** @this {org_apache_flex_core_graphics_Circle} */
set: function(v) {
this.radius_ = v;
},
- /** @this {org_apache_flex_core_graphics_Circle} */
+ /** @this {org_apache_flex_core_graphics_Circle} */
get: function() {
return this.radius_;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
index d8f42b8..31ff6d0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
@@ -66,11 +66,11 @@ org_apache_flex_core_graphics_GradientBase.prototype._rotation = 0.0;
Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
'entries': {
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._entries;
},
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._entries = value;
}
@@ -84,37 +84,37 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
* @return {number}
*/
'rotation': {
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._rotation;
},
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._rotation = value;
}
},
'x': {
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._x;
},
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._x = value;
}
},
'y': {
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._y = value;
},
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._y;
}
},
'newId': {
- /** @this {org_apache_flex_core_graphics_GradientBase} */
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
index 126f718..ed75287 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
@@ -57,11 +57,11 @@ org_apache_flex_core_graphics_GradientEntry.prototype._ratio = 0x000000;
Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
'alpha': {
- /** @this {org_apache_flex_core_graphics_GradientEntry} */
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._alpha;
},
- /** @this {org_apache_flex_core_graphics_GradientEntry} */
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
set: function(value) {
var /** @type {number} */ oldValue = this._alpha;
if (value != oldValue) {
@@ -70,11 +70,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
}
},
'color': {
- /** @this {org_apache_flex_core_graphics_GradientEntry} */
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._color;
},
- /** @this {org_apache_flex_core_graphics_GradientEntry} */
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
set: function(value) {
var /** @type {number} */ oldValue = this._color;
if (value != oldValue) {
@@ -83,11 +83,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
}
},
'ratio': {
- /** @this {org_apache_flex_core_graphics_GradientEntry} */
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._ratio;
},
- /** @this {org_apache_flex_core_graphics_GradientEntry} */
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
set: function(value) {
this._ratio = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
index 4bf01b3..3b7d09e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
@@ -93,11 +93,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicShape.prototype, {
* @type {org_apache_flex_core_graphics_IFill}
*/
'fill': {
- /** @this {org_apache_flex_core_graphics_GraphicShape} */
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
get: function() {
return this.fill_;
},
- /** @this {org_apache_flex_core_graphics_GraphicShape} */
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
set: function(value) {
this.fill_ = value;
}
@@ -106,11 +106,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicShape.prototype, {
* @type {org_apache_flex_core_graphics_IStroke} The stroke object.
*/
'stroke': {
- /** @this {org_apache_flex_core_graphics_GraphicShape} */
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
get: function() {
return this.stroke_;
},
- /** @this {org_apache_flex_core_graphics_GraphicShape} */
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
set: function(value) {
this.stroke_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
index ead8551..c268665 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
@@ -51,13 +51,13 @@ org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = fu
Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototype, {
'numChildren': {
- /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
get: function() {
return this.internalChildren().length;
}
},
'width': {
- /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_core_graphics_GraphicsContainer, this, 'width', value);
@@ -66,7 +66,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
}
},
'height': {
- /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_core_graphics_GraphicsContainer, this, 'height', value);
@@ -75,7 +75,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
}
},
'x': {
- /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_core_graphics_GraphicsContainer, this, 'x', value);
@@ -86,7 +86,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
}
},
'y': {
- /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_core_graphics_GraphicsContainer, this, 'y', value);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
index 006321a..d89052e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
@@ -44,11 +44,11 @@ org_apache_flex_core_graphics_LinearGradient.prototype._scaleX = 1.0;
Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
'scaleX': {
- /** @this {org_apache_flex_core_graphics_LinearGradient} */
+ /** @this {org_apache_flex_core_graphics_LinearGradient} */
get: function() {
return this._scaleX;
},
- /** @this {org_apache_flex_core_graphics_LinearGradient} */
+ /** @this {org_apache_flex_core_graphics_LinearGradient} */
set: function(value) {
this._scaleX = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
index f55ac3b..b72f8f1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
@@ -47,11 +47,11 @@ org_apache_flex_core_graphics_Path.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_Path.prototype, {
'data': {
- /** @this {org_apache_flex_core_graphics_Path} */
+ /** @this {org_apache_flex_core_graphics_Path} */
set: function(v) {
this.data_ = v;
},
- /** @this {org_apache_flex_core_graphics_Path} */
+ /** @this {org_apache_flex_core_graphics_Path} */
get: function() {
return this.data_;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
index 2f34d10..1f260cb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
@@ -51,21 +51,21 @@ org_apache_flex_core_graphics_SolidColor.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColor.prototype, {
'color': {
- /** @this {org_apache_flex_core_graphics_SolidColor} */
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
get: function() {
return this.color_;
},
- /** @this {org_apache_flex_core_graphics_SolidColor} */
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
set: function(value) {
this.color_ = value;
}
},
'alpha': {
- /** @this {org_apache_flex_core_graphics_SolidColor} */
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
get: function() {
return this.alpha_;
},
- /** @this {org_apache_flex_core_graphics_SolidColor} */
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
set: function(value) {
this.alpha_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
index dee2e7f..9453bbd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
@@ -57,31 +57,31 @@ org_apache_flex_core_graphics_SolidColorStroke.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype, {
'color': {
- /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.color_;
},
- /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
set: function(value) {
this.color_ = value;
}
},
'alpha': {
- /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.alpha_;
},
- /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
set: function(value) {
this.alpha_ = value;
}
},
'weight': {
- /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.weight_;
},
- /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
set: function(value) {
this.weight_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
index d183ef6..a15e44a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
@@ -98,23 +98,23 @@ Object.defineProperties(org_apache_flex_createjs_CheckBox.prototype, {
/** @this {org_apache_flex_createjs_CheckBox} */
get: function() {
return this.checkBoxLabel.text;
- },
+ },
/** @this {org_apache_flex_createjs_CheckBox} */
set: function(value) {
this.checkBoxLabel.text = value;
- }
- },
+ }
+ },
'selected': {
/** @this {org_apache_flex_createjs_CheckBox} */
get: function() {
return this.selected;
- },
+ },
/** @this {org_apache_flex_createjs_CheckBox} */
set: function(value) {
this.checkMark.visible = this.selected = value;
this.element.getStage().update();
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
index d351865..0318f95 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
@@ -49,11 +49,11 @@ org_apache_flex_createjs_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
'text': {
- /** @this {org_apache_flex_createjs_Label} */
+ /** @this {org_apache_flex_createjs_Label} */
get: function() {
return this.element.text;
},
- /** @this {org_apache_flex_createjs_Label} */
+ /** @this {org_apache_flex_createjs_Label} */
set: function(value) {
this.element.text = value;
this.element.getStage().update();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
index 894971e..601116c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
@@ -80,10 +80,10 @@ Object.defineProperties(org_apache_flex_createjs_TextButton.prototype, {
/** @this {org_apache_flex_createjs_TextButton} */
get: function() {
return this.buttonLabel.text;
- },
+ },
/** @this {org_apache_flex_createjs_TextButton} */
set: function(value) {
this.buttonLabel.text = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
index 4d61e01..9e301ea 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
@@ -58,39 +58,39 @@ org_apache_flex_createjs_core_UIBase.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_core_UIBase.prototype, {
'x': {
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.x = pixels;
this.element.getStage().update();
}
},
'y': {
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.y = pixels;
this.element.getStage().update();
}
},
'width': {
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.width = pixels;
this.element.getStage().update();
}
},
'height': {
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.height = pixels;
this.element.getStage().update();
}
},
'id': {
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
get: function() {
return this.name;
},
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(value) {
if (this.name !== value) {
this.element.name = value;
@@ -100,11 +100,11 @@ Object.defineProperties(org_apache_flex_createjs_core_UIBase.prototype, {
}
},
'model': {
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
get: function() {
return this.model;
},
- /** @this {org_apache_flex_createjs_core_UIBase} */
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(value) {
if (this.model !== value) {
this.addBead(value);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
index b4071cf..5d58d8f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
@@ -41,11 +41,11 @@ Object.defineProperties(org_apache_flex_createjs_core_ViewBase.prototype, {
/** @this {org_apache_flex_createjs_core_ViewBase} */
get: function() {
return this.applicationModel_;
- },
+ },
set: function(value) {
this.applicationModel = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
index 109c287..a3282ca 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
@@ -53,31 +53,31 @@ Object.defineProperties(org_apache_flex_effects_PlatformWiper.prototype, {
'target': {
/** @this {org_apache_flex_effects_PlatformWiper} */
set: function(target) {
- if (target == null) {
- if (this.overflow_ == null)
- delete this.target_.positioner.style.overflow;
- else
- this.target_.positioner.style.overflow = this.overflow_;
- }
- this.target_ = target;
- if (target != null) {
- this.overflow_ = this.target_.positioner.style.overflow;
- }
- }
- },
+ if (target == null) {
+ if (this.overflow_ == null)
+ delete this.target_.positioner.style.overflow;
+ else
+ this.target_.positioner.style.overflow = this.overflow_;
+ }
+ this.target_ = target;
+ if (target != null) {
+ this.overflow_ = this.target_.positioner.style.overflow;
+ }
+ }
+ },
'visibleRect': {
/** @this {org_apache_flex_effects_PlatformWiper} */
set: function(rect) {
- /*
- var styleString = 'rect(';
- styleString += rect.top.toString() + 'px,';
- styleString += rect.width.toString() + 'px,';
- styleString += rect.height.toString() + 'px,';
- styleString += rect.left.toString() + 'px)';
- this.target_.positioner.style.clip = styleString;
- */
- this.target_.positioner.style.height = rect.height.toString() + 'px';
- this.target_.positioner.style.overflow = 'hidden';
- }
- }
+ /*
+ var styleString = 'rect(';
+ styleString += rect.top.toString() + 'px,';
+ styleString += rect.width.toString() + 'px,';
+ styleString += rect.height.toString() + 'px,';
+ styleString += rect.left.toString() + 'px)';
+ this.target_.positioner.style.clip = styleString;
+ */
+ this.target_.positioner.style.height = rect.height.toString() + 'px';
+ this.target_.positioner.style.overflow = 'hidden';
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
index b9fe8e8..876c015 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
@@ -73,19 +73,19 @@ org_apache_flex_events_Event.prototype.init = function(type) {
Object.defineProperties(org_apache_flex_events_Event.prototype, {
'type': {
- /** @this {org_apache_flex_events_Event} */
+ /** @this {org_apache_flex_events_Event} */
get: function() {
return this.type;
}
},
'target': {
- /** @this {org_apache_flex_events_Event} */
+ /** @this {org_apache_flex_events_Event} */
get: function() {
return this.target;
}
},
'currentTarget': {
- /** @this {org_apache_flex_events_Event} */
+ /** @this {org_apache_flex_events_Event} */
get: function() {
return this.currentTarget;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index c0d8f59..8cf07e4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -118,65 +118,65 @@ org_apache_flex_html_Alert.show =
Object.defineProperties(org_apache_flex_html_Alert.prototype, {
'title': {
- /** @this {org_apache_flex_html_Alert} */
+ /** @this {org_apache_flex_html_Alert} */
get: function() {
return this.titleBar.title;
},
- /** @this {org_apache_flex_html_Alert} */
+ /** @this {org_apache_flex_html_Alert} */
set: function(value) {
this.titleBar.title = value;
}
},
'text': {
- /** @this {org_apache_flex_html_Alert} */
+ /** @this {org_apache_flex_html_Alert} */
get: function() {
return this.message.text;
},
- /** @this {org_apache_flex_html_Alert} */
+ /** @this {org_apache_flex_html_Alert} */
set: function(value) {
this.message.text = value;
}
},
'flags': {
- /** @this {org_apache_flex_html_Alert} */
+ /** @this {org_apache_flex_html_Alert} */
get: function() {
return this.flags;
},
- /** @this {org_apache_flex_html_Alert} */
+ /** @this {org_apache_flex_html_Alert} */
set: function(value) {
- this.flags = value;
-
- // add buttons based on flags
- if (this.flags & org_apache_flex_html_Alert.OK) {
- var ok = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(ok);
- ok.text = 'OK';
- goog.events.listen(/** @type {EventTarget} */ (ok.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org_apache_flex_html_Alert.CANCEL) {
- var cancel = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(cancel);
- cancel.text = 'Cancel';
- goog.events.listen(/** @type {EventTarget} */ (cancel.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org_apache_flex_html_Alert.YES) {
- var yes = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(yes);
- yes.text = 'YES';
- goog.events.listen(/** @type {EventTarget} */ (yes.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org_apache_flex_html_Alert.NO) {
- var nob = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(nob);
- nob.text = 'NO';
- goog.events.listen(/** @type {EventTarget} */ (nob.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- }
- }
+ this.flags = value;
+
+ // add buttons based on flags
+ if (this.flags & org_apache_flex_html_Alert.OK) {
+ var ok = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(ok);
+ ok.text = 'OK';
+ goog.events.listen(/** @type {EventTarget} */ (ok.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ if (this.flags & org_apache_flex_html_Alert.CANCEL) {
+ var cancel = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(cancel);
+ cancel.text = 'Cancel';
+ goog.events.listen(/** @type {EventTarget} */ (cancel.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ if (this.flags & org_apache_flex_html_Alert.YES) {
+ var yes = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(yes);
+ yes.text = 'YES';
+ goog.events.listen(/** @type {EventTarget} */ (yes.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ if (this.flags & org_apache_flex_html_Alert.NO) {
+ var nob = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(nob);
+ nob.text = 'NO';
+ goog.events.listen(/** @type {EventTarget} */ (nob.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
index 22668f5..f2c48cf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
@@ -59,8 +59,8 @@ org_apache_flex_html_DropDownList.prototype.
Object.defineProperties(org_apache_flex_html_DropDownList.prototype, {
- 'dataProvider': {
- /** @this {org_apache_flex_html_DropDownList} */
+ 'dataProvider': {
+ /** @this {org_apache_flex_html_DropDownList} */
set: function(value) {
var dp, i, n, opt;
@@ -78,22 +78,22 @@ Object.defineProperties(org_apache_flex_html_DropDownList.prototype, {
opt.text = value[i];
dp.add(opt);
}
- }
- },
+ }
+ },
'selectedIndex': {
- /** @this {org_apache_flex_html_DropDownList} */
- set: function(value) {
+ /** @this {org_apache_flex_html_DropDownList} */
+ set: function(value) {
this.model.selectedIndex = value;
this.element.selectedIndex = value;
- }
- },
+ }
+ },
'selectedItem': {
- /** @this {org_apache_flex_html_DropDownList} */
- get: function(value) {
+ /** @this {org_apache_flex_html_DropDownList} */
+ get: function(value) {
this.model.selectedItem = value;
this.element.selectedIndex = this.selectedIndex;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
index 8be3163..234967e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
@@ -67,14 +67,14 @@ org_apache_flex_html_Image.prototype.createElement =
Object.defineProperties(org_apache_flex_html_Image.prototype, {
- 'source': {
- /** @this {org_apache_flex_html_Image} */
+ 'source': {
+ /** @this {org_apache_flex_html_Image} */
get: function() {
return this.model.source;
- },
- /** @this {org_apache_flex_html_Image} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_Image} */
+ set: function(value) {
this.model.source = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
index 4801bde..7a0d8f4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
@@ -52,38 +52,38 @@ org_apache_flex_html_List.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_List.prototype, {
- 'itemRenderer': {
- /** @this {org_apache_flex_html_List} */
+ 'itemRenderer': {
+ /** @this {org_apache_flex_html_List} */
get: function() {
return this.itemRenderer_;
- },
- /** @this {org_apache_flex_html_List} */
+ },
+ /** @this {org_apache_flex_html_List} */
set: function(value) {
this.itemRenderer_ = value;
- }
- },
+ }
+ },
'labelField': {
- /** @this {org_apache_flex_html_List} */
+ /** @this {org_apache_flex_html_List} */
get: function() {
return this.model.labelField;
- },
- /** @this {org_apache_flex_html_List} */
+ },
+ /** @this {org_apache_flex_html_List} */
set: function(value) {
this.model.labelField = value;
- }
- },
+ }
+ },
'rowHeight': {
- /** @this {org_apache_flex_html_List} */
+ /** @this {org_apache_flex_html_List} */
get: function() {
return this.presentationModel.rowHeight;
- },
- /** @this {org_apache_flex_html_List} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_List} */
+ set: function(value) {
this.presentationModel.rowHeight = value;
- }
- },
+ }
+ },
'presentationModel': {
- /** @this {org_apache_flex_html_List} */
+ /** @this {org_apache_flex_html_List} */
get: function() {
var presModel = this.getBeadByType(org_apache_flex_core_IListPresentationModel);
if (presModel == null) {
@@ -91,8 +91,8 @@ Object.defineProperties(org_apache_flex_html_List.prototype, {
this.addBead(presModel);
}
return presModel;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
index 39fecaa..308a4bd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
@@ -101,56 +101,56 @@ org_apache_flex_html_NumericStepper.prototype.spinnerChange =
Object.defineProperties(org_apache_flex_html_NumericStepper.prototype, {
- 'minimum': {
- /** @this {org_apache_flex_html_NumericStepper} */
+ 'minimum': {
+ /** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.minimum;
- },
- /** @this {org_apache_flex_html_NumericStepper} */
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
set: function(value) {
this.model.minimum = value;
- }
- },
+ }
+ },
'maximum': {
- /** @this {org_apache_flex_html_NumericStepper} */
+ /** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.maximum;
- },
- /** @this {org_apache_flex_html_NumericStepper} */
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
set: function(value) {
this.model.maximum = value;
- }
- },
+ }
+ },
'value': {
- /** @this {org_apache_flex_html_NumericStepper} */
+ /** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.value;
- },
- /** @this {org_apache_flex_html_NumericStepper} */
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
set: function(newValue) {
this.model.value = newValue;
this.spinner.value = newValue;
- }
- },
+ }
+ },
'snapInterval': {
- /** @this {org_apache_flex_html_NumericStepper} */
+ /** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.snapInterval;
- },
- /** @this {org_apache_flex_html_NumericStepper} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
+ set: function(value) {
this.model.snapInterval = value;
- }
- },
+ }
+ },
'stepSize': {
- /** @this {org_apache_flex_html_NumericStepper} */
+ /** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.stepSize;
- },
- /** @this {org_apache_flex_html_NumericStepper} */
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
set: function(value) {
this.model.stepSize = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
index 69d6c07..b393acd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
@@ -58,12 +58,12 @@ org_apache_flex_html_SimpleList.prototype.
Object.defineProperties(org_apache_flex_html_SimpleList.prototype, {
- 'dataProvider': {
- /** @this {org_apache_flex_html_SimpleList} */
- get: function() {
+ 'dataProvider': {
+ /** @this {org_apache_flex_html_SimpleList} */
+ get: function() {
return this.model.dataProvider;
- },
- /** @this {org_apache_flex_html_SimpleList} */
+ },
+ /** @this {org_apache_flex_html_SimpleList} */
set: function(value) {
var dp, i, n, opt;
@@ -81,27 +81,27 @@ Object.defineProperties(org_apache_flex_html_SimpleList.prototype, {
opt.text = value[i].toString();
dp.add(opt);
}
- }
- },
+ }
+ },
'selectedIndex': {
- /** @this {org_apache_flex_html_SimpleList} */
- get: function() {
+ /** @this {org_apache_flex_html_SimpleList} */
+ get: function() {
return this.model.selectedIndex;
- },
- /** @this {org_apache_flex_html_SimpleList} */
+ },
+ /** @this {org_apache_flex_html_SimpleList} */
set: function(value) {
this.model.selectedIndex = value;
- }
- },
+ }
+ },
'selectedItem': {
- /** @this {org_apache_flex_html_SimpleList} */
- get: function() {
+ /** @this {org_apache_flex_html_SimpleList} */
+ get: function() {
return this.model.selectedItem;
- },
- /** @this {org_apache_flex_html_SimpleList} */
+ },
+ /** @this {org_apache_flex_html_SimpleList} */
set: function(value) {
this.model.selectedItem = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
index 85a58fa..1b1f315 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
@@ -74,57 +74,57 @@ org_apache_flex_html_Slider.prototype.createElement =
Object.defineProperties(org_apache_flex_html_Slider.prototype, {
- 'value': {
- /** @this {org_apache_flex_html_Slider} */
- get: function() {
+ 'value': {
+ /** @this {org_apache_flex_html_Slider} */
+ get: function() {
return this.model.value;
- },
- /** @this {org_apache_flex_html_Slider} */
+ },
+ /** @this {org_apache_flex_html_Slider} */
set: function(newValue) {
this.model.value = newValue;
this.setThumbFromValue(this.model.value);
- }
- },
+ }
+ },
'minimum': {
- /** @this {org_apache_flex_html_Slider} */
- get: function() {
+ /** @this {org_apache_flex_html_Slider} */
+ get: function() {
return this.model.minimum;
- },
- /** @this {org_apache_flex_html_Slider} */
+ },
+ /** @this {org_apache_flex_html_Slider} */
set: function(value) {
this.model.minimum = value;
- }
- },
+ }
+ },
'maximum': {
- /** @this {org_apache_flex_html_Slider} */
+ /** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.maximum;
- },
- /** @this {org_apache_flex_html_Slider} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_Slider} */
+ set: function(value) {
this.model.maximum = value;
- }
- },
- 'snapInterval': {
- /** @this {org_apache_flex_html_Slider} */
+ }
+ },
+ 'snapInterval': {
+ /** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.snapInterval;
- },
- /** @this {org_apache_flex_html_Slider} */
+ },
+ /** @this {org_apache_flex_html_Slider} */
set: function(value) {
this.model.snapInterval = value;
- }
- },
+ }
+ },
'stepSize': {
- /** @this {org_apache_flex_html_Slider} */
+ /** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.stepSize;
- },
- /** @this {org_apache_flex_html_Slider} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_Slider} */
+ set: function(value) {
this.model.stepSize = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
index c4eb4cb..4d5be82 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
@@ -131,15 +131,15 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
/** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.value_;
- },
+ },
/** @this {org_apache_flex_html_Spinner} */
- set: function(value) {
+ set: function(value) {
if (value != this.value_) {
this.value_ = value;
this.dispatchEvent('valueChange');
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
index dd61f60..c38f700 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
@@ -55,11 +55,11 @@ org_apache_flex_html_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html_TextArea.prototype, {
'text': {
- /** @this {org_apache_flex_html_TextArea} */
+ /** @this {org_apache_flex_html_TextArea} */
get: function() {
return this.element.value;
},
- /** @this {org_apache_flex_html_TextArea} */
+ /** @this {org_apache_flex_html_TextArea} */
set: function(value) {
this.element.value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
index d84c9f7..9eb5d21 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
@@ -41,11 +41,11 @@ org_apache_flex_html_TextButton.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
'text': {
- /** @this {org_apache_flex_html_TextButton} */
+ /** @this {org_apache_flex_html_TextButton} */
get: function() {
return this.element.innerHTML;
},
- /** @this {org_apache_flex_html_TextButton} */
+ /** @this {org_apache_flex_html_TextButton} */
set: function(value) {
this.element.innerHTML = value;
}
[11/47] git commit: [flex-asjs] [refs/heads/develop] - add @this
annotations to stop warnings
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
index d3c8bac..89bfc09 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
@@ -201,12 +201,6 @@ function(value) {
*/
org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.updateRenderer =
function() {
- if (this.down) {
- }
- else if (this.hovered) {
- }
- else if (this.selected) {
- }
};
@@ -227,3 +221,13 @@ org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.adjustSize =
function() {
// handle in sub-class
};
+
+
+Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.prototype, {
+ 'MXMLDescriptor': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ get: function() {
+ return null;
+ }
+ }
+});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
index 23afeb9..5bd547f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
@@ -51,17 +51,21 @@ org_apache_flex_html5_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_CheckBox.prototype, {
'text': {
+ /** @this {org_apache_flex_html5_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
},
+ /** @this {org_apache_flex_html5_CheckBox} */
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
}
},
selected: {
+ /** @this {org_apache_flex_html5_CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
},
+ /** @this {org_apache_flex_html5_CheckBox} */
set: function(value) {
this.element.childNodes.item(0).checked = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
index 0075319..53400ad 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
@@ -168,14 +168,17 @@ org_apache_flex_html5_ComboBox.prototype.buttonClicked =
Object.defineProperties(org_apache_flex_html5_ComboBox.prototype, {
'dataProvider': {
+ /** @this {org_apache_flex_html5_ComboBox} */
set: function(value) {
this.dataProvider = value;
}
},
'text': {
+ /** @this {org_apache_flex_html5_ComboBox} */
get: function() {
return this.element.childNodes.item(0).value;
},
+ /** @this {org_apache_flex_html5_ComboBox} */
set: function(value) {
this.element.childNodes.item(0).value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
index 1730bf0..8499d4d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
@@ -44,9 +44,11 @@ org_apache_flex_html5_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_Label.prototype, {
'text': {
+ /** @this {org_apache_flex_html5_Label} */
get: function() {
return this.element.innerHTML;
},
+ /** @this {org_apache_flex_html5_Label} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
index 09e546c..3d3fd0d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
@@ -44,9 +44,11 @@ org_apache_flex_html5_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextArea.prototype, {
'text': {
+ /** @this {org_apache_flex_html5_TextArea} */
get: function() {
return this.element.value;
},
+ /** @this {org_apache_flex_html5_TextArea} */
set: function(value) {
this.element.value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
index f936ebe..28f28e4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
@@ -45,9 +45,11 @@ org_apache_flex_html5_TextInput.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextInput.prototype, {
'text': {
+ /** @this {org_apache_flex_html5_TextInput} */
get: function() {
return this.element.value;
},
+ /** @this {org_apache_flex_html5_TextInput} */
set: function(value) {
this.element.value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
index 6b56abf..4d3c7a6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
@@ -63,17 +63,21 @@ org_apache_flex_jquery_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
'text': {
+ /** @this {org_apache_flex_jquery_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
},
+ /** @this {org_apache_flex_jquery_CheckBox} */
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
}
},
'selected': {
+ /** @this {org_apache_flex_jquery_CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
},
+ /** @this {org_apache_flex_jquery_CheckBox} */
set: function(value) {
this.element.childNodes.item(0).checked = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
index 1a2996a..7728f94 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
@@ -101,6 +101,7 @@ org_apache_flex_jquery_RadioButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
'id': {
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
org_apache_flex_jquery_RadioButton.base(this, 'set_id', value);
this.labelFor.id = value;
@@ -108,39 +109,48 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
}
},
'groupName': {
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.radioGroupName;
},
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.radioGroupName = value;
this.input.name = value;
}
},
'text': {
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.labelFor.innerHTML;
},
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.labelFor.innerHTML = value;
}
},
'selected': {
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.input.checked;
},
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.input.checked = value;
}
},
'value': {
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.input.value;
},
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.input.value = value;
}
},
'selectedValue': {
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
var buttons, groupName, i, n;
@@ -155,6 +165,7 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
}
return null;
},
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
var buttons, groupName, i, n;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index 6030b31..f21c620 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -94,6 +94,7 @@ org_apache_flex_jquery_ToggleTextButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
'id': {
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
org_apache_flex_jquery_ToggleTextButton.base(this, 'set_id', value);
this.labelFor.id = value;
@@ -101,17 +102,21 @@ Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
}
},
'text': {
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
get: function() {
return this.labelFor.innerHTML;
},
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
this.labelFor.innerHTML = value;
}
},
'selected': {
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
get: function() {
return this.input.selected_;
},
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
if (this.input.selected_ != value) {
this.inputselected_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
index 976207c..5840265 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
@@ -81,11 +81,13 @@ org_apache_flex_maps_google_Map.prototype.createElement =
Object.defineProperties(org_apache_flex_maps_google_Map.prototype, {
'token': {
+ /** @this {org_apache_flex_maps_google_Map} */
set: function(value) {
this.token = value;
}
},
'selectedMarker': {
+ /** @this {org_apache_flex_maps_google_Map} */
get: function() {
return this._selectedMarker;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
index 1e000c3..1642a6d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
@@ -131,27 +131,33 @@ org_apache_flex_net_BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
'data': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.element.responseText;
}
},
'binaryData': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.binaryData_;
},
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.binaryData_ = value;
}
},
'contentType': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.contentType_;
},
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.contentType_ = value;
}
},
'headers': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
if (this.headers_ === 'undefined') {
this.headers_ = [];
@@ -159,19 +165,23 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
return this.headers_;
},
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.headers_ = value;
}
},
'method': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.method_;
},
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.method_ = value;
}
},
'responseHeaders': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -192,35 +202,43 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
}
},
'responseURL': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.responseURL_;
}
},
'status': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.status_;
}
},
'timeout': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.timeout_;
},
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.timeout_ = value;
}
},
'url': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.url_;
},
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.url_ = value;
}
},
'id': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.id;
},
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
if (this.id !== value) {
this.id = value;
@@ -229,11 +247,13 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
}
},
'MXMLDescriptor': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return null;
}
},
'MXMLProperties': {
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return null;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index f6b6104..3fc2d43 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -137,32 +137,39 @@ org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
'beads': {
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.beads_ = value;
}
},
'data': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.element.responseText;
}
},
'contentData': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.contentData_;
},
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.contentData_ = value;
}
},
'contentType': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.contentType_;
},
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.contentType_ = value;
}
},
'headers': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
if (this.headers_ === undefined) {
this.headers_ = [];
@@ -170,19 +177,23 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
return this.headers_;
},
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.headers_ = value;
}
},
'method': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.method_;
},
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.method_ = value;
}
},
'responseHeaders': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -203,35 +214,43 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
}
},
'responseURL': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.responseURL_;
}
},
'status': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.status_;
}
},
'timeout': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.timeout_;
},
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.timeout_ = value;
}
},
'url': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.url_;
},
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.url_ = value;
}
},
'id': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.id;
},
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
if (this.id !== value) {
this.id = value;
@@ -240,16 +259,19 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
}
},
'MXMLDescriptor': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return null;
}
},
'MXMLProperties': {
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return null;
}
},
'strand': {
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
index 8c0ef74..ede0bfd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
@@ -48,24 +48,29 @@ org_apache_flex_utils_BinaryData.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_utils_BinaryData.prototype, {
'data': {
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_;
}
},
'position': {
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.position_;
},
+ /** @this {org_apache_flex_utils_BinaryData} */
set: function(value) {
this.position_ = value;
}
},
'length': {
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_.byteLength;
}
},
'bytesAvailable': {
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_.byteLength - this.position_;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 d96a6f8..ccbcace 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -256,7 +256,7 @@ org_apache_flex_utils_Language.postdecrement = function(obj, prop) {
* @param {Object} clazz The class.
* @param {Object} pthis The this pointer.
* @param {string} prop The name of the getter.
- * @return {number}
+ * @return {Object}
*/
org_apache_flex_utils_Language.superGetter = function(clazz, pthis, prop) {
var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
@@ -272,9 +272,8 @@ org_apache_flex_utils_Language.superGetter = function(clazz, pthis, prop) {
* @param {Object} pthis The this pointer.
* @param {string} prop The name of the getter.
* @param {Object} value The value.
- * @return {number}
*/
org_apache_flex_utils_Language.superSetter = function(clazz, pthis, prop, value) {
var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
- return superdesc.set.apply(pthis, [value]);
+ superdesc.set.apply(pthis, [value]);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
index be43517..0bc2acd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
@@ -109,27 +109,33 @@ org_apache_flex_utils_Timer.prototype.timerHandler =
Object.defineProperties(org_apache_flex_utils_Timer.prototype, {
'currentCount': {
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._currentCount;
}
},
'running': {
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this.timerInterval !== -1;
}
},
'delay': {
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._delay;
},
+ /** @this {org_apache_flex_utils_Timer} */
set: function(value) {
this._delay = value;
}
},
'repeatCount': {
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._repeatCount;
},
+ /** @this {org_apache_flex_utils_Timer} */
set: function(value) {
this._repeatCount = value;
}
[08/47] git commit: [flex-asjs] [refs/heads/develop] - manual
conversion to Object.defineProperties. Needs major cleanup before it will
work
Posted by ah...@apache.org.
manual conversion to Object.defineProperties. Needs major cleanup before it will work
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5344e8ba
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5344e8ba
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5344e8ba
Branch: refs/heads/develop
Commit: 5344e8badb0a187cc628fc416746fa67ce555f2f
Parents: f2e09a4
Author: Alex Harui <ah...@apache.org>
Authored: Thu Mar 12 21:28:03 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Mar 12 21:28:03 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/binding/BindingBase.js | 41 +-
.../src/org/apache/flex/binding/ChainBinding.js | 18 +-
.../org/apache/flex/binding/ConstantBinding.js | 36 +-
.../org/apache/flex/binding/SimpleBinding.js | 35 +-
.../org/apache/flex/charts/core/ChartBase.js | 28 +-
.../org/apache/flex/charts/core/IAxisBead.js | 52 +-
.../src/org/apache/flex/charts/core/IChart.js | 16 +-
.../flex/charts/core/IChartItemRenderer.js | 84 +--
.../org/apache/flex/charts/core/IChartSeries.js | 65 +-
.../flex/charts/core/IHorizontalAxisBead.js | 34 +-
.../flex/charts/core/IVerticalAxisBead.js | 35 +-
.../src/org/apache/flex/core/ContainerBase.js | 122 ++--
.../src/org/apache/flex/core/FilledRectangle.js | 26 +-
.../src/org/apache/flex/core/FormatBase.js | 109 ++--
.../org/apache/flex/core/HTMLElementWrapper.js | 171 ++---
.../FlexJS/src/org/apache/flex/core/IChild.js | 9 +-
.../src/org/apache/flex/core/IContentView.js | 65 +-
.../src/org/apache/flex/core/IFormatBead.js | 41 +-
.../src/org/apache/flex/core/ILayoutParent.js | 48 +-
.../apache/flex/core/IListPresentationModel.js | 19 +-
.../apache/flex/core/ISelectableItemRenderer.js | 91 +--
.../src/org/apache/flex/core/ISelectionModel.js | 55 +-
.../src/org/apache/flex/core/ITextModel.js | 18 +-
.../flex/core/ItemRendererClassFactory.js | 51 +-
.../FlexJS/src/org/apache/flex/core/UIBase.js | 618 +++++++------------
.../src/org/apache/flex/core/ValuesManager.js | 28 +-
.../FlexJS/src/org/apache/flex/core/ViewBase.js | 141 ++---
.../src/org/apache/flex/core/graphics/Circle.js | 25 +-
.../apache/flex/core/graphics/GradientBase.js | 131 ++--
.../apache/flex/core/graphics/GradientEntry.js | 91 +--
.../apache/flex/core/graphics/GraphicShape.js | 57 +-
.../flex/core/graphics/GraphicsContainer.js | 90 ++-
.../apache/flex/core/graphics/LinearGradient.js | 27 +-
.../src/org/apache/flex/core/graphics/Path.js | 26 +-
.../org/apache/flex/core/graphics/SolidColor.js | 50 +-
.../flex/core/graphics/SolidColorStroke.js | 75 +--
.../src/org/apache/flex/createjs/Label.js | 29 +-
.../src/org/apache/flex/createjs/core/UIBase.js | 134 ++--
.../FlexJS/src/org/apache/flex/events/Event.js | 42 +-
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 68 +-
.../FlexJS/src/org/apache/flex/html/CheckBox.js | 55 +-
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 27 +-
.../org/apache/flex/html/ImageAndTextButton.js | 58 +-
.../js/FlexJS/src/org/apache/flex/html/Label.js | 52 +-
.../src/org/apache/flex/html/MultilineLabel.js | 52 +-
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 92 +--
.../src/org/apache/flex/html/RadioButton.js | 199 +++---
.../FlexJS/src/org/apache/flex/html/Spinner.js | 135 ++--
.../FlexJS/src/org/apache/flex/html/TextArea.js | 27 +-
.../src/org/apache/flex/html/TextButton.js | 27 +-
.../src/org/apache/flex/html/TextInput.js | 28 +-
.../org/apache/flex/html/ToggleTextButton.js | 80 +--
.../accessories/NumericOnlyTextInputBead.js | 17 +-
.../flex/html/accessories/PasswordInputBead.js | 21 +-
.../DataItemRendererFactoryForArrayData.js | 99 ++-
.../src/org/apache/flex/html/beads/ListView.js | 66 +-
.../TextItemRendererFactoryForArrayData.js | 31 +-
.../controllers/ItemRendererMouseController.js | 30 +-
.../ListSingleSelectionMouseController.js | 29 +-
.../beads/controllers/SliderMouseController.js | 28 +-
.../beads/controllers/SpinnerMouseController.js | 34 +-
.../html/beads/layouts/NonVirtualBasicLayout.js | 51 +-
.../layouts/NonVirtualBasicScrollingLayout.js | 27 +-
.../beads/layouts/NonVirtualVerticalLayout.js | 47 +-
.../NonVirtualVerticalScrollingLayout.js | 18 +-
.../ButtonBarButtonItemRenderer.js | 66 +-
.../html/supportClasses/DataItemRenderer.js | 135 ++--
.../html/supportClasses/NonVirtualDataGroup.js | 34 +-
.../html/supportClasses/StringItemRenderer.js | 156 ++---
.../src/org/apache/flex/html5/CheckBox.js | 55 +-
.../src/org/apache/flex/html5/ComboBox.js | 43 +-
.../FlexJS/src/org/apache/flex/html5/Label.js | 27 +-
.../src/org/apache/flex/html5/TextArea.js | 27 +-
.../src/org/apache/flex/html5/TextInput.js | 27 +-
.../src/org/apache/flex/jquery/CheckBox.js | 55 +-
.../src/org/apache/flex/jquery/RadioButton.js | 202 +++---
.../org/apache/flex/jquery/ToggleTextButton.js | 98 ++-
.../src/org/apache/flex/maps/google/Map.js | 29 +-
.../src/org/apache/flex/net/BinaryUploader.js | 310 ++++------
.../src/org/apache/flex/net/HTTPService.js | 350 ++++-------
.../src/org/apache/flex/utils/BinaryData.js | 68 +-
81 files changed, 2184 insertions(+), 3729 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
index 1854a18..bf6d886 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
@@ -77,26 +77,6 @@ org_apache_flex_binding_BindingBase.prototype.sourceID = null;
/**
* @expose
- * @param {Object} value The strand (owner) of the bead.
- */
-org_apache_flex_binding_BindingBase.prototype.set_strand = function(value) {
- if (this.destination == null)
- this.destination = value;
- if (this.sourceID != null) {
- this.source = this.document[this.sourceID];
- if (this.source == null) {
- this.document.addEventListener('valueChange',
- goog.bind(this.sourceChangeHandler, this));
- return;
- }
- }
- else
- this.source = this.document;
-};
-
-
-/**
- * @expose
* @param {Object} document The MXML object.
*/
org_apache_flex_binding_BindingBase.prototype.setDocument = function(document) {
@@ -117,3 +97,24 @@ org_apache_flex_binding_BindingBase.prototype.sourceChangeHandler = function(eve
this.source = this.document[this.sourceID];
};
+
+
+Object.defineProperties(org_apache_flex_binding_BindingBase.prototype, {
+ 'strand': {
+ set: function(value) {
+ if (this.destination == null)
+ this.destination = value;
+ if (this.sourceID != null) {
+ this.source = this.document[this.sourceID];
+ if (this.source == null) {
+ this.document.addEventListener('valueChange',
+ goog.bind(this.sourceChangeHandler, this));
+ return;
+ }
+ }
+ else
+ this.source = this.document;
+ }
+ }
+});
+
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
index 21dd2eb..c46c07b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
@@ -63,15 +63,6 @@ org_apache_flex_binding_ChainBinding.prototype.source = null;
/**
- * @expose
- * @param {Object} value The strand (owner) of the bead.
- */
-org_apache_flex_binding_ChainBinding.prototype.set_strand = function(value) {
- this.applyBinding();
-};
-
-
-/**
*/
org_apache_flex_binding_ChainBinding.prototype.applyBinding = function() {
var chainSet = this.evaluateSourceChain();
@@ -203,3 +194,12 @@ org_apache_flex_binding_ChainWatcher.prototype.handler = function(event) {
event.oldValue.removeEventListener('valueChange', this.handler);
this.callback();
};
+
+
+Object.defineProperties(org_apache_flex_binding_ChainWatcher.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.applyBinding();
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index 36d22c3..99089af 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -39,21 +39,21 @@ org_apache_flex_binding_ConstantBinding.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_binding_ConstantBinding'}] };
-/**
- * @override
- * @param {Object} value The strand (owner) of the bead.
- */
-org_apache_flex_binding_ConstantBinding.prototype.set_strand = function(value) {
- org_apache_flex_binding_ConstantBinding.base(this, 'set_strand', value);
-
- var val;
- try {
- val = this.source[this.sourcePropertyName];
- } catch (e) {
- try {
- val = this.source.constructor[this.sourcePropertyName];
- } catch (e2) {
- }
- }
- this.destination[this.destinationPropertyName] = val;
-};
+Object.defineProperties(org_apache_flex_binding_ConstantBinding.prototype, {
+ 'strand': {
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(org_apache_flex_binding_ConstantBinding, this, 'strand', value);
+
+ var val;
+ try {
+ val = this.source[this.sourcePropertyName];
+ } catch (e) {
+ try {
+ val = this.source.constructor[this.sourcePropertyName];
+ } catch (e2) {
+ }
+ }
+ this.destination[this.destinationPropertyName] = val;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index fca7e87..9bc9da7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -56,22 +56,6 @@ org_apache_flex_binding_SimpleBinding.prototype.changeHandler = function() {
/**
- * @override
- */
-org_apache_flex_binding_SimpleBinding.prototype.set_strand = function(value) {
- org_apache_flex_binding_SimpleBinding.base(this, 'set_strand', value);
-
- if (!this.source)
- return;
-
- this.source.addEventListener(this.eventName,
- goog.bind(this.changeHandler, this));
-
- this.changeHandler();
-};
-
-
-/**
* @param {Object} event The event.
*/
org_apache_flex_binding_SimpleBinding.prototype.sourceChangeHandler = function(event) {
@@ -82,3 +66,22 @@ org_apache_flex_binding_SimpleBinding.prototype.sourceChangeHandler = function(e
this.changeHandler();
}
};
+
+
+Object.defineProperties(org_apache_flex_binding_SimpleBinding.prototype, {
+ 'strand': {
+ set: function(value) {
+ org_apache_flex_binding_SimpleBinding.base(this, 'set_strand', value);
+
+ if (!this.source)
+ return;
+
+ this.source.addEventListener(this.eventName,
+ goog.bind(this.changeHandler, this));
+
+ this.changeHandler();
+ }
+ }
+});
+
+
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
index b048c85..43b6ca6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
@@ -69,20 +69,14 @@ org_apache_flex_charts_core_ChartBase.prototype.createElement = function() {
org_apache_flex_charts_core_ChartBase.prototype.series_ = null;
-/**
- * @expose
- * @return {Array} The series for the chart.
- */
-org_apache_flex_charts_core_ChartBase.prototype.get_series = function() {
- return this.series_;
-};
-
-
-/**
- * @expose
- * @param {Array} value The series for the chart.
- */
-org_apache_flex_charts_core_ChartBase.prototype.set_series = function(value) {
- this.series_ = value;
- this.dispatchEvent(new org_apache_flex_events_Event('seriesChanged'));
-};
+Object.defineProperties(org_apache_flex_charts_core_ChartBase.prototype, {
+ 'series': {
+ get: function() {
+ return this.series_;
+ },
+ set: function(value) {
+ this.series_ = value;
+ this.dispatchEvent(new org_apache_flex_events_Event('seriesChanged'));
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
index 6af847a..dd3fa01 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
@@ -31,42 +31,22 @@ goog.require('org_apache_flex_core_IBead');
org_apache_flex_charts_core_IAxisBead = function() {
};
-
-/**
- * @return {string}
- */
-org_apache_flex_charts_core_IAxisBead.prototype.get_placement = function() {};
-
-
-/**
- * @param {string} value
- */
-org_apache_flex_charts_core_IAxisBead.prototype.set_placement = function(value) {};
-
-
-/**
- * @return {Object}
- */
-org_apache_flex_charts_core_IAxisBead.prototype.get_axisStroke = function() {};
-
-
-/**
- * @param {Object} value
- */
-org_apache_flex_charts_core_IAxisBead.prototype.set_axisStroke = function(value) {};
-
-
-/**
- * @return {Object}
- */
-org_apache_flex_charts_core_IAxisBead.prototype.get_tickStroke = function() {};
-
-
-/**
- * @param {Object} value
- */
-org_apache_flex_charts_core_IAxisBead.prototype.set_tickStroke = function(value) {};
-
+Object.defineProperties(org_apache_flex_charts_core_IAxisBead.prototype, {
+ 'placement': {
+ get: function() {},
+ set: function(value) {}
+ },
+
+ 'axisStroke': {
+ get: function() {},
+ set: function(value) {}
+ },
+
+ 'tickStroke': {
+ get: function() {},
+ set: function(value) {}
+ }
+});
/**
* Metadata
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
index 3a76657..045b983 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
@@ -29,16 +29,12 @@ org_apache_flex_charts_core_IChart = function() {
};
-/**
- * @return {Array}
- */
-org_apache_flex_charts_core_IChart.prototype.get_series = function() {};
-
-
-/**
- * @param {Array} value
- */
-org_apache_flex_charts_core_IChart.prototype.set_series = function(value) {};
+Object.defineProperties(org_apache_flex_charts_core_IChart.prototype, {
+ 'series': {
+ get: function() {},
+ set: function(value) {}
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
index 7ffddcf..1ba3910 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
@@ -32,64 +32,32 @@ org_apache_flex_charts_core_IChartItemRenderer = function() {
};
-/**
- * @return {string}
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.get_xField = function() {};
-
-
-/**
- * @param {string} value
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.set_xField = function(value) {};
-
-
-/**
- * @return {string}
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.get_yField = function() {};
-
-
-/**
- * @param {string} value
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.set_yField = function(value) {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.get_fillColor = function() {};
-
-
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.set_fillColor = function(value) {};
-
-
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.set_x = function(value) {};
-
-
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.set_y = function(value) {};
-
-
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.set_width = function(value) {};
-
-
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IChartItemRenderer.prototype.set_height = function(value) {};
+Object.defineProperties(org_apache_flex_charts_core_IChart.prototype, {
+ 'xField': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'yField': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'fillColor': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'x': {
+ set: function(value) {}
+ },
+ 'y': {
+ set: function(value) {}
+ },
+ 'width': {
+ set: function(value) {}
+ },
+ 'height': {
+ set: function(value) {}
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
index 4c25e17..d2477e4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
@@ -31,53 +31,24 @@ org_apache_flex_charts_core_IChartSeries = function() {
};
-/**
- * @return {string}
- */
-org_apache_flex_charts_core_IChartSeries.prototype.get_xField = function() {};
-
-
-/**
- * @param {string} value
- */
-org_apache_flex_charts_core_IChartSeries.prototype.set_xField = function(value) {};
-
-
-/**
- * @return {string}
- */
-org_apache_flex_charts_core_IChartSeries.prototype.get_yField = function() {};
-
-
-/**
- * @param {string} value
- */
-org_apache_flex_charts_core_IChartSeries.prototype.set_yField = function(value) {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IChartSeries.prototype.get_fillColor = function() {};
-
-
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IChartSeries.prototype.set_fillColor = function(value) {};
-
-
-/**
- * @return {mx_core_IFactory}
- */
-org_apache_flex_charts_core_IChartSeries.prototype.get_itemRenderer = function() {};
-
-
-/**
- * @param {mx_core_IFactory} value
- */
-org_apache_flex_charts_core_IChartSeries.prototype.set_itemRenderer = function(value) {};
-
+Object.defineProperties(org_apache_flex_charts_core_IChartSeries.prototype, {
+ 'xField': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'yField': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'fillColor': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'itemRenderer': {
+ get: function() {},
+ set: function(value) {}
+ }
+});
/**
* Metadata
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
index 6af34ab..7b069c9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
@@ -43,25 +43,15 @@ org_apache_flex_charts_core_IHorizontalAxisBead.prototype.FLEXJS_CLASS_INFO = {
};
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IHorizontalAxisBead.prototype.set_axisHeight = function(value) {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IHorizontalAxisBead.prototype.get_axisHeight = function() {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IHorizontalAxisBead.prototype.get_maximum = function() {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IHorizontalAxisBead.prototype.get_minimum = function() {};
+Object.defineProperties(org_apache_flex_charts_core_IHorizontalAxisBead.prototype, {
+ 'axisHeight': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'maximum': {
+ get: function() {}
+ },
+ 'minimum': {
+ get: function() {}
+ }
+});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
index 9e81573..73c4c56 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
@@ -42,26 +42,15 @@ org_apache_flex_charts_core_IVerticalAxisBead.prototype.FLEXJS_CLASS_INFO = {
interfaces: [org_apache_flex_charts_core_IAxisBead]
};
-
-/**
- * @param {number} value
- */
-org_apache_flex_charts_core_IVerticalAxisBead.prototype.set_axisWidth = function(value) {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IVerticalAxisBead.prototype.get_axisWidth = function() {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IVerticalAxisBead.prototype.get_maximum = function() {};
-
-
-/**
- * @return {number}
- */
-org_apache_flex_charts_core_IVerticalAxisBead.prototype.get_minimum = function() {};
+Object.defineProperties(org_apache_flex_charts_core_IVerticalAxisBead.prototype, {
+ 'axisWidth': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'maximum': {
+ get: function() {}
+ },
+ 'minimum': {
+ get: function() {}
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/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 ae3c9f4..5f9148d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -120,15 +120,6 @@ org_apache_flex_core_ContainerBase.prototype.generateMXMLAttributes = function(d
/**
* @expose
- * @return {Array} An array of descriptors.
- */
-org_apache_flex_core_ContainerBase.prototype.get_MXMLDescriptor = function() {
- return this.mxmlDescriptor;
-};
-
-
-/**
- * @expose
* @param {Object} doc The document.
* @param {Array} desc The descriptor data;
*/
@@ -139,71 +130,48 @@ org_apache_flex_core_ContainerBase.prototype.setMXMLDescriptor =
};
-/**
- * @expose
- * @return {Array} An array of states.
- */
-org_apache_flex_core_ContainerBase.prototype.get_states = function() {
- return this.states_;
-};
-
-
-/**
- * @expose
- * @param {Array} s An array of states.
- */
-org_apache_flex_core_ContainerBase.prototype.set_states = function(s) {
- this.states_ = s;
- this.currentState_ = s[0].name;
-
- if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
- /**
- * @type {Function}
- */
- var impl = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
- getValue(this, 'iStatesImpl'));
- // TODO: (aharui) check if bead already exists
- this.addBead(new impl());
- }
-};
-
-
-/**
- * @expose
- * @return {String} The current state.
- */
-org_apache_flex_core_ContainerBase.prototype.get_currentState = function() {
- return this.currentState_;
-};
-
-
-/**
- * @expose
- * @param {String} s The current state.
- */
-org_apache_flex_core_ContainerBase.prototype.set_currentState = function(s) {
- var event = new org_apache_flex_events_ValueChangeEvent(
- 'currentStateChange', false, false, this.currentState_, s);
- this.currentState_ = s;
- this.dispatchEvent(event);
-};
-
-
-/**
- * @expose
- * @return {Array} An array of states.
- */
-org_apache_flex_core_ContainerBase.prototype.get_transitions = function() {
- return this.transitions_;
-};
-
-
-/**
- * @expose
- * @param {Array} s An array of states.
- */
-org_apache_flex_core_ContainerBase.prototype.set_transitions = function(s) {
- this.transitions_ = s;
-};
-
-
+Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
+ 'MXMLDescriptor': {
+ get: function() {
+ return this.mxmlDescriptor;
+ }
+ },
+ 'states': {
+ get: function() {
+ return this.states_;
+ },
+ set: function(s) {
+ this.states_ = s;
+ this.currentState_ = s[0].name;
+
+ if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
+ /**
+ * @type {Function}
+ */
+ var impl = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
+ getValue(this, 'iStatesImpl'));
+ // TODO: (aharui) check if bead already exists
+ this.addBead(new impl());
+ }
+ }
+ },
+ 'currentState': {
+ get: function() {
+ return this.currentState_;
+ },
+ set: function(s) {
+ var event = new org_apache_flex_events_ValueChangeEvent(
+ 'currentStateChange', false, false, this.currentState_, s);
+ this.currentState_ = s;
+ this.dispatchEvent(event);
+ }
+ },
+ 'transitions': {
+ get: function() {
+ return this.transitions_;
+ },
+ set: function(s) {
+ this.transitions_ = s;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
index a9719f3..ce19b08 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
@@ -54,22 +54,16 @@ org_apache_flex_core_FilledRectangle.prototype.addedToParent = function() {
};
-/**
- * @expose
- * @return {number} The fill color.
- */
-org_apache_flex_core_UIBase.prototype.get_fillColor = function() {
- return this.fillColor_;
-};
-
-
-/**
- * @param {number} value The fill color.
- */
-org_apache_flex_core_UIBase.prototype.set_fillColor = function(value) {
- this.fillColor_ = value;
-};
-
+Object.defineProperties(org_apache_flex_core_FilledRectangle.prototype, {
+ 'fillColor': {
+ get: function() {
+ return this.fillColor_;
+ },
+ set: function(value) {
+ this.fillColor_ = value;
+ }
+ }
+});
/**
* @expose
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index 8b83cf8..75d0e28 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -55,15 +55,6 @@ org_apache_flex_core_FormatBase.prototype.strand_ = null;
/**
- * @expose
- * @param {org_apache_flex_core_IStrand} value
- */
-org_apache_flex_core_FormatBase.prototype.set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
* @type {string}
*/
org_apache_flex_core_FormatBase.prototype._propertyName = 'text';
@@ -81,63 +72,43 @@ org_apache_flex_core_FormatBase.prototype._eventName = 'textChange';
org_apache_flex_core_FormatBase.prototype._formattedResult = '';
-/**
- * @expose
- * @return {Object}
- */
-org_apache_flex_core_FormatBase.prototype.get_propertyValue = function() {
- var value = this.strand_[this.propertyName];
- return value;
-};
-
-
-/**
- * @expose
- * @return {string}
- */
-org_apache_flex_core_FormatBase.prototype.get_propertyName = function() {
- if (this._propertyName == null) {
- this._propertyName = 'text';
- }
- return this._propertyName;
-};
-
-
-/**
- * @expose
- * @param {string} value
- */
-org_apache_flex_core_FormatBase.prototype.set_propertyName = function(value) {
- this._propertyName = value;
-};
-
-
-/**
- * @expose
- * @return {string}
- */
-org_apache_flex_core_FormatBase.prototype.get_eventName = function() {
- if (this._eventName == null) {
- return this._propertyName + 'Change';
- }
- return this._eventName;
-};
-
-
-/**
- * @expose
- * @param {string} value
- */
-org_apache_flex_core_FormatBase.prototype.set_eventName = function(value) {
- this._eventName = value;
-};
-
-
-/**
- * @expose
- * @return {string}
- */
-org_apache_flex_core_FormatBase.prototype.get_formattedString = function() {
- return null;
-};
-
+Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'propertyValue': {
+ get: function() {
+ var value = this.strand_[this.propertyName];
+ return value;
+ }
+ },
+ 'propertyName': {
+ get: function() {
+ if (this._propertyName == null) {
+ this._propertyName = 'text';
+ }
+ return this._propertyName;
+ },
+ set: function(value) {
+ this._propertyName = value;
+ }
+ },
+ 'eventName': {
+ get: function() {
+ if (this._eventName == null) {
+ return this._propertyName + 'Change';
+ }
+ return this._eventName;
+ },
+ set: function(value) {
+ this._eventName = value;
+ }
+ },
+ 'formattedString': {
+ get: function() {
+ return null;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/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 bd4367a..c17fdc5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -131,118 +131,59 @@ org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead) {
};
-/**
- * Hack to allow event.target expressions to work
- *
- * @expose
- * @return {Object} The wrapping object.
- */
-Event.prototype.get_target = function() {
- var obj = this.target;
- if (!obj)
- return this.currentTarget;
- return obj.flexjs_wrapper;
-};
-
-
-/**
- * Hack to allow event.currentTarget to work
- * @return {Object} The wrapping object.
- */
-Event.prototype.get_currentTarget = function() {
- return this.currentTarget.flexjs_wrapper;
-};
-
-
-/**
- * Hack to allow event.target expressions to work
- *
- * @expose
- * @return {Object} The wrapping object.
- */
-goog.events.BrowserEvent.prototype.get_target = function() {
- // if it is a faked event so just return the target
- if (!this.event_) return this.target;
- // for true browser events, get the embedded event's target
- return this.event_.target;
-};
-
-
-/**
- * Hack to allow event.currentTarget expressions to work
- *
- * @expose
- * @return {?Node|Object} The wrapping object.
- */
-goog.events.BrowserEvent.prototype.get_currentTarget = function() {
- // if it is a faked event so just return the currentTarget
- if (!this.event_) return this.currentTarget;
- // for true browser events, get the embedded event's currentTarget
- return this.event_.currentTarget;
-};
-
-
-/**
- * Hack to allow event.screenX expressions to work
- *
- * @expose
- * @return {number} The wrapping object.
- */
-goog.events.BrowserEvent.prototype.get_screenX = function() {
- return this.screenX;
-};
-
-
-/**
- * Hack to allow event.screenY expressions to work
- *
- * @expose
- * @return {number} The wrapping object.
- */
-goog.events.BrowserEvent.prototype.get_screenY = function() {
- return this.screenY;
-};
-
-
-/**
- * Hack to allow event.clientX expressions to work
- *
- * @expose
- * @return {number} The wrapping object.
- */
-goog.events.BrowserEvent.prototype.get_clientX = function() {
- return this.clientX;
-};
-
-
-/**
- * Hack to allow event.clientY expressions to work
- *
- * @expose
- * @return {number} The wrapping object.
- */
-goog.events.BrowserEvent.prototype.get_clientY = function() {
- return this.clientY;
-};
-
-
-/**
- * Hack to allow event.clientX expressions to work
- *
- * @expose
- * @param {number} value The value.
- */
-goog.events.BrowserEvent.prototype.set_clientX = function(value) {
- this.clientX = value;
-};
-
-
-/**
- * Hack to allow event.clientY expressions to work
- *
- * @expose
- * @param {number} value The value.
- */
-goog.events.BrowserEvent.prototype.set_clientY = function(value) {
- this.clientY = value;
-};
+Object.defineProperties(Event.prototype, {
+ /* Hack to allow event.target expressions to work
+ *
+ * @expose
+ * @return {Object} The wrapping object.
+ */
+ 'target': {
+ get: function() {
+ var obj = this.target;
+ if (!obj)
+ return this.currentTarget;
+ return obj.flexjs_wrapper;
+ }
+ },
+ /**
+ * Hack to allow event.currentTarget to work
+ * @return {Object} The wrapping object.
+ */
+ 'currentTarget': {
+ get: function() {
+ return this.currentTarget.flexjs_wrapper;
+ }
+ }
+});
+
+
+Object.defineProperties(goog.events.BrowserEvent.prototype, {
+ /**
+ * Hack to allow event.target expressions to work
+ *
+ * @expose
+ * @return {Object} The wrapping object.
+ */
+ 'target': {
+ get: function() {
+ // if it is a faked event so just return the target
+ if (!this.event_) return this.target;
+ // for true browser events, get the embedded event's target
+ return this.event_.target;
+ }
+ },
+ /**
+ * Hack to allow event.currentTarget expressions to work
+ *
+ * @expose
+ * @return {?Node|Object} The wrapping object.
+ */
+ 'currentTarget': {
+ get: function() {
+ // if it is a faked event so just return the currentTarget
+ if (!this.event_) return this.currentTarget;
+ // for true browser events, get the embedded event's currentTarget
+ return this.event_.currentTarget;
+ }
+ }
+});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
index c1b5363..e152f46 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
@@ -31,10 +31,11 @@ org_apache_flex_core_IChild = function() {
};
-/**
- * @return {Object} The parent of the child.
- */
-org_apache_flex_core_IChild.prototype.get_parent = function() {};
+Object.defineProperties(org_apache_flex_core_IChild.prototype, {
+ 'parent': {
+ get: function() {}
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
index bdc71b5..5358231 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
@@ -31,53 +31,24 @@ org_apache_flex_core_IContentView = function() {
};
-/**
- * @return {number} x position.
- */
-org_apache_flex_core_IContentView.prototype.get_x = function() {};
-
-
-/**
- * @param {number} value x position.
- */
-org_apache_flex_core_IContentView.prototype.set_x = function(value) {};
-
-
-/**
- * @return {number} y position.
- */
-org_apache_flex_core_IContentView.prototype.get_y = function() {};
-
-
-/**
- * @param {number} value y position.
- */
-org_apache_flex_core_IContentView.prototype.set_y = function(value) {};
-
-
-/**
- * @return {number} Component width.
- */
-org_apache_flex_core_IContentView.prototype.get_width = function() {};
-
-
-/**
- * @param {number} value Component width.
- */
-org_apache_flex_core_IContentView.prototype.set_width = function(value) {};
-
-
-/**
- * @return {number} Component height.
- */
-org_apache_flex_core_IContentView.prototype.get_height = function() {};
-
-
-/**
- * @param {number} value Component height.
- */
-org_apache_flex_core_IContentView.prototype.set_height = function(value) {};
-
+Object.defineProperties(org_apache_flex_core_IContentView.prototype, {
+ 'x': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'y': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'width': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'height': {
+ get: function() {},
+ set: function(value) {}
+ }
+});
/**
* Adds a new element to component.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
index ad8b1b2..a76e7b5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
@@ -30,34 +30,19 @@ org_apache_flex_core_IFormatBead = function() {
};
-/**
- * @return {string}
- */
-org_apache_flex_core_IFormatBead.prototype.get_propertyName = function() {};
-
-
-/**
- * @param {string} value
- */
-org_apache_flex_core_IFormatBead.prototype.set_propertyName = function(value) {};
-
-
-/**
- * @return {string}
- */
-org_apache_flex_core_IFormatBead.prototype.get_eventName = function() {};
-
-
-/**
- * @param {string} value
- */
-org_apache_flex_core_IFormatBead.prototype.set_eventName = function(value) {};
-
-
-/**
- * @return {string}
- */
-org_apache_flex_core_IFormatBead.prototype.get_formattedString = function() {};
+Object.defineProperties(org_apache_flex_core_IFormatBead.prototype, {
+ 'propertyName': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'eventName': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'formattedString': {
+ get: function() {}
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
index d110e99..5f19893 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
@@ -38,36 +38,18 @@ org_apache_flex_core_ILayoutParent.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_ILayoutParent' }] };
-/**
- * @expose
- * @return {Object} The view that contains the layout objects.
- */
-org_apache_flex_core_ILayoutParent.prototype.get_contentView = function() {};
-
-
-/**
- * @expose
- * @return {Object} The border for the layout area.
- */
-org_apache_flex_core_ILayoutParent.prototype.get_border = function() {};
-
-
-/**
- * @expose
- * @return {Object} The vertical scrollbar.
- */
-org_apache_flex_core_ILayoutParent.prototype.get_vScrollBar = function() {};
-
-
-/**
- * @expose
- * @param {Object} value The vertical scrollbar.
- */
-org_apache_flex_core_ILayoutParent.prototype.set_vScrollBar = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} The view that can be resized.
- */
-org_apache_flex_core_ILayoutParent.prototype.get_resizeableView = function() {};
+Object.defineProperties(org_apache_flex_core_ILayoutParent.prototype, {
+ 'contentView': {
+ get: function() {}
+ },
+ 'border': {
+ get: function() {}
+ },
+ 'vScrollBar': {
+ get: function() {},
+ set: function(value) {}
+ },
+ 'resizeableView': {
+ get: function() {}
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
index 665590d..795a66c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
@@ -35,19 +35,12 @@ org_apache_flex_core_IListPresentationModel = function() {
};
-/**
- * @expose
- * @param {number} value The height of the rows.
- */
-org_apache_flex_core_IListPresentationModel.prototype.set_rowHeight = function(value) {};
-
-
-/**
- * @expose
- * @return {number} The height of the rows.
- */
-org_apache_flex_core_IListPresentationModel.prototype.get_rowHeight = function() {};
-
+Object.defineProperties(org_apache_flex_core_IListPresentationModel.prototype, {
+ 'rowHeight': {
+ set: function(value) {},
+ get: function() {}
+ }
+});
/**
* Metadata
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
index bf80b6f..6436927 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
@@ -35,75 +35,28 @@ org_apache_flex_core_ISelectableItemRenderer = function() {
};
-/**
- * @expose
- * @param {Object} value
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.set_labelField = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} The labelField.
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.get_labelField = function() {};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.set_index = function(value) {};
-
-
-/**
- * @expose
- * @return {number} The selected index.
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.get_index = function() {};
-
-
-/**
- * @expose
- * @param {Object} value
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.set_selected = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} Whether or not the item in the selected state.
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.get_selected = function() {};
-
-
-/**
- * @expose
- * @param {Object} value
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.set_hovered = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} Whether or not the item is in the hovered state.
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.get_hovered = function() {};
-
-
-/**
- * @expose
- * @param {Object} value
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.set_down = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} Whether or not the item is in the down state.
- */
-org_apache_flex_core_ISelectableItemRenderer.prototype.get_down = function() {};
-
+Object.defineProperties(org_apache_flex_core_ISelectableItemRenderer.prototype, {
+ 'labelField': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'index': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'selected': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'hovered': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'down': {
+ set: function(value) {},
+ get: function() {}
+ }
+});
/**
* Metadata
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
index a503263..237e097 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
@@ -35,47 +35,20 @@ org_apache_flex_core_ISelectionModel = function() {
};
-/**
- * @expose
- * @param {Object} value
- */
-org_apache_flex_core_ISelectionModel.prototype.set_dataProvider = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} The dataProvider.
- */
-org_apache_flex_core_ISelectionModel.prototype.get_dataProvider = function() {};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_ISelectionModel.prototype.set_selectedIndex = function(value) {};
-
-
-/**
- * @expose
- * @return {number} The selected index.
- */
-org_apache_flex_core_ISelectionModel.prototype.get_selectedIndex = function() {};
-
-
-/**
- * @expose
- * @param {Object} value
- */
-org_apache_flex_core_ISelectionModel.prototype.set_selectedItem = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} The selected item.
- */
-org_apache_flex_core_ISelectionModel.prototype.get_selectedItem = function() {};
-
+Object.defineProperties(org_apache_flex_core_ISelectionModel.prototype, {
+ 'dataProvider': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'selectedIndex': {
+ set: function(value) {},
+ get: function() {}
+ },
+ 'selectedItem': {
+ set: function(value) {},
+ get: function() {}
+ }
+});
/**
* Metadata
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
index d394d9d..579123e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
@@ -35,18 +35,12 @@ org_apache_flex_core_ITextModel = function() {
};
-/**
- * @expose
- * @param {Object} value The text content.
- */
-org_apache_flex_core_ITextModel.prototype.set_text = function(value) {};
-
-
-/**
- * @expose
- * @return {Object} The text content.
- */
-org_apache_flex_core_ITextModel.prototype.get_text = function() {};
+Object.defineProperties(org_apache_flex_core_ITextModel.prototype, {
+ 'text': {
+ set: function(value) {},
+ get: function() {}
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
index 12930a7..827859f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -44,34 +44,33 @@ org_apache_flex_core_ItemRendererClassFactory.
interfaces: [org_apache_flex_core_IItemRendererClassFactory] };
-/**
- * @expose
- * @param {Object} value The component strand.
- */
-org_apache_flex_core_ItemRendererClassFactory.
- prototype.set_strand = function(value) {
- this.strand_ = value;
+Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype, {
+ 'strand': {
+ set: function(value) {
+ this.strand_ = value;
- // see if the _strand has an itemRenderer property that isn't empty. if that's
- // true, use that value instead of pulling it from the the style
- if (this.strand_.get_itemRenderer) {
- this.itemRendererClassFactory = this.strand_.itemRenderer;
- if (this.itemRendererClassFactory) {
- this.createFunction = this.createFromClass;
- return;
- }
- }
+ // see if the _strand has an itemRenderer property that isn't empty. if that's
+ // true, use that value instead of pulling it from the the style
+ if (this.strand_.get_itemRenderer) {
+ this.itemRendererClassFactory = this.strand_.itemRenderer;
+ if (this.itemRendererClassFactory) {
+ this.createFunction = this.createFromClass;
+ return;
+ }
+ }
- if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
- this.itemRendererClass =
- /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
- getValue(this.strand_, 'iItemRenderer'));
- if (this.itemRendererClass) {
- this.itemRendererClassFactory = new mx_core_ClassFactory(this.itemRendererClass);
- this.createFunction = this.createFromClass;
- }
- }
-};
+ if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
+ this.itemRendererClass =
+ /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
+ getValue(this.strand_, 'iItemRenderer'));
+ if (this.itemRendererClass) {
+ this.itemRendererClassFactory = new mx_core_ClassFactory(this.itemRendererClass);
+ this.createFunction = this.createFromClass;
+ }
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/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 0cd35f5..9e7b1b7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -104,15 +104,6 @@ org_apache_flex_core_UIBase.prototype.FLEXJS_CLASS_INFO =
/**
* @expose
- * @param {Array.<Object>} value The list of beads from MXML.
- */
-org_apache_flex_core_UIBase.prototype.set_beads = function(value) {
- this.mxmlBeads_ = value;
-};
-
-
-/**
- * @expose
* @type {Object}
*/
org_apache_flex_core_UIBase.prototype.positioner = null;
@@ -212,25 +203,6 @@ org_apache_flex_core_UIBase.prototype.removeElement = function(c) {
/**
- * @return {number} The number of child elements.
- */
-org_apache_flex_core_UIBase.prototype.get_numElements = function() {
- var children = this.internalChildren();
- return children.length;
-};
-
-
-/**
- * @return {Object} The parent of this object.
- */
-org_apache_flex_core_UIBase.prototype.get_parent = function() {
- var p = this.positioner.parentNode;
- var wrapper = p.flexjs_wrapper;
- return wrapper;
-};
-
-
-/**
*/
org_apache_flex_core_UIBase.prototype.addedToParent = function() {
@@ -363,216 +335,242 @@ org_apache_flex_core_UIBase.prototype.removeBead =
};
-/**
- * @expose
- * @param {number} alpha The alpha or opacity.
- */
-org_apache_flex_core_UIBase.prototype.set_alpha = function(alpha) {
- this.positioner.style.opacity = alpha;
-};
-
-
-/**
- * @expose
- * @return {number} The alpha or opacity.
- */
-org_apache_flex_core_UIBase.prototype.get_alpha = function() {
- var stralpha = this.positioner.style.opacity;
- var alpha = parseFloat(stralpha);
- return alpha;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
-org_apache_flex_core_UIBase.prototype.set_x = function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.left = pixels.toString() + 'px';
-};
-
-
-/**
- * @expose
- * @return {number} The pixel count from the left edge.
- */
-org_apache_flex_core_UIBase.prototype.get_x = function() {
- var strpixels = this.positioner.style.left;
- var pixels = parseFloat(strpixels);
- if (isNaN(pixels))
- pixels = this.positioner.offsetLeft;
- return pixels;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the top edge.
- */
-org_apache_flex_core_UIBase.prototype.set_y = function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.top = pixels.toString() + 'px';
-};
-
-
-/**
- * @expose
- * @return {number} The pixel count from the top edge.
- */
-org_apache_flex_core_UIBase.prototype.get_y = function() {
- var strpixels = this.positioner.style.top;
- var pixels = parseFloat(strpixels);
- if (isNaN(pixels))
- pixels = this.positioner.offsetTop;
- return pixels;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
-org_apache_flex_core_UIBase.prototype.set_width = function(pixels) {
- this.explicitWidth = pixels;
- this.setWidth(pixels);
-};
-
-
-/**
- * @expose
- * @return {number} The width of the object in pixels.
- */
-org_apache_flex_core_UIBase.prototype.get_width = function() {
- var pixels;
- var strpixels = this.positioner.style.width;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- if (isNaN(pixels)) {
- pixels = this.positioner.offsetWidth;
- if (pixels === 0 && this.positioner.scrollWidth !== 0) {
- // invisible child elements cause offsetWidth to be 0.
- pixels = this.positioner.scrollWidth;
- }
- }
- return pixels;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
-org_apache_flex_core_UIBase.prototype.set_explicitWidth = function(pixels) {
- this.explicitWidth_ = pixels;
- if (!isNaN(pixels))
- this.percentWidth_ = NaN;
-};
-
-
-/**
- * @expose
- * @return {number} The width of the object in pixels.
- */
-org_apache_flex_core_UIBase.prototype.get_explicitWidth = function() {
- return this.explicitWidth_;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The percent width of the object.
- */
-org_apache_flex_core_UIBase.prototype.set_percentWidth = function(pixels) {
- this.percentWidth_ = pixels;
- this.positioner.style.width = pixels.toString() + '%';
- if (!isNaN(pixels))
- this.explicitWidth_ = NaN;
-};
-
-
-/**
- * @expose
- * @return {number} The percent width of the object.
- */
-org_apache_flex_core_UIBase.prototype.get_percentWidth = function() {
- return this.percentWidth_;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The pixel count from the top edge.
- */
-org_apache_flex_core_UIBase.prototype.set_height = function(pixels) {
- this.explicitHeight = pixels;
- this.setHeight(pixels);
-};
-
-
-/**
- * @expose
- * @return {number} The height of the object in pixels.
- */
-org_apache_flex_core_UIBase.prototype.get_height = function() {
- var pixels;
- var strpixels = this.positioner.style.height;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- if (isNaN(pixels)) {
- pixels = this.positioner.offsetHeight;
- if (pixels === 0 && this.positioner.scrollHeight !== 0) {
- // invisible child elements cause offsetHeight to be 0.
- pixels = this.positioner.scrollHeight;
- }
- }
- return pixels;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The height of the object in pixels.
- */
-org_apache_flex_core_UIBase.prototype.set_explicitHeight = function(pixels) {
- this.explicitHeight_ = pixels;
- if (!isNaN(pixels))
- this.percentHeight_ = NaN;
-};
-
-
-/**
- * @expose
- * @return {number} The height of the object in pixels.
- */
-org_apache_flex_core_UIBase.prototype.get_explicitHeight = function() {
- return this.explicitHeight_;
-};
-
-
-/**
- * @expose
- * @param {number} pixels The percentage height.
- */
-org_apache_flex_core_UIBase.prototype.set_percentHeight = function(pixels) {
- this.percentHeight_ = pixels;
- this.positioner.style.height = pixels.toString() + '%';
- if (!isNaN(pixels))
- this.explicitHeight_ = NaN;
-};
-
-
-/**
- * @expose
- * @return {number} The percentage height of the object.
- */
-org_apache_flex_core_UIBase.prototype.get_percentHeight = function() {
- return this.percentHeight_;
-};
+Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
+ /**
+ * @expose
+ * @param {Array.<Object>} value The list of beads from MXML.
+ */
+ 'beads': {
+ set: function(value) {
+ this.mxmlBeads_ = value;
+ }
+ },
+ 'numElements': {
+ get: function() {
+ var children = this.internalChildren();
+ return children.length;
+ }
+ },
+ 'parent': {
+ get: function() {
+ var p = this.positioner.parentNode;
+ var wrapper = p.flexjs_wrapper;
+ return wrapper;
+ }
+ },
+ 'alpha': {
+ set: function(alpha) {
+ this.positioner.style.opacity = alpha;
+ },
+ get: function() {
+ var stralpha = this.positioner.style.opacity;
+ var alpha = parseFloat(stralpha);
+ return alpha;
+ }
+ },
+ 'x': {
+ set: function(pixels) {
+ this.positioner.style.position = 'absolute';
+ this.positioner.style.left = pixels.toString() + 'px';
+ },
+ get: function() {
+ var strpixels = this.positioner.style.left;
+ var pixels = parseFloat(strpixels);
+ if (isNaN(pixels))
+ pixels = this.positioner.offsetLeft;
+ return pixels;
+ }
+ },
+ 'y': {
+ set: function(pixels) {
+ this.positioner.style.position = 'absolute';
+ this.positioner.style.top = pixels.toString() + 'px';
+ },
+ get: function() {
+ var strpixels = this.positioner.style.top;
+ var pixels = parseFloat(strpixels);
+ if (isNaN(pixels))
+ pixels = this.positioner.offsetTop;
+ return pixels;
+ }
+ },
+ 'width': {
+ set: function(pixels) {
+ this.explicitWidth = pixels;
+ this.setWidth(pixels);
+ },
+ get: function() {
+ var pixels;
+ var strpixels = this.positioner.style.width;
+ if (strpixels !== null && strpixels.indexOf('%') != -1)
+ pixels = NaN;
+ else
+ pixels = parseFloat(strpixels);
+ if (isNaN(pixels)) {
+ pixels = this.positioner.offsetWidth;
+ if (pixels === 0 && this.positioner.scrollWidth !== 0) {
+ // invisible child elements cause offsetWidth to be 0.
+ pixels = this.positioner.scrollWidth;
+ }
+ }
+ return pixels;
+ }
+ },
+ 'explicitWidth': {
+ set: function(pixels) {
+ this.explicitWidth_ = pixels;
+ if (!isNaN(pixels))
+ this.percentWidth_ = NaN;
+ },
+ get: function() {
+ return this.explicitWidth_;
+ }
+ },
+ 'percentWidth': {
+ set: function(pixels) {
+ this.percentWidth_ = pixels;
+ this.positioner.style.width = pixels.toString() + '%';
+ if (!isNaN(pixels))
+ this.explicitWidth_ = NaN;
+ },
+ get: function() {
+ return this.percentWidth_;
+ }
+ },
+ 'height': {
+ set: function(pixels) {
+ this.explicitHeight = pixels;
+ this.setHeight(pixels);
+ },
+ get: function() {
+ var pixels;
+ var strpixels = this.positioner.style.height;
+ if (strpixels !== null && strpixels.indexOf('%') != -1)
+ pixels = NaN;
+ else
+ pixels = parseFloat(strpixels);
+ if (isNaN(pixels)) {
+ pixels = this.positioner.offsetHeight;
+ if (pixels === 0 && this.positioner.scrollHeight !== 0) {
+ // invisible child elements cause offsetHeight to be 0.
+ pixels = this.positioner.scrollHeight;
+ }
+ }
+ return pixels;
+ }
+ },
+ 'explicitHeight': {
+ set: function(pixels) {
+ this.explicitHeight_ = pixels;
+ if (!isNaN(pixels))
+ this.percentHeight_ = NaN;
+ },
+ get: function() {
+ return this.explicitHeight_;
+ }
+ },
+ 'percentHeight': {
+ set: function(pixels) {
+ this.percentHeight_ = pixels;
+ this.positioner.style.height = pixels.toString() + '%';
+ if (!isNaN(pixels))
+ this.explicitHeight_ = NaN;
+ },
+ get: function() {
+ return this.percentHeight_;
+ }
+ },
+ 'id': {
+ get: function() {
+ return this.id;
+ },
+ set: function(value) {
+ if (this.id !== value) {
+ this.element.id = value;
+ this.id = value;
+ this.dispatchEvent('idChanged');
+ }
+ }
+ },
+ 'className': {
+ get: function() {
+ return this.className;
+ },
+ set: function(value) {
+ if (this.className !== value) {
+ this.element.className = this.typeNames ? value + ' ' + this.typeNames : value;
+ this.className = value;
+ this.dispatchEvent('classNameChanged');
+ }
+ }
+ },
+ 'model': {
+ get: function() {
+ if (this.model == null) {
+ // addbead will set _model
+ if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
+ /**
+ * @type {Function}
+ */
+ var m = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
+ getValue(this, 'iBeadModel'));
+ var b = new m();
+ this.addBead(b);
+ }
+ }
+ return this.model;
+ },
+ set: function(value) {
+ if (this.model !== value) {
+ this.addBead(value);
+ this.dispatchEvent('modelChanged');
+ }
+ }
+ },
+ 'style': {
+ get: function() {
+ return this.style_;
+ },
+ set: function(value) {
+ if (this.style_ !== value) {
+ if (typeof(value) == 'string')
+ value = org_apache_flex_core_ValuesManager.valuesImpl.parseStyles(value);
+ this.style_ = value;
+ if (value.addEventListener)
+ value.addEventListener(org_apache_flex_events_ValueChangeEvent.VALUE_CHANGE,
+ goog.bind(this.styleChangeHandler, this));
+ this.dispatchEvent('stylesChanged');
+ }
+ }
+ },
+ 'visible': {
+ get: function() {
+ return this.positioner.style.display !== 'none';
+ },
+ set: function(value) {
+ var oldValue = this.positioner.style.display !== 'none';
+ if (value !== oldValue) {
+ if (!value) {
+ this.lastDisplay_ = this.positioner.style.display;
+ this.positioner.style.display = 'none';
+ this.dispatchEvent(new org_apache_flex_events_Event('hide'));
+ } else {
+ if (this.lastDisplay_) {
+ this.positioner.style.display = this.lastDisplay_;
+ } else {
+ this.positioner.style.display = 'block';
+ }
+ this.dispatchEvent(new org_apache_flex_events_Event('show'));
+ }
+ }
+ }
+ },
+ 'topMostEventDispatcher': {
+ get: function() {
+ return document.body.flexjs_wrapper;
+ }
+ }
+});
/**
@@ -672,28 +670,6 @@ org_apache_flex_core_UIBase.prototype.id = '';
/**
* @expose
- * @return {string} The id.
- */
-org_apache_flex_core_UIBase.prototype.get_id = function() {
- return this.id;
-};
-
-
-/**
- * @expose
- * @param {string} value The new id.
- */
-org_apache_flex_core_UIBase.prototype.set_id = function(value) {
- if (this.id !== value) {
- this.element.id = value;
- this.id = value;
- this.dispatchEvent('idChanged');
- }
-};
-
-
-/**
- * @expose
* @type {string}
*/
org_apache_flex_core_UIBase.prototype.typeNames = '';
@@ -708,29 +684,6 @@ org_apache_flex_core_UIBase.prototype.className = '';
/**
* @expose
- * @return {string} The className.
- */
-org_apache_flex_core_UIBase.prototype.get_className = function() {
- return this.className;
-};
-
-
-/**
- * @expose
- * @param {string} value The new className.
- */
-org_apache_flex_core_UIBase.prototype.set_className = function(value) {
- if (this.className !== value)
- {
- this.element.className = this.typeNames ? value + ' ' + this.typeNames : value;
- this.className = value;
- this.dispatchEvent('classNameChanged');
- }
-};
-
-
-/**
- * @expose
* @type {Object}
*/
org_apache_flex_core_UIBase.prototype.model = null;
@@ -738,66 +691,6 @@ org_apache_flex_core_UIBase.prototype.model = null;
/**
* @expose
- * @return {Object} The model.
- */
-org_apache_flex_core_UIBase.prototype.get_model = function() {
- if (this.model == null)
- {
- // addbead will set _model
- if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
- /**
- * @type {Function}
- */
- var m = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
- getValue(this, 'iBeadModel'));
- var b = new m();
- this.addBead(b);
- }
- }
- return this.model;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new model.
- */
-org_apache_flex_core_UIBase.prototype.set_model = function(value) {
- if (this.model !== value) {
- this.addBead(value);
- this.dispatchEvent('modelChanged');
- }
-};
-
-
-/**
- * @expose
- * @return {Object} The style properties.
- */
-org_apache_flex_core_UIBase.prototype.get_style = function() {
- return this.style_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new style properties.
- */
-org_apache_flex_core_UIBase.prototype.set_style = function(value) {
- if (this.style_ !== value) {
- if (typeof(value) == 'string')
- value = org_apache_flex_core_ValuesManager.valuesImpl.parseStyles(value);
- this.style_ = value;
- if (value.addEventListener)
- value.addEventListener(org_apache_flex_events_ValueChangeEvent.VALUE_CHANGE,
- goog.bind(this.styleChangeHandler, this));
- this.dispatchEvent('stylesChanged');
- }
-};
-
-
-/**
- * @expose
* @param {org_apache_flex_events_ValueChangeEvent} value The new style properties.
*/
org_apache_flex_core_UIBase.prototype.styleChangeHandler = function(value) {
@@ -807,42 +700,3 @@ org_apache_flex_core_UIBase.prototype.styleChangeHandler = function(value) {
};
-/**
- * @expose
- * @return {boolean} True if visible.
- */
-org_apache_flex_core_UIBase.prototype.get_visible = function() {
- return this.positioner.style.display !== 'none';
-};
-
-
-/**
- * @expose
- * @param {boolean} value The new model.
- */
-org_apache_flex_core_UIBase.prototype.set_visible = function(value) {
- var oldValue = this.positioner.style.display !== 'none';
- if (value !== oldValue) {
- if (!value) {
- this.lastDisplay_ = this.positioner.style.display;
- this.positioner.style.display = 'none';
- this.dispatchEvent(new org_apache_flex_events_Event('hide'));
- } else {
- if (this.lastDisplay_) {
- this.positioner.style.display = this.lastDisplay_;
- } else {
- this.positioner.style.display = 'block';
- }
- this.dispatchEvent(new org_apache_flex_events_Event('show'));
- }
- }
-};
-
-
-/**
- * @expose
- * @return {Object} The top most EventDispatcher.
- */
-org_apache_flex_core_UIBase.prototype.get_topMostEventDispatcher = function() {
- return document.body.flexjs_wrapper;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
index 9ac715a..279e409 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
@@ -42,21 +42,13 @@ org_apache_flex_core_ValuesManager.prototype.FLEXJS_CLASS_INFO =
org_apache_flex_core_ValuesManager.prototype.valuesImpl = null;
-/**
- * @expose
- * @this {org_apache_flex_core_ValuesManager}
- * @return {org_apache_flex_core_IValuesImpl} The value.
- */
-org_apache_flex_core_ValuesManager.get_valuesImpl = function() {
- return org_apache_flex_core_ValuesManager.valuesImpl;
-};
-
-
-/**
- * @expose
- * @this {org_apache_flex_core_ValuesManager}
- * @param {org_apache_flex_core_IValuesImpl} value being set.
- */
-org_apache_flex_core_ValuesManager.set_valuesImpl = function(value) {
- org_apache_flex_core_ValuesManager.valuesImpl = value;
-};
+Object.defineProperties(org_apache_flex_core_ValuesManager.prototype, {
+ 'valuesImpl': {
+ get: function() {
+ return org_apache_flex_core_ValuesManager.valuesImpl;
+ },
+ set: function(value) {
+ org_apache_flex_core_ValuesManager.valuesImpl = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/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 cebe40a..c05d0db 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -104,15 +104,6 @@ org_apache_flex_core_ViewBase.prototype.document = null;
/**
* @expose
- * @return {Array} An array of descriptors.
- */
-org_apache_flex_core_ViewBase.prototype.get_MXMLDescriptor = function() {
- return this.MXMLDescriptor;
-};
-
-
-/**
- * @expose
* @param {Object} doc The document.
* @param {Array} desc The descriptor data;
*/
@@ -150,44 +141,6 @@ org_apache_flex_core_ViewBase.prototype.addedToParent = function() {
/**
* @expose
- * @return {Object} The application model.
- */
-org_apache_flex_core_ViewBase.prototype.get_applicationModel = function() {
- return this.applicationModel;
-};
-
-
-/**
- * @expose
- * @return {Array} The array of State objects.
- */
-org_apache_flex_core_ViewBase.prototype.get_states = function() {
- return this.states_;
-};
-
-
-/**
- * @expose
- * @param {Array} value The array of State objects.
- */
-org_apache_flex_core_ViewBase.prototype.set_states = function(value) {
- this.states_ = value;
- this.currentState_ = value[0].name;
-
- if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
- /**
- * @type {Function}
- */
- var impl = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
- getValue(this, 'iStatesImpl'));
- // TODO: (aharui) check if bead already exists
- this.addBead(new impl());
- }
-};
-
-
-/**
- * @expose
* @param {string} state The name of the state.
* @return {boolean} True if state in states array.
*/
@@ -202,41 +155,59 @@ org_apache_flex_core_ViewBase.prototype.hasState = function(state) {
};
-/**
- * @expose
- * @return {string} The name of the current state.
- */
-org_apache_flex_core_ViewBase.prototype.get_currentState = function() {
- return this.currentState_;
-};
-
-
-/**
- * @expose
- * @param {string} value The name of the current state.
- */
-org_apache_flex_core_ViewBase.prototype.set_currentState = function(value) {
- var event = new org_apache_flex_events_ValueChangeEvent(
- 'currentStateChange', false, false, this.currentState_, value);
- this.currentState_ = value;
- this.dispatchEvent(event);
-};
-
-
-/**
- * @expose
- * @return {Array} The array of transitions.
- */
-org_apache_flex_core_ViewBase.prototype.get_transitions = function() {
- return this.transitions_;
-};
-
-
-/**
- * @expose
- * @param {Array} value The array of transitions.
- */
-org_apache_flex_core_ViewBase.prototype.set_transitions = function(value) {
- this.transitions_ = value;
-};
-
+Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
+ /**
+ * @return {Array} An array of descriptors.
+ */
+ 'MXMLDescriptor': {
+ get: function() {
+ return this.MXMLDescriptor;
+ }
+ },
+ /**
+ * @return {Object} The application model.
+ */
+ 'applicationModel': {
+ get: function() {
+ return this.applicationModel;
+ }
+ },
+ 'states': {
+ get: function() {
+ return this.states_;
+ },
+ set: function(value) {
+ this.states_ = value;
+ this.currentState_ = value[0].name;
+
+ if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
+ /**
+ * @type {Function}
+ */
+ var impl = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
+ getValue(this, 'iStatesImpl'));
+ // TODO: (aharui) check if bead already exists
+ this.addBead(new impl());
+ }
+ }
+ },
+ 'currentState': {
+ get: function() {
+ return this.currentState_;
+ },
+ set: function(value) {
+ var event = new org_apache_flex_events_ValueChangeEvent(
+ 'currentStateChange', false, false, this.currentState_, value);
+ this.currentState_ = value;
+ this.dispatchEvent(event);
+ }
+ },
+ 'transitions': {
+ get: function() {
+ return this.transitions_;
+ },
+ set: function(value) {
+ this.transitions_ = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
index b64bd2e..a3cbd7f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
@@ -45,22 +45,17 @@ org_apache_flex_core_graphics_Circle.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_graphics_Circle' }] };
-/**
- * @expose
- * @param {number} v The radius of the circle.
- */
-org_apache_flex_core_graphics_Circle.prototype.set_radius = function(v) {
- this.radius_ = v;
-};
-
-/**
- * @expose
- * @return {number} The radius of the circle.
- */
-org_apache_flex_core_graphics_Circle.prototype.get_radius = function() {
- return this.radius_;
-};
+Object.defineProperties(org_apache_flex_core_graphics_Circle.prototype, {
+ 'radius': {
+ set: function(v) {
+ this.radius_ = v;
+ },
+ get: function() {
+ return this.radius_;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
index 5d7ce32..1331360 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
@@ -64,45 +64,53 @@ org_apache_flex_core_graphics_GradientBase.prototype._entries = [];
org_apache_flex_core_graphics_GradientBase.prototype._rotation = 0.0;
-/**
- * @expose
- * @return {Array}
- */
-org_apache_flex_core_graphics_GradientBase.prototype.get_entries = function() {
- return this._entries;
-};
-
-
-/**
- * @expose
- * @param {Array} value
- */
-org_apache_flex_core_graphics_GradientBase.prototype.set_entries = function(value) {
- this._entries = value;
-};
-
-
-/**
- * @expose
- * By default, the LinearGradientStroke defines a transition
- * from left to right across the control.
- * Use the <code>rotation</code> property to control the transition direction.
- * For example, a value of 180.0 causes the transition
- * to occur from right to left, rather than from left to right.
- * @return {number}
- */
-org_apache_flex_core_graphics_GradientBase.prototype.get_rotation = function() {
- return this._rotation;
-};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_graphics_GradientBase.prototype.set_rotation = function(value) {
- this._rotation = value;
-};
+Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
+ 'entries': {
+ get: function() {
+ return this._entries;
+ },
+ set: function(value) {
+ this._entries = value;
+ }
+ },
+ /**
+ * By default, the LinearGradientStroke defines a transition
+ * from left to right across the control.
+ * Use the <code>rotation</code> property to control the transition direction.
+ * For example, a value of 180.0 causes the transition
+ * to occur from right to left, rather than from left to right.
+ * @return {number}
+ */
+ 'rotation': {
+ get: function() {
+ return this._rotation;
+ },
+ set: function(value) {
+ this._rotation = value;
+ }
+ },
+ 'x': {
+ get: function() {
+ return this._x;
+ },
+ set: function(value) {
+ this._x = value;
+ }
+ },
+ 'y': {
+ set: function(value) {
+ this._y = value;
+ },
+ get: function() {
+ return this._y;
+ }
+ },
+ 'newId': {
+ get: function() {
+ return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
+ }
+ }
+});
/**
@@ -112,57 +120,12 @@ org_apache_flex_core_graphics_GradientBase.prototype._x = 0;
/**
- * @expose
- * @return {number}
- */
-org_apache_flex_core_graphics_GradientBase.prototype.get_x = function() {
- return this._x;
-};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_graphics_GradientBase.prototype.set_x = function(value) {
- this._x = value;
-};
-
-
-/**
* @type {number}
*/
org_apache_flex_core_graphics_GradientBase.prototype._y = 0;
/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_graphics_GradientBase.prototype.set_y = function(value) {
- this._y = value;
-};
-
-
-/**
- * @expose
- * @return {number}
- */
-org_apache_flex_core_graphics_GradientBase.prototype.get_y = function() {
- return this._y;
-};
-
-
-/**
- * @expose
- * @return {string} A new gradient id value.
- */
-org_apache_flex_core_graphics_GradientBase.prototype.get_newId = function() {
- return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
-};
-
-
-/**
* Metadata
*
* @type {Object.<string, Array.<Object>>}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
index aeb0d52..38458d0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
@@ -55,65 +55,38 @@ org_apache_flex_core_graphics_GradientEntry.prototype._color = 0x000000;
org_apache_flex_core_graphics_GradientEntry.prototype._ratio = 0x000000;
-/**
- * @expose
- * @return {number}
- */
-org_apache_flex_core_graphics_GradientEntry.prototype.get_alpha = function() {
- return this._alpha;
-};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_graphics_GradientEntry.prototype.set_alpha = function(value) {
- var /** @type {number} */ oldValue = this._alpha;
- if (value != oldValue) {
- this._alpha = value;
- }
-};
-
-
-/**
- * @expose
- * @return {number}
- */
-org_apache_flex_core_graphics_GradientEntry.prototype.get_color = function() {
- return this._color;
-};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_graphics_GradientEntry.prototype.set_color = function(value) {
- var /** @type {number} */ oldValue = this._color;
- if (value != oldValue) {
- this._color = value;
- }
-};
-
-
-/**
- * @expose
- * @return {number}
- */
-org_apache_flex_core_graphics_GradientEntry.prototype.get_ratio = function() {
- return this._ratio;
-};
-
-
-/**
- * @expose
- * @param {number} value
- */
-org_apache_flex_core_graphics_GradientEntry.prototype.set_ratio = function(value) {
- this._ratio = value;
-};
-
+Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
+ 'alpha': {
+ get: function() {
+ return this._alpha;
+ },
+ set: function(value) {
+ var /** @type {number} */ oldValue = this._alpha;
+ if (value != oldValue) {
+ this._alpha = value;
+ }
+ }
+ },
+ 'color': {
+ get: function() {
+ return this._color;
+ },
+ set: function(value) {
+ var /** @type {number} */ oldValue = this._color;
+ if (value != oldValue) {
+ this._color = value;
+ }
+ }
+ },
+ 'ratio': {
+ get: function() {
+ return this._ratio;
+ },
+ set: function(value) {
+ this._ratio = value;
+ }
+ }
+});
/**
* @expose
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
index 870c645..2fa4201 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
@@ -88,39 +88,30 @@ org_apache_flex_core_graphics_GraphicShape.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_graphics_GraphicShape' }] };
-/**
- * @expose
- * @return {org_apache_flex_core_graphics_IFill} The fill object.
- */
-org_apache_flex_core_graphics_GraphicShape.prototype.get_fill = function() {
- return this.fill_;
-};
-
-
-/**
- * @param {org_apache_flex_core_graphics_IFill} value The fill object.
- */
-org_apache_flex_core_graphics_GraphicShape.prototype.set_fill = function(value) {
- this.fill_ = value;
-};
-
-
-/**
- * @expose
- * @return {org_apache_flex_core_graphics_IStroke} The stroke object.
- */
-org_apache_flex_core_graphics_GraphicShape.prototype.get_stroke = function() {
- return this.stroke_;
-};
-
-
-/**
- * @expose
- * @param {org_apache_flex_core_graphics_IStroke} value The stroke object.
- */
-org_apache_flex_core_graphics_GraphicShape.prototype.set_stroke = function(value) {
- this.stroke_ = value;
-};
+Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
+ /**
+ * @type {org_apache_flex_core_graphics_IFill}
+ */
+ 'fill': {
+ get: function() {
+ return this.fill_;
+ },
+ set: function(value) {
+ this.fill_ = value;
+ }
+ },
+ /**
+ * @type {org_apache_flex_core_graphics_IStroke} The stroke object.
+ */
+ 'stroke': {
+ get: function() {
+ return this.stroke_;
+ },
+ set: function(value) {
+ this.stroke_ = value;
+ }
+ }
+});
/**
[26/47] git commit: [flex-asjs] [refs/heads/develop] - need to keep
looking up ancestor chain for superSetter or superGetter
Posted by ah...@apache.org.
need to keep looking up ancestor chain for superSetter or superGetter
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/cac36ed6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/cac36ed6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/cac36ed6
Branch: refs/heads/develop
Commit: cac36ed6a10e259dd20a82b5beaf2e675b475de0
Parents: ef847bf
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:02:23 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:02:23 2015 -0700
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/flex/utils/Language.js | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/cac36ed6/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 ccbcace..3fdb371 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -259,7 +259,13 @@ org_apache_flex_utils_Language.postdecrement = function(obj, prop) {
* @return {Object}
*/
org_apache_flex_utils_Language.superGetter = function(clazz, pthis, prop) {
- var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
+ var superClass = clazz.superClass_;
+ var superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
+ while (superdesc == null)
+ {
+ superClass = superClass.constructor.superClass_;
+ superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
+ }
return superdesc.get.call(pthis);
};
@@ -274,6 +280,12 @@ org_apache_flex_utils_Language.superGetter = function(clazz, pthis, prop) {
* @param {Object} value The value.
*/
org_apache_flex_utils_Language.superSetter = function(clazz, pthis, prop, value) {
- var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
+ var superClass = clazz.superClass_;
+ var superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
+ while (superdesc == null)
+ {
+ superClass = superClass.constructor.superClass_;
+ superdesc = Object.getOwnPropertyDescriptor(superClass, prop);
+ }
superdesc.set.apply(pthis, [value]);
};
[12/47] git commit: [flex-asjs] [refs/heads/develop] - add @this
annotations to stop warnings
Posted by ah...@apache.org.
add @this annotations to stop warnings
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/19f8cb28
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/19f8cb28
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/19f8cb28
Branch: refs/heads/develop
Commit: 19f8cb286c955a17d75627310289a124a3818301
Parents: 7ab51ec
Author: Alex Harui <ah...@apache.org>
Authored: Mon Mar 16 11:28:46 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Mar 16 11:28:46 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/binding/BindingBase.js | 1 +
.../src/org/apache/flex/binding/ChainBinding.js | 3 +-
.../org/apache/flex/binding/ConstantBinding.js | 1 +
.../org/apache/flex/binding/SimpleBinding.js | 15 +++++----
.../org/apache/flex/charts/core/ChartBase.js | 2 ++
.../src/org/apache/flex/core/ContainerBase.js | 7 +++++
.../src/org/apache/flex/core/FilledRectangle.js | 2 ++
.../src/org/apache/flex/core/FormatBase.js | 7 +++++
.../org/apache/flex/core/HTMLElementWrapper.js | 6 +++-
.../flex/core/ItemRendererClassFactory.js | 1 +
.../FlexJS/src/org/apache/flex/core/UIBase.js | 32 ++++++++++++++++++++
.../src/org/apache/flex/core/ValuesManager.js | 2 ++
.../FlexJS/src/org/apache/flex/core/ViewBase.js | 8 +++++
.../src/org/apache/flex/core/graphics/Circle.js | 2 ++
.../apache/flex/core/graphics/GradientBase.js | 9 ++++++
.../apache/flex/core/graphics/GradientEntry.js | 6 ++++
.../apache/flex/core/graphics/GraphicShape.js | 6 +++-
.../flex/core/graphics/GraphicsContainer.js | 7 ++++-
.../apache/flex/core/graphics/LinearGradient.js | 2 ++
.../src/org/apache/flex/core/graphics/Path.js | 4 ++-
.../org/apache/flex/core/graphics/SolidColor.js | 4 +++
.../flex/core/graphics/SolidColorStroke.js | 6 ++++
.../src/org/apache/flex/createjs/Label.js | 2 ++
.../src/org/apache/flex/createjs/core/UIBase.js | 10 +++++-
.../FlexJS/src/org/apache/flex/events/Event.js | 5 ++-
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 5 +++
.../FlexJS/src/org/apache/flex/html/CheckBox.js | 4 +++
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 15 ++-------
.../org/apache/flex/html/ImageAndTextButton.js | 4 +++
.../js/FlexJS/src/org/apache/flex/html/Label.js | 4 +++
.../src/org/apache/flex/html/MultilineLabel.js | 4 +++
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 6 ++++
.../src/org/apache/flex/html/RadioButton.js | 11 +++++++
.../FlexJS/src/org/apache/flex/html/Spinner.js | 8 +++++
.../FlexJS/src/org/apache/flex/html/TextArea.js | 2 ++
.../src/org/apache/flex/html/TextButton.js | 2 ++
.../src/org/apache/flex/html/TextInput.js | 4 ++-
.../org/apache/flex/html/ToggleTextButton.js | 6 +++-
.../accessories/NumericOnlyTextInputBead.js | 5 +--
.../flex/html/accessories/PasswordInputBead.js | 1 +
.../DataItemRendererFactoryForArrayData.js | 3 ++
.../src/org/apache/flex/html/beads/ListView.js | 5 +++
.../TextItemRendererFactoryForArrayData.js | 1 +
.../controllers/ItemRendererMouseController.js | 1 +
.../ListSingleSelectionMouseController.js | 1 +
.../beads/controllers/SliderMouseController.js | 1 +
.../beads/controllers/SpinnerMouseController.js | 1 +
.../html/beads/layouts/NonVirtualBasicLayout.js | 1 +
.../layouts/NonVirtualBasicScrollingLayout.js | 1 +
.../beads/layouts/NonVirtualVerticalLayout.js | 1 +
.../NonVirtualVerticalScrollingLayout.js | 3 +-
.../ButtonBarButtonItemRenderer.js | 8 +++--
.../html/supportClasses/DataItemRenderer.js | 7 +++++
.../html/supportClasses/NonVirtualDataGroup.js | 2 ++
.../html/supportClasses/StringItemRenderer.js | 13 +++++++-
.../html/supportClasses/UIItemRendererBase.js | 16 ++++++----
.../src/org/apache/flex/html5/CheckBox.js | 4 +++
.../src/org/apache/flex/html5/ComboBox.js | 3 ++
.../FlexJS/src/org/apache/flex/html5/Label.js | 2 ++
.../src/org/apache/flex/html5/TextArea.js | 2 ++
.../src/org/apache/flex/html5/TextInput.js | 2 ++
.../src/org/apache/flex/jquery/CheckBox.js | 4 +++
.../src/org/apache/flex/jquery/RadioButton.js | 11 +++++++
.../org/apache/flex/jquery/ToggleTextButton.js | 5 +++
.../src/org/apache/flex/maps/google/Map.js | 2 ++
.../src/org/apache/flex/net/BinaryUploader.js | 20 ++++++++++++
.../src/org/apache/flex/net/HTTPService.js | 22 ++++++++++++++
.../src/org/apache/flex/utils/BinaryData.js | 5 +++
.../src/org/apache/flex/utils/Language.js | 5 ++-
.../FlexJS/src/org/apache/flex/utils/Timer.js | 6 ++++
70 files changed, 345 insertions(+), 44 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
index 1780dc3..ac31bbb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
@@ -101,6 +101,7 @@ org_apache_flex_binding_BindingBase.prototype.sourceChangeHandler = function(eve
Object.defineProperties(org_apache_flex_binding_BindingBase.prototype, {
'strand': {
+ /** @this {org_apache_flex_binding_BindingBase} */
set: function(value) {
if (this.destination == null)
this.destination = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
index ea40ea8..a9b5618 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
@@ -196,8 +196,9 @@ org_apache_flex_binding_ChainWatcher.prototype.handler = function(event) {
};
-Object.defineProperties(org_apache_flex_binding_ChainWatcher.prototype, {
+Object.defineProperties(org_apache_flex_binding_ChainBinding.prototype, {
'strand': {
+ /** @this {org_apache_flex_binding_ChainBinding} */
set: function(value) {
this.applyBinding();
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index 6723bbf..3ed2ab9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -41,6 +41,7 @@ org_apache_flex_binding_ConstantBinding.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_binding_ConstantBinding.prototype, {
'strand': {
+ /** @this {org_apache_flex_binding_ConstantBinding} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_binding_ConstantBinding, this, 'strand', value);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index 9602a63..235e156 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_binding_SimpleBinding');
goog.require('org_apache_flex_binding_BindingBase');
+goog.require('org_apache_flex_utils_Language');
@@ -70,16 +71,18 @@ org_apache_flex_binding_SimpleBinding.prototype.sourceChangeHandler = function(e
Object.defineProperties(org_apache_flex_binding_SimpleBinding.prototype, {
'strand': {
+ /** @this {org_apache_flex_binding_SimpleBinding} */
set: function(value) {
- org_apache_flex_binding_SimpleBinding.base(this, 'set_strand', value);
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_binding_SimpleBinding, this, 'strand', value);
- if (!this.source)
- return;
+ if (!this.source)
+ return;
- this.source.addEventListener(this.eventName,
- goog.bind(this.changeHandler, this));
+ this.source.addEventListener(this.eventName,
+ goog.bind(this.changeHandler, this));
- this.changeHandler();
+ this.changeHandler();
}
}
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
index 2f23281..872c9fc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
@@ -71,9 +71,11 @@ org_apache_flex_charts_core_ChartBase.prototype.series_ = null;
Object.defineProperties(org_apache_flex_charts_core_ChartBase.prototype, {
'series': {
+ /** @this {org_apache_flex_charts_core_ChartBase} */
get: function() {
return this.series_;
},
+ /** @this {org_apache_flex_charts_core_ChartBase} */
set: function(value) {
this.series_ = value;
this.dispatchEvent(new org_apache_flex_events_Event('seriesChanged'));
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 39d7e12..77fabb7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -132,14 +132,17 @@ org_apache_flex_core_ContainerBase.prototype.setMXMLDescriptor =
Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
'MXMLDescriptor': {
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.mxmlDescriptor;
}
},
'states': {
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.states_;
},
+ /** @this {org_apache_flex_core_ContainerBase} */
set: function(s) {
this.states_ = s;
this.currentState_ = s[0].name;
@@ -156,9 +159,11 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
}
},
'currentState': {
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.currentState_;
},
+ /** @this {org_apache_flex_core_ContainerBase} */
set: function(s) {
var event = new org_apache_flex_events_ValueChangeEvent(
'currentStateChange', false, false, this.currentState_, s);
@@ -167,9 +172,11 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
}
},
'transitions': {
+ /** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.transitions_;
},
+ /** @this {org_apache_flex_core_ContainerBase} */
set: function(s) {
this.transitions_ = s;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
index 2472258..1d72fc0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
@@ -56,9 +56,11 @@ org_apache_flex_core_FilledRectangle.prototype.addedToParent = function() {
Object.defineProperties(org_apache_flex_core_FilledRectangle.prototype, {
'fillColor': {
+ /** @this {org_apache_flex_core_FilledRectangle} */
get: function() {
return this.fillColor_;
},
+ /** @this {org_apache_flex_core_FilledRectangle} */
set: function(value) {
this.fillColor_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index 813e2ed..f8acdd9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -74,39 +74,46 @@ org_apache_flex_core_FormatBase.prototype._formattedResult = '';
Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
'strand': {
+ /** @this {org_apache_flex_core_FormatBase} */
set: function(value) {
this.strand_ = value;
}
},
'propertyValue': {
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
var value = this.strand_[this.propertyName];
return value;
}
},
'propertyName': {
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
if (this._propertyName == null) {
this._propertyName = 'text';
}
return this._propertyName;
},
+ /** @this {org_apache_flex_core_FormatBase} */
set: function(value) {
this._propertyName = value;
}
},
'eventName': {
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
if (this._eventName == null) {
return this._propertyName + 'Change';
}
return this._eventName;
},
+ /** @this {org_apache_flex_core_FormatBase} */
set: function(value) {
this._eventName = value;
}
},
'formattedString': {
+ /** @this {org_apache_flex_core_FormatBase} */
get: function() {
return null;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 4c0c680..0171ef3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -132,12 +132,13 @@ org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead) {
Object.defineProperties(Event.prototype, {
- /* Hack to allow event.target expressions to work
+ /** Hack to allow event.target expressions to work
*
* @expose
* @return {Object} The wrapping object.
*/
'target': {
+ /** @this {Event} */
get: function() {
var obj = this.target;
if (!obj)
@@ -150,6 +151,7 @@ Object.defineProperties(Event.prototype, {
* @return {Object} The wrapping object.
*/
'currentTarget': {
+ /** @this {Event} */
get: function() {
return this.currentTarget.flexjs_wrapper;
}
@@ -165,6 +167,7 @@ Object.defineProperties(goog.events.BrowserEvent.prototype, {
* @return {Object} The wrapping object.
*/
'target': {
+ /** @this {goog.events.BrowserEvent} */
get: function() {
// if it is a faked event so just return the target
if (!this.event_) return this.target;
@@ -179,6 +182,7 @@ Object.defineProperties(goog.events.BrowserEvent.prototype, {
* @return {?Node|Object} The wrapping object.
*/
'currentTarget': {
+ /** @this {goog.events.BrowserEvent} */
get: function() {
// if it is a faked event so just return the currentTarget
if (!this.event_) return this.currentTarget;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
index e3d2405..4170827 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -46,6 +46,7 @@ org_apache_flex_core_ItemRendererClassFactory.
Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype, {
'strand': {
+ /** @this {org_apache_flex_core_ItemRendererClassFactory} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 85410fa..e184bdb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -341,17 +341,20 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
* @param {Array.<Object>} value The list of beads from MXML.
*/
'beads': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
this.mxmlBeads_ = value;
}
},
'numElements': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var children = this.internalChildren();
return children.length;
}
},
'parent': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var p = this.positioner.parentNode;
var wrapper = p.flexjs_wrapper;
@@ -359,9 +362,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'alpha': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(alpha) {
this.positioner.style.opacity = alpha;
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var stralpha = this.positioner.style.opacity;
var alpha = parseFloat(stralpha);
@@ -369,10 +374,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'x': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.positioner.style.position = 'absolute';
this.positioner.style.left = pixels.toString() + 'px';
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var strpixels = this.positioner.style.left;
var pixels = parseFloat(strpixels);
@@ -382,10 +389,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'y': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.positioner.style.position = 'absolute';
this.positioner.style.top = pixels.toString() + 'px';
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var strpixels = this.positioner.style.top;
var pixels = parseFloat(strpixels);
@@ -395,10 +404,12 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'width': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitWidth = pixels;
this.setWidth(pixels);
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var pixels;
var strpixels = this.positioner.style.width;
@@ -417,31 +428,37 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'explicitWidth': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitWidth_ = pixels;
if (!isNaN(pixels))
this.percentWidth_ = NaN;
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.explicitWidth_;
}
},
'percentWidth': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.percentWidth_ = pixels;
this.positioner.style.width = pixels.toString() + '%';
if (!isNaN(pixels))
this.explicitWidth_ = NaN;
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.percentWidth_;
}
},
'height': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitHeight = pixels;
this.setHeight(pixels);
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
var pixels;
var strpixels = this.positioner.style.height;
@@ -460,30 +477,36 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'explicitHeight': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitHeight_ = pixels;
if (!isNaN(pixels))
this.percentHeight_ = NaN;
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.explicitHeight_;
}
},
'percentHeight': {
+ /** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.percentHeight_ = pixels;
this.positioner.style.height = pixels.toString() + '%';
if (!isNaN(pixels))
this.explicitHeight_ = NaN;
},
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.percentHeight_;
}
},
'id': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.id;
},
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.id !== value) {
this.element.id = value;
@@ -493,9 +516,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'className': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.className;
},
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.className !== value) {
this.element.className = this.typeNames ? value + ' ' + this.typeNames : value;
@@ -505,6 +530,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'model': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
if (this.model == null) {
// addbead will set _model
@@ -520,6 +546,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
return this.model;
},
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.model !== value) {
this.addBead(value);
@@ -528,9 +555,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'style': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.style_;
},
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
if (this.style_ !== value) {
if (typeof(value) == 'string')
@@ -544,9 +573,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'visible': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.positioner.style.display !== 'none';
},
+ /** @this {org_apache_flex_core_UIBase} */
set: function(value) {
var oldValue = this.positioner.style.display !== 'none';
if (value !== oldValue) {
@@ -566,6 +597,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
},
'topMostEventDispatcher': {
+ /** @this {org_apache_flex_core_UIBase} */
get: function() {
return document.body.flexjs_wrapper;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
index 92d2054..625696d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
@@ -44,9 +44,11 @@ org_apache_flex_core_ValuesManager.prototype.valuesImpl = null;
Object.defineProperties(org_apache_flex_core_ValuesManager.prototype, {
'valuesImpl': {
+ /** @this {org_apache_flex_core_ValuesManager} */
get: function() {
return org_apache_flex_core_ValuesManager.valuesImpl;
},
+ /** @this {org_apache_flex_core_ValuesManager} */
set: function(value) {
org_apache_flex_core_ValuesManager.valuesImpl = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/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 bb8cb96..2a53d59 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -160,6 +160,7 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
* @return {Array} An array of descriptors.
*/
'MXMLDescriptor': {
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.MXMLDescriptor;
}
@@ -168,14 +169,17 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
* @return {Object} The application model.
*/
'applicationModel': {
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.applicationModel;
}
},
'states': {
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.states_;
},
+ /** @this {org_apache_flex_core_ViewBase} */
set: function(value) {
this.states_ = value;
this.currentState_ = value[0].name;
@@ -192,9 +196,11 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
}
},
'currentState': {
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.currentState_;
},
+ /** @this {org_apache_flex_core_ViewBase} */
set: function(value) {
var event = new org_apache_flex_events_ValueChangeEvent(
'currentStateChange', false, false, this.currentState_, value);
@@ -203,9 +209,11 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
}
},
'transitions': {
+ /** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.transitions_;
},
+ /** @this {org_apache_flex_core_ViewBase} */
set: function(value) {
this.transitions_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
index e1b0014..1ad11ea 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
@@ -48,9 +48,11 @@ org_apache_flex_core_graphics_Circle.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_Circle.prototype, {
'radius': {
+ /** @this {org_apache_flex_core_graphics_Circle} */
set: function(v) {
this.radius_ = v;
},
+ /** @this {org_apache_flex_core_graphics_Circle} */
get: function() {
return this.radius_;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
index fa4b249..d8f42b8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
@@ -66,9 +66,11 @@ org_apache_flex_core_graphics_GradientBase.prototype._rotation = 0.0;
Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
'entries': {
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._entries;
},
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._entries = value;
}
@@ -82,30 +84,37 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
* @return {number}
*/
'rotation': {
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._rotation;
},
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._rotation = value;
}
},
'x': {
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._x;
},
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._x = value;
}
},
'y': {
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._y = value;
},
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._y;
}
},
'newId': {
+ /** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
index 318149d..126f718 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
@@ -57,9 +57,11 @@ org_apache_flex_core_graphics_GradientEntry.prototype._ratio = 0x000000;
Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
'alpha': {
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._alpha;
},
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
set: function(value) {
var /** @type {number} */ oldValue = this._alpha;
if (value != oldValue) {
@@ -68,9 +70,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
}
},
'color': {
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._color;
},
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
set: function(value) {
var /** @type {number} */ oldValue = this._color;
if (value != oldValue) {
@@ -79,9 +83,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
}
},
'ratio': {
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._ratio;
},
+ /** @this {org_apache_flex_core_graphics_GradientEntry} */
set: function(value) {
this._ratio = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
index b442bc0..4bf01b3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
@@ -88,14 +88,16 @@ org_apache_flex_core_graphics_GraphicShape.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_graphics_GraphicShape' }] };
-Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
+Object.defineProperties(org_apache_flex_core_graphics_GraphicShape.prototype, {
/**
* @type {org_apache_flex_core_graphics_IFill}
*/
'fill': {
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
get: function() {
return this.fill_;
},
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
set: function(value) {
this.fill_ = value;
}
@@ -104,9 +106,11 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
* @type {org_apache_flex_core_graphics_IStroke} The stroke object.
*/
'stroke': {
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
get: function() {
return this.stroke_;
},
+ /** @this {org_apache_flex_core_graphics_GraphicShape} */
set: function(value) {
this.stroke_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
index d3b2160..ead8551 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
@@ -51,11 +51,13 @@ org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = fu
Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototype, {
'numChildren': {
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
get: function() {
return this.internalChildren().length;
}
},
'width': {
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_core_graphics_GraphicsContainer, this, 'width', value);
@@ -64,6 +66,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
}
},
'height': {
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_core_graphics_GraphicsContainer, this, 'height', value);
@@ -72,6 +75,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
}
},
'x': {
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_core_graphics_GraphicsContainer, this, 'x', value);
@@ -82,9 +86,10 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
}
},
'y': {
+ /** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
- org_apache_flex_core_graphics_GraphicsContainerthis, 'set_y', value);
+ org_apache_flex_core_graphics_GraphicsContainer, this, 'y', value);
this.element.setAttribute('y', String(value) + 'px');
this.element.style.position = 'absolute';
this.element.style.top = String(value) + 'px';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
index 8afd8fa..006321a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
@@ -44,9 +44,11 @@ org_apache_flex_core_graphics_LinearGradient.prototype._scaleX = 1.0;
Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
'scaleX': {
+ /** @this {org_apache_flex_core_graphics_LinearGradient} */
get: function() {
return this._scaleX;
},
+ /** @this {org_apache_flex_core_graphics_LinearGradient} */
set: function(value) {
this._scaleX = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
index 5477a8d..f55ac3b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
@@ -45,11 +45,13 @@ org_apache_flex_core_graphics_Path.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_graphics_Path' }] };
-Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
+Object.defineProperties(org_apache_flex_core_graphics_Path.prototype, {
'data': {
+ /** @this {org_apache_flex_core_graphics_Path} */
set: function(v) {
this.data_ = v;
},
+ /** @this {org_apache_flex_core_graphics_Path} */
get: function() {
return this.data_;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
index cf20ff4..2f34d10 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
@@ -51,17 +51,21 @@ org_apache_flex_core_graphics_SolidColor.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColor.prototype, {
'color': {
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
get: function() {
return this.color_;
},
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
set: function(value) {
this.color_ = value;
}
},
'alpha': {
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
get: function() {
return this.alpha_;
},
+ /** @this {org_apache_flex_core_graphics_SolidColor} */
set: function(value) {
this.alpha_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
index 7f81326..dee2e7f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
@@ -57,25 +57,31 @@ org_apache_flex_core_graphics_SolidColorStroke.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype, {
'color': {
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.color_;
},
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
set: function(value) {
this.color_ = value;
}
},
'alpha': {
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.alpha_;
},
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
set: function(value) {
this.alpha_ = value;
}
},
'weight': {
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.weight_;
},
+ /** @this {org_apache_flex_core_graphics_SolidColorStroke} */
set: function(value) {
this.weight_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
index 0e517de..d351865 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
@@ -49,9 +49,11 @@ org_apache_flex_createjs_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
'text': {
+ /** @this {org_apache_flex_createjs_Label} */
get: function() {
return this.element.text;
},
+ /** @this {org_apache_flex_createjs_Label} */
set: function(value) {
this.element.text = value;
this.element.getStage().update();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
index 4113d9b..4d61e01 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
@@ -56,35 +56,41 @@ org_apache_flex_createjs_core_UIBase.prototype.createElement =
};
-Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
+Object.defineProperties(org_apache_flex_createjs_core_UIBase.prototype, {
'x': {
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.x = pixels;
this.element.getStage().update();
}
},
'y': {
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.y = pixels;
this.element.getStage().update();
}
},
'width': {
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.width = pixels;
this.element.getStage().update();
}
},
'height': {
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.height = pixels;
this.element.getStage().update();
}
},
'id': {
+ /** @this {org_apache_flex_createjs_core_UIBase} */
get: function() {
return this.name;
},
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(value) {
if (this.name !== value) {
this.element.name = value;
@@ -94,9 +100,11 @@ Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
}
},
'model': {
+ /** @this {org_apache_flex_createjs_core_UIBase} */
get: function() {
return this.model;
},
+ /** @this {org_apache_flex_createjs_core_UIBase} */
set: function(value) {
if (this.model !== value) {
this.addBead(value);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
index 74203c6..b9fe8e8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
@@ -71,18 +71,21 @@ org_apache_flex_events_Event.prototype.init = function(type) {
};
-Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
+Object.defineProperties(org_apache_flex_events_Event.prototype, {
'type': {
+ /** @this {org_apache_flex_events_Event} */
get: function() {
return this.type;
}
},
'target': {
+ /** @this {org_apache_flex_events_Event} */
get: function() {
return this.target;
}
},
'currentTarget': {
+ /** @this {org_apache_flex_events_Event} */
get: function() {
return this.currentTarget;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index 6c6499f..d36c65c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -118,22 +118,27 @@ org_apache_flex_html_Alert.show =
Object.defineProperties(org_apache_flex_html_Alert.prototype, {
'title': {
+ /** @this {org_apache_flex_html_Alert} */
get: function() {
return this.titleBar.title;
},
+ /** @this {org_apache_flex_html_Alert} */
set: function(value) {
this.titleBar.title = value;
}
},
'text': {
+ /** @this {org_apache_flex_html_Alert} */
get: function() {
return this.message.text;
},
+ /** @this {org_apache_flex_html_Alert} */
set: function(value) {
this.message.text = value;
}
},
'flags': {
+ /** @this {org_apache_flex_html_Alert} */
get: function() {
return this.flags;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
index ca3fa21..c428808 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
@@ -63,17 +63,21 @@ org_apache_flex_html_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
'text': {
+ /** @this {org_apache_flex_html_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
},
+ /** @this {org_apache_flex_html_CheckBox} */
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
}
},
'selected': {
+ /** @this {org_apache_flex_html_CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
},
+ /** @this {org_apache_flex_html_CheckBox} */
set: function(value) {
this.element.childNodes.item(0).checked = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
index 231e80b..b45b973 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
@@ -180,22 +180,13 @@ org_apache_flex_html_ComboBox.prototype.buttonClicked =
};
-/**
- * @override
- * @expose
- * @param {Array.<Object>} value The collection of data.
- */
-org_apache_flex_html_ComboBox.prototype.set_dataProvider =
- function(value) {
- this.dataProvider = value;
-};
-
-
-Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
+Object.defineProperties(org_apache_flex_html_ComboBox.prototype, {
'text': {
+ /** @this {org_apache_flex_html_ComboBox} */
get: function() {
return this.element.childNodes.item(0).value;
},
+ /** @this {org_apache_flex_html_ComboBox} */
set: function(value) {
this.element.childNodes.item(0).value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
index e630a12..604dfd0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
@@ -64,18 +64,22 @@ org_apache_flex_html_ImageAndTextButton.prototype.createElement =
Object.defineProperties(org_apache_flex_html_ImageAndTextButton.prototype, {
'text': {
+ /** @this {org_apache_flex_html_ImageAndTextButton} */
get: function() {
return this._text;
},
+ /** @this {org_apache_flex_html_ImageAndTextButton} */
set: function(value) {
this._text = value;
this.setInnerHTML();
}
},
'image': {
+ /** @this {org_apache_flex_html_ImageAndTextButton} */
get: function() {
return this._src;
},
+ /** @this {org_apache_flex_html_ImageAndTextButton} */
set: function(value) {
this._src = value;
this.setInnerHTML();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
index 7d8e049..2569272 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
@@ -45,17 +45,21 @@ org_apache_flex_html_Label.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_Label.prototype, {
'text': {
+ /** @this {org_apache_flex_html_Label} */
get: function() {
return this.element.innerHTML;
},
+ /** @this {org_apache_flex_html_Label} */
set: function(value) {
this.element.innerHTML = value;
}
},
'html': {
+ /** @this {org_apache_flex_html_Label} */
get: function() {
return this.element.innerHTML;
},
+ /** @this {org_apache_flex_html_Label} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
index 4df1078..ce51916 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
@@ -45,17 +45,21 @@ org_apache_flex_html_MultilineLabel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_MultilineLabel.prototype, {
'text': {
+ /** @this {org_apache_flex_html_MultilineLabel} */
get: function() {
return this.element.innerHTML;
},
+ /** @this {org_apache_flex_html_MultilineLabel} */
set: function(value) {
this.element.innerHTML = value;
}
},
'html': {
+ /** @this {org_apache_flex_html_MultilineLabel} */
get: function() {
return this.element.innerHTML;
},
+ /** @this {org_apache_flex_html_MultilineLabel} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
index 0ee904c..8778def 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
@@ -140,25 +140,31 @@ org_apache_flex_html_Panel.prototype.addedToParent =
Object.defineProperties(org_apache_flex_html_Panel.prototype, {
'showCloseButton': {
+ /** @this {org_apache_flex_html_Panel} */
get: function() {
return this.model.showCloseButton;
},
+ /** @this {org_apache_flex_html_Panel} */
set: function(value) {
this.model.showCloseButton = value;
}
},
'title': {
+ /** @this {org_apache_flex_html_Panel} */
get: function() {
return this.model.title;
},
+ /** @this {org_apache_flex_html_Panel} */
set: function(value) {
this.model.title = value;
}
},
'controlBar': {
+ /** @this {org_apache_flex_html_Panel} */
get: function() {
return this.controlBarChildren;
},
+ /** @this {org_apache_flex_html_Panel} */
set: function(value) {
this.controlBarChildren = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
index 25f3b50..8514420 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
@@ -89,6 +89,7 @@ org_apache_flex_html_RadioButton.prototype.initSkin =
Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
'id': {
+ /** @this {org_apache_flex_html_RadioButton} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_html_RadioButton, this, 'id', value);
this.labelFor.id = value;
@@ -96,38 +97,47 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
}
},
'groupName': {
+ /** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.input.name;
},
+ /** @this {org_apache_flex_html_RadioButton} */
set: function(value) {
this.input.name = value;
}
},
'text': {
+ /** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.textNode.nodeValue;
},
+ /** @this {org_apache_flex_html_RadioButton} */
set: function(value) {
this.textNode.nodeValue = value;
}
},
'selected': {
+ /** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.input.checked;
},
+ /** @this {org_apache_flex_html_RadioButton} */
set: function(value) {
this.input.checked = value;
}
},
'value': {
+ /** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.input.value;
},
+ /** @this {org_apache_flex_html_RadioButton} */
set: function(value) {
this.input.value = value;
}
},
'selectedValue': {
+ /** @this {org_apache_flex_html_RadioButton} */
get: function() {
var buttons, groupName, i, n;
@@ -142,6 +152,7 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
}
return null;
},
+ /** @this {org_apache_flex_html_RadioButton} */
set: function(value) {
var buttons, groupName, i, n;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
index b5d3d59..40954c1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
@@ -99,9 +99,11 @@ org_apache_flex_html_Spinner.prototype.set_value =
Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
'minimum': {
+ /** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.minimum_;
},
+ /** @this {org_apache_flex_html_Spinner} */
set: function(value) {
if (value != this.minimum_) {
this.minimum_ = value;
@@ -110,9 +112,11 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
}
},
'maximum': {
+ /** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.maximum_;
},
+ /** @this {org_apache_flex_html_Spinner} */
set: function(value) {
if (value != this.maximum_) {
this.maximum_ = value;
@@ -121,9 +125,11 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
}
},
'snapInterval': {
+ /** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.snapInterval_;
},
+ /** @this {org_apache_flex_html_Spinner} */
set: function(value) {
if (value != this.snapInterval_) {
this.snapInterval_ = value;
@@ -132,9 +138,11 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
}
},
'stepSize': {
+ /** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.stepSize_;
},
+ /** @this {org_apache_flex_html_Spinner} */
set: function(value) {
if (value != this.stepSize_) {
this.stepSize_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
index 8209a86..dd61f60 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
@@ -55,9 +55,11 @@ org_apache_flex_html_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html_TextArea.prototype, {
'text': {
+ /** @this {org_apache_flex_html_TextArea} */
get: function() {
return this.element.value;
},
+ /** @this {org_apache_flex_html_TextArea} */
set: function(value) {
this.element.value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
index 25d16a4..d84c9f7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
@@ -41,9 +41,11 @@ org_apache_flex_html_TextButton.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
'text': {
+ /** @this {org_apache_flex_html_TextButton} */
get: function() {
return this.element.innerHTML;
},
+ /** @this {org_apache_flex_html_TextButton} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
index 7dde595..5e11d7e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
@@ -57,11 +57,13 @@ org_apache_flex_html_TextInput.prototype.createElement = function() {
};
-Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
+Object.defineProperties(org_apache_flex_html_TextInput.prototype, {
'text': {
+ /** @this {org_apache_flex_html_TextInput} */
get: function() {
return this.element.value;
},
+ /** @this {org_apache_flex_html_TextInput} */
set: function(value) {
this.element.value = value;
this.dispatchEvent(new org_apache_flex_events_Event('textChange'));
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
index 5fd5cb8..0ab348e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
@@ -47,19 +47,23 @@ org_apache_flex_html_ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_ToggleTextButton'}] };
-Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
+Object.defineProperties(org_apache_flex_html_ToggleTextButton.prototype, {
'text': {
+ /** @this {org_apache_flex_html_ToggleTextButton} */
get: function() {
return this.element.innerHTML;
},
+ /** @this {org_apache_flex_html_ToggleTextButton} */
set: function(value) {
this.element.innerHTML = value;
}
},
'selected': {
+ /** @this {org_apache_flex_html_ToggleTextButton} */
get: function() {
return this.selected_;
},
+ /** @this {org_apache_flex_html_ToggleTextButton} */
set: function(value) {
if (this.selected_ != value) {
this.selected_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
index 5efba76..c8e925c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
@@ -40,12 +40,9 @@ org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype.FLEXJS_CLASS
qName: 'org_apache_flex_html_accessories_NumericOnlyTextInputBead' }] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
Object.defineProperties(org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_accessories_NumericOnlyTextInputBead} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
index 62dc9ac..460aff9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
@@ -42,6 +42,7 @@ org_apache_flex_html_accessories_PasswordInputBead.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_accessories_PasswordInputBead.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_accessories_PasswordInputBead} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
index f64fab4..451d209 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
@@ -60,6 +60,7 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */
set: function(value) {
this.strand_ = value;
@@ -87,6 +88,7 @@ Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArr
}
},
'itemRendererClass': {
+ /** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */
get: function() {
if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) {
var c = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRenderer');
@@ -96,6 +98,7 @@ Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArr
}
return this.itemRendererClass_;
},
+ /** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */
set: function(value) {
this.itemRendererClass_ = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index 2dfc4d1..135a1ab 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -143,23 +143,28 @@ org_apache_flex_html_beads_ListView.prototype.
Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
'contentView': {
+ /** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return this.dataGroup_;
}
},
'border': {
+ /** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return null;
}
},
'vScrollBar': {
+ /** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return null;
},
+ /** @this {org_apache_flex_html_beads_ListView} */
set: function(value) {
}
},
'resizeableView': {
+ /** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return this;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
index f021952..e88dedd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
@@ -49,6 +49,7 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
Object.defineProperties(org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_TextItemRendererFactoryForArrayData} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
index b376715..739e553 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
@@ -39,6 +39,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.FLE
Object.defineProperties(org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_controllers_ItemRendererMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
index 81c8798..43b5452 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
@@ -41,6 +41,7 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
Object.defineProperties(org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
index 258c34d..6e671a7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
@@ -39,6 +39,7 @@ org_apache_flex_html_beads_controllers_SliderMouseController.prototype.FLEXJS_CL
Object.defineProperties(org_apache_flex_html_beads_controllers_SliderMouseController.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_controllers_SliderMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
index 17c9607..ec14063 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
@@ -38,6 +38,7 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype.FLEXJS_C
Object.defineProperties(org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_controllers_SpinnerMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index 3fc659b..b8dd72f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@ -45,6 +45,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype.FLEXJS_CLASS_
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_layouts_NonVirtualBasicLayout} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
index 4b0fe39..9d5ac8f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
@@ -42,6 +42,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype.FLEX
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
index d7ecf91..caf04cf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
@@ -42,6 +42,7 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype.FLEXJS_CLA
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
index 94a102c..a0f1a16 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
@@ -39,8 +39,9 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype.F
interfaces: [org_apache_flex_core_IBeadLayout] };
-Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, {
+Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
index b8c2be9..341972a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
@@ -16,6 +16,7 @@ goog.provide('org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer');
goog.require('org_apache_flex_html_beads_controllers_ItemRendererMouseController');
goog.require('org_apache_flex_html_supportClasses_DataItemRenderer');
+goog.require('org_apache_flex_utils_Language');
@@ -72,17 +73,20 @@ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
set: function(value) {
this.strand_ = value;
},
+ /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
get: function() {
return this.strand_;
}
},
'data': {
+ /** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
set: function(value) {
-
- org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.base(this, 'set_data', value);
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer, this, 'data', value);
if (value.hasOwnProperty('label')) {
this.button.innerHTML = value.label;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
index e953520..4293cf2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
@@ -71,27 +71,33 @@ org_apache_flex_html_supportClasses_DataItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.prototype, {
'itemRendererParent': {
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
get: function() {
return this.rendererParent_;
},
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.rendererParent_ = value;
}
},
'index': {
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.index_ = value;
}
},
'dataField': {
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.dataField_ = value;
},
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
get: function() {
return this.dataField_;
}
},
'selected': {
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.selected_ = value;
@@ -103,6 +109,7 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
}
},
'hovered': {
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.hovered_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
index 3194a72..0e68832 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
@@ -46,11 +46,13 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype.FLEXJS_CLASS_I
Object.defineProperties(org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
set: function(value) {
this.strand_ = value;
}
},
'numElements': {
+ /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
get: function() {
var n = this.element.childNodes.length;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/19f8cb28/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
index 906a70d..f8217bb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -18,6 +18,7 @@ goog.require('org_apache_flex_core_IItemRenderer');
goog.require('org_apache_flex_core_UIBase');
goog.require('org_apache_flex_html_beads_controllers_ItemRendererMouseController');
goog.require('org_apache_flex_html_supportClasses_DataItemRenderer');
+goog.require('org_apache_flex_utils_Language');
@@ -72,37 +73,46 @@ org_apache_flex_html_supportClasses_StringItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.prototype, {
'strand': {
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.strand_ = value;
},
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.strand_;
}
},
'itemRendererParent': {
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.rendererParent_;
},
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.rendererParent_ = value;
}
},
'index': {
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.index_ = value;
}
},
'text': {
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.element.innerHTML = value;
},
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.element.innerHTML;
}
},
'data': {
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
- org_apache_flex_html_supportClasses_StringItemRenderer.base(this, 'set_data', value);
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_html_supportClasses_StringItemRenderer, this, 'data', value);
if (this.labelField) {
this.element.innerHTML = String(value[this.labelField]);
@@ -116,6 +126,7 @@ Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.p
this.element.innerHTML = String(value);
}
},
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.element.innerHTML;
}
[15/47] git commit: [flex-asjs] [refs/heads/develop] - missed a few
@this
Posted by ah...@apache.org.
missed a few @this
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f226437b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f226437b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f226437b
Branch: refs/heads/develop
Commit: f226437ba173b55fababe99889961d280369fd9c
Parents: 7bb9e9a
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 17 10:14:21 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 17 10:14:21 2015 -0700
----------------------------------------------------------------------
.../apache/flex/html/beads/ScrollingContainerView.js | 12 ++++++------
.../flex/html/supportClasses/UIItemRendererBase.js | 12 ++++++++++++
2 files changed, 18 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f226437b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
index ef3161a..ae6c45c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
@@ -47,29 +47,29 @@ org_apache_flex_html_beads_ScrollingContainerView.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_ScrollingContainerView.prototype, {
'contentView': {
- /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ /** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand;
}
},
'resizableView': {
- /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ /** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand;
}
},
'verticalScrollPosition': {
- /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ /** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand.scrollTop;
},
- /** @this {org_apache_flex_html_beads_SliderThumbView} */
- set: function(value) {
+ /** @this {org_apache_flex_html_beads_ScrollingContainerView} */
+ set: function(value) {
this._strand.scrollTop = value;
}
},
'maxVerticalScrollPosition': {
- /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ /** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand.scrollHeight - this._strand.clientHeight;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f226437b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
index 83bd86b..dba179c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
@@ -84,49 +84,61 @@ Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.p
}
},
'data': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.data_;
},
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
set: function(value) {
this.data_ = value;
}
},
'labelField': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.labelField_;
},
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
set: function(value) {
this.labelField_ = value;
}
},
'index': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.index_;
},
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
set: function(value) {
this.index_ = value;
}
},
'hovered': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.hovered_;
},
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
set: function(value) {
this.hovered_ = value;
}
},
'selected': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.selected_;
},
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
set: function(value) {
this.selected_ = value;
}
},
'down': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.down_;
},
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
set: function(value) {
this.down_ = value;
}
[06/47] git commit: [flex-asjs] [refs/heads/develop] - manual
conversion to Object.defineProperties. Needs major cleanup before it will
work
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
index 81f80dd..de728ce 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
@@ -42,20 +42,13 @@ org_apache_flex_html5_TextArea.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html5_TextArea.prototype.get_text = function() {
- return this.element.value;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html5_TextArea.prototype.set_text =
- function(value) {
- this.element.value = value;
-};
+Object.defineProperties(org_apache_flex_html5_TextArea.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.value;
+ },
+ set: function(value) {
+ this.element.value = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
index 12ddecc..e5226c8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
@@ -43,20 +43,13 @@ org_apache_flex_html5_TextInput.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html5_TextInput.prototype.get_text = function() {
- return this.element.value;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html5_TextInput.prototype.set_text =
- function(value) {
- this.element.value = value;
-};
+Object.defineProperties(org_apache_flex_html5_TextInput.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.value;
+ },
+ set: function(value) {
+ this.element.value = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
index f3052ef..cfd452c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
@@ -61,40 +61,21 @@ org_apache_flex_jquery_CheckBox.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_jquery_CheckBox.prototype.get_text = function() {
- return this.element.childNodes.item(1).nodeValue;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_jquery_CheckBox.prototype.set_text =
- function(value) {
- this.element.childNodes.item(1).nodeValue = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_jquery_CheckBox.prototype.get_selected =
- function() {
- return this.element.childNodes.item(0).checked;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_jquery_CheckBox.prototype.set_selected =
- function(value) {
- this.element.childNodes.item(0).checked = value;
-};
+Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
+ 'text': {
+ get: function() {
+ return this.element.childNodes.item(1).nodeValue;
+ },
+ set: function(value) {
+ this.element.childNodes.item(1).nodeValue = value;
+ }
+ },
+ 'selected': {
+ get: function() {
+ return this.element.childNodes.item(0).checked;
+ },
+ set: function(value) {
+ this.element.childNodes.item(0).checked = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
index 3584ce9..648a895 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
@@ -99,134 +99,74 @@ org_apache_flex_jquery_RadioButton.prototype.addedToParent =
};
-/**
- * @override
- */
-org_apache_flex_jquery_RadioButton.prototype.set_id = function(value) {
- org_apache_flex_jquery_RadioButton.base(this, 'set_id', value);
- this.labelFor.id = value;
- this.labelFor.htmlFor = value;
-};
-
-
-/**
- * @expose
- * @return {?string} The groupName getter.
- */
-org_apache_flex_jquery_RadioButton.prototype.get_groupName =
- function() {
- return this.radioGroupName;
-};
-
-
-/**
- * @expose
- * @param {string} value The groupName setter.
- */
-org_apache_flex_jquery_RadioButton.prototype.set_groupName =
- function(value) {
-
- this.radioGroupName = value;
- this.input.name = value;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_jquery_RadioButton.prototype.get_text =
- function() {
- return this.labelFor.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_jquery_RadioButton.prototype.set_text =
- function(value) {
- this.labelFor.innerHTML = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_jquery_RadioButton.prototype.get_selected =
- function() {
- return this.input.checked;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_jquery_RadioButton.prototype.set_selected =
- function(value) {
- this.input.checked = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The value getter.
- */
-org_apache_flex_jquery_RadioButton.prototype.get_value =
- function() {
- return this.input.value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The value setter.
- */
-org_apache_flex_jquery_RadioButton.prototype.set_value =
- function(value) {
- this.input.value = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The value of the selected RadioButton.
- */
-org_apache_flex_jquery_RadioButton.prototype.get_selectedValue =
- function() {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
-
- for (i = 0; i < n; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
- }
- return null;
-};
-
-
-/**
- * @expose
- * @param {Object} value The value of the selected RadioButton.
- */
-org_apache_flex_jquery_RadioButton.prototype.set_selectedValue =
- function(value) {
- var buttons, groupName, i, n;
-
- groupName = this.input.name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].value === value) {
- buttons[i].checked = true;
- break;
- }
- }
-};
+Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
+ 'id': {
+ set: function(value) {
+ org_apache_flex_jquery_RadioButton.base(this, 'set_id', value);
+ this.labelFor.id = value;
+ this.labelFor.htmlFor = value;
+ }
+ },
+ 'groupName': {
+ get: function() {
+ return this.radioGroupName;
+ },
+ set: function(value) {
+ this.radioGroupName = value;
+ this.input.name = value;
+ }
+ },
+ 'text': {
+ get: function() {
+ return this.labelFor.innerHTML;
+ },
+ set: function(value) {
+ this.labelFor.innerHTML = value;
+ }
+ },
+ 'selected': {
+ get: function() {
+ return this.input.checked;
+ },
+ set: function(value) {
+ this.input.checked = value;
+ }
+ },
+ 'value': {
+ get: function() {
+ return this.input.value;
+ },
+ set: function(value) {
+ this.input.value = value;
+ }
+ },
+ 'selectedValue': {
+ get: function() {
+ var buttons, groupName, i, n;
+
+ groupName = this.input.name;
+ buttons = document.getElementsByName(groupName);
+ n = buttons.length;
+
+ for (i = 0; i < n; i++) {
+ if (buttons[i].checked) {
+ return buttons[i].value;
+ }
+ }
+ return null;
+ },
+ set: function(value) {
+ var buttons, groupName, i, n;
+
+ groupName = this.input.name;
+ buttons = document.getElementsByName(groupName);
+ n = buttons.length;
+ for (i = 0; i < n; i++) {
+ if (buttons[i].value === value) {
+ buttons[i].checked = true;
+ break;
+ }
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index cb94fd3..a6cc30c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -92,66 +92,44 @@ org_apache_flex_jquery_ToggleTextButton.prototype.addedToParent =
};
-/**
- * @override
- */
-org_apache_flex_jquery_ToggleTextButton.prototype.set_id = function(value) {
- org_apache_flex_jquery_ToggleTextButton.base(this, 'set_id', value);
- this.labelFor.id = value;
- this.labelFor.htmlFor = value;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_jquery_ToggleTextButton.prototype.get_text = function() {
- return this.labelFor.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_jquery_ToggleTextButton.prototype.set_text =
- function(value) {
- this.labelFor.innerHTML = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_jquery_ToggleTextButton.prototype.get_selected =
- function() {
- return this.input.selected_;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_jquery_ToggleTextButton.prototype.set_selected =
- function(value) {
- if (this.input.selected_ != value) {
- this.inputselected_ = value;
-/*
- var className = this.className;
- if (value) {
- if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
- this.className = className.substring(0, className.length - this.SELECTED.length);
- }
- else {
- if (className.indexOf(this.SELECTED) == -1)
- this.className = className + this.SELECTED;
- }
-*/
- }
-};
+Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
+ 'id': {
+ set: function(value) {
+ org_apache_flex_jquery_ToggleTextButton.base(this, 'set_id', value);
+ this.labelFor.id = value;
+ this.labelFor.htmlFor = value;
+ }
+ },
+ 'text': {
+ get: function() {
+ return this.labelFor.innerHTML;
+ },
+ set: function(value) {
+ this.labelFor.innerHTML = value;
+ }
+ },
+ 'selected': {
+ get: function() {
+ return this.input.selected_;
+ },
+ set: function(value) {
+ if (this.input.selected_ != value) {
+ this.inputselected_ = value;
+ /*
+ var className = this.className;
+ if (value) {
+ if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
+ this.className = className.substring(0, className.length - this.SELECTED.length);
+ }
+ else {
+ if (className.indexOf(this.SELECTED) == -1)
+ this.className = className + this.SELECTED;
+ }
+ */
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
index eb99fc6..78972b5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
@@ -79,23 +79,18 @@ org_apache_flex_maps_google_Map.prototype.createElement =
};
-/**
- * @expose
- * @param {String} value Google API dev token.
- */
-org_apache_flex_maps_google_Map.prototype.set_token = function(value) {
- this.token = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The marker that was last selected.
- */
-org_apache_flex_maps_google_Map.prototype.get_selectedMarker =
-function() {
- return this._selectedMarker;
-};
+Object.defineProperties(org_apache_flex_maps_google_Map.prototype, {
+ 'token': {
+ set: function(value) {
+ this.token = value;
+ }
+ },
+ 'selectedMarker': {
+ get: function() {
+ return this._selectedMarker;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
index 2df3b82..496b681 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
@@ -129,167 +129,116 @@ org_apache_flex_net_BinaryUploader.HTTP_METHOD_PUT = 'PUT';
org_apache_flex_net_BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
-/**
- * @expose
- * @return {string} value The data.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_data = function() {
- return this.element.responseText;
-};
-
-
-/**
- * @expose
- * @return {org_apache_flex_utils_BinaryData} value The binary Data.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_binaryData = function() {
- return this.binaryData_;
-};
-
-
-/**
- * @expose
- * @param {org_apache_flex_utils_BinaryData} value The binary Data.
- */
-org_apache_flex_net_BinaryUploader.prototype.set_binaryData = function(value) {
- this.binaryData_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} value The contentType.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_contentType = function() {
- return this.contentType_;
-};
-
-
-/**
- * @expose
- * @param {string} value The contentType.
- */
-org_apache_flex_net_BinaryUploader.prototype.set_contentType = function(value) {
- this.contentType_ = value;
-};
-
-
-/**
- * @expose
- * @return {Array} value The array of HTTPHeaders.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_headers = function() {
- if (this.headers_ === 'undefined') {
- this.headers_ = [];
- }
-
- return this.headers_;
-};
-
-
-/**
- * @expose
- * @param {Array} value The array of HTTPHeaders.
- */
-org_apache_flex_net_BinaryUploader.prototype.set_headers = function(value) {
- this.headers_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} value The method.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_method = function() {
- return this.method_;
-};
-
-
-/**
- * @expose
- * @param {string} value The method.
- */
-org_apache_flex_net_BinaryUploader.prototype.set_method = function(value) {
- this.method_ = value;
-};
-
-
-/**
- * @expose
- * @return {Array} value The array of HTTPHeaders.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_responseHeaders = function() {
- var allHeaders, c, hdr, i, n, part1, part2;
-
- if (typeof this.responseHeaders_ === 'undefined') {
- allHeaders = this.element.getAllResponseHeaders();
- this.responseHeaders_ = allHeaders.split('\n');
- n = this.responseHeaders_.length;
- for (i = 0; i < n; i++) {
- hdr = this.responseHeaders_[i];
- c = hdr.indexOf(':');
- part1 = hdr.substring(0, c);
- part2 = hdr.substring(c + 2);
- this.responseHeaders_[i] =
- new org_apache_flex_net_HTTPHeader(part1, part2);
- }
- }
- return this.responseHeaders_;
-};
-
-
-/**
- * @expose
- * @return {string} value The url.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_responseURL = function() {
- return this.responseURL_;
-};
-
-
-/**
- * @expose
- * @return {Number} value The status.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_status = function() {
- return this.status_;
-};
-
-
-/**
- * @expose
- * @return {Number} value The timeout.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_timeout = function() {
- return this.timeout_;
-};
-
-
-/**
- * @expose
- * @param {Number} value The timeout.
- */
-org_apache_flex_net_BinaryUploader.prototype.set_timeout = function(value) {
- this.timeout_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} value The url.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_url = function() {
- return this.url_;
-};
-
-
-/**
- * @expose
- * @param {string} value The url to fetch.
- */
-org_apache_flex_net_BinaryUploader.prototype.set_url = function(value) {
- this.url_ = value;
-};
+Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
+ 'data': {
+ get: function() {
+ return this.element.responseText;
+ }
+ },
+ 'binaryData': {
+ get: function() {
+ return this.binaryData_;
+ },
+ set: function(value) {
+ this.binaryData_ = value;
+ }
+ },
+ 'contentType': {
+ get: function() {
+ return this.contentType_;
+ },
+ set: function(value) {
+ this.contentType_ = value;
+ }
+ },
+ 'headers': {
+ get: function() {
+ if (this.headers_ === 'undefined') {
+ this.headers_ = [];
+ }
+
+ return this.headers_;
+ },
+ set: function(value) {
+ this.headers_ = value;
+ }
+ },
+ 'method': {
+ get: function() {
+ return this.method_;
+ },
+ set: function(value) {
+ this.method_ = value;
+ }
+ },
+ 'responseHeaders': {
+ get: function() {
+ var allHeaders, c, hdr, i, n, part1, part2;
+
+ if (typeof this.responseHeaders_ === 'undefined') {
+ allHeaders = this.element.getAllResponseHeaders();
+ this.responseHeaders_ = allHeaders.split('\n');
+ n = this.responseHeaders_.length;
+ for (i = 0; i < n; i++) {
+ hdr = this.responseHeaders_[i];
+ c = hdr.indexOf(':');
+ part1 = hdr.substring(0, c);
+ part2 = hdr.substring(c + 2);
+ this.responseHeaders_[i] =
+ new org_apache_flex_net_HTTPHeader(part1, part2);
+ }
+ }
+ return this.responseHeaders_;
+ }
+ },
+ 'responseURL': {
+ get: function() {
+ return this.responseURL_;
+ }
+ },
+ 'status': {
+ get: function() {
+ return this.status_;
+ }
+ },
+ 'timeout': {
+ get: function() {
+ return this.timeout_;
+ },
+ set: function(value) {
+ this.timeout_ = value;
+ }
+ },
+ 'url': {
+ get: function() {
+ return this.url_;
+ },
+ set: function(value) {
+ this.url_ = value;
+ }
+ },
+ 'id': {
+ get: function() {
+ return this.id;
+ },
+ set: function(value) {
+ if (this.id !== value) {
+ this.id = value;
+ this.dispatchEvent('idChanged');
+ }
+ }
+ },
+ 'MXMLDescriptor': {
+ get: function() {
+ return null;
+ }
+ },
+ 'MXMLProperties': {
+ get: function() {
+ return null;
+ }
+ }
+});
/**
@@ -369,45 +318,6 @@ org_apache_flex_net_BinaryUploader.prototype.id = null;
/**
- * @expose
- * @return {string} The id.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_id = function() {
- return this.id;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new id.
- */
-org_apache_flex_net_BinaryUploader.prototype.set_id = function(value) {
- if (this.id !== value) {
- this.id = value;
- this.dispatchEvent('idChanged');
- }
-};
-
-
-/**
- * @expose
- * @return {Array} The array of descriptors.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_MXMLDescriptor = function() {
- return null;
-};
-
-
-/**
- * @expose
- * @return {Array} The array of properties.
- */
-org_apache_flex_net_BinaryUploader.prototype.get_MXMLProperties = function() {
- return null;
-};
-
-
-/**
* @param {Object} document The MXML object.
* @param {string} id The id for the instance.
*/
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index acefa66..017b8ce 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -135,176 +135,132 @@ org_apache_flex_net_HTTPService.HTTP_METHOD_PUT = 'PUT';
org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
-/**
- * @expose
- * @param {Array.<Object>} value The array of beads.
- */
-org_apache_flex_net_HTTPService.prototype.set_beads = function(value) {
- this.beads_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} value The data.
- */
-org_apache_flex_net_HTTPService.prototype.get_data = function() {
- return this.element.responseText;
-};
-
-
-/**
- * @expose
- * @return {?string} value The contentData.
- */
-org_apache_flex_net_HTTPService.prototype.get_contentData = function() {
- return this.contentData_;
-};
-
-
-/**
- * @expose
- * @param {string} value The contentData.
- */
-org_apache_flex_net_HTTPService.prototype.set_contentData = function(value) {
- this.contentData_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} value The contentType.
- */
-org_apache_flex_net_HTTPService.prototype.get_contentType = function() {
- return this.contentType_;
-};
-
-
-/**
- * @expose
- * @param {string} value The contentType.
- */
-org_apache_flex_net_HTTPService.prototype.set_contentType = function(value) {
- this.contentType_ = value;
-};
-
-
-/**
- * @expose
- * @return {Array} value The array of HTTPHeaders.
- */
-org_apache_flex_net_HTTPService.prototype.get_headers = function() {
- if (this.headers_ === undefined) {
- this.headers_ = [];
- }
-
- return this.headers_;
-};
-
-
-/**
- * @expose
- * @param {Array} value The array of HTTPHeaders.
- */
-org_apache_flex_net_HTTPService.prototype.set_headers = function(value) {
- this.headers_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} value The method.
- */
-org_apache_flex_net_HTTPService.prototype.get_method = function() {
- return this.method_;
-};
-
-
-/**
- * @expose
- * @param {string} value The method.
- */
-org_apache_flex_net_HTTPService.prototype.set_method = function(value) {
- this.method_ = value;
-};
-
-
-/**
- * @expose
- * @return {Array} value The array of HTTPHeaders.
- */
-org_apache_flex_net_HTTPService.prototype.get_responseHeaders = function() {
- var allHeaders, c, hdr, i, n, part1, part2;
-
- if (typeof this.responseHeaders_ === 'undefined') {
- allHeaders = this.element.getAllResponseHeaders();
- this.responseHeaders_ = allHeaders.split('\n');
- n = this.responseHeaders_.length;
- for (i = 0; i < n; i++) {
- hdr = this.responseHeaders_[i];
- c = hdr.indexOf(':');
- part1 = hdr.substring(0, c);
- part2 = hdr.substring(c + 2);
- this.responseHeaders_[i] =
- new org_apache_flex_net_HTTPHeader(part1, part2);
- }
- }
- return this.responseHeaders_;
-};
-
-
-/**
- * @expose
- * @return {?string} value The url.
- */
-org_apache_flex_net_HTTPService.prototype.get_responseURL = function() {
- return this.responseURL_;
-};
-
-
-/**
- * @expose
- * @return {number} value The status.
- */
-org_apache_flex_net_HTTPService.prototype.get_status = function() {
- return this.status_;
-};
-
-
-/**
- * @expose
- * @return {number} value The timeout.
- */
-org_apache_flex_net_HTTPService.prototype.get_timeout = function() {
- return this.timeout_;
-};
-
-
-/**
- * @expose
- * @param {number} value The timeout.
- */
-org_apache_flex_net_HTTPService.prototype.set_timeout = function(value) {
- this.timeout_ = value;
-};
-
-
-/**
- * @expose
- * @return {?string} value The url.
- */
-org_apache_flex_net_HTTPService.prototype.get_url = function() {
- return this.url_;
-};
-
-
-/**
- * @expose
- * @param {string} value The url to fetch.
- */
-org_apache_flex_net_HTTPService.prototype.set_url = function(value) {
- this.url_ = value;
-};
+Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
+ 'beads': {
+ set: function(value) {
+ this.beads_ = value;
+ }
+ },
+ 'data': {
+ get: function() {
+ return this.element.responseText;
+ }
+ },
+ 'contentData': {
+ get: function() {
+ return this.contentData_;
+ },
+ set: function(value) {
+ this.contentData_ = value;
+ }
+ },
+ 'contentType': {
+ get: function() {
+ return this.contentType_;
+ },
+ set: function(value) {
+ this.contentType_ = value;
+ }
+ },
+ 'headers': {
+ get: function() {
+ if (this.headers_ === undefined) {
+ this.headers_ = [];
+ }
+
+ return this.headers_;
+ },
+ set: function(value) {
+ this.headers_ = value;
+ }
+ },
+ 'method': {
+ get: function() {
+ return this.method_;
+ },
+ set: function(value) {
+ this.method_ = value;
+ }
+ },
+ 'responseHeaders': {
+ get: function() {
+ var allHeaders, c, hdr, i, n, part1, part2;
+
+ if (typeof this.responseHeaders_ === 'undefined') {
+ allHeaders = this.element.getAllResponseHeaders();
+ this.responseHeaders_ = allHeaders.split('\n');
+ n = this.responseHeaders_.length;
+ for (i = 0; i < n; i++) {
+ hdr = this.responseHeaders_[i];
+ c = hdr.indexOf(':');
+ part1 = hdr.substring(0, c);
+ part2 = hdr.substring(c + 2);
+ this.responseHeaders_[i] =
+ new org_apache_flex_net_HTTPHeader(part1, part2);
+ }
+ }
+ return this.responseHeaders_;
+ }
+ },
+ 'responseURL': {
+ get: function() {
+ return this.responseURL_;
+ }
+ },
+ 'status': {
+ get: function() {
+ return this.status_;
+ }
+ },
+ 'timeout': {
+ get: function() {
+ return this.timeout_;
+ },
+ set: function(value) {
+ this.timeout_ = value;
+ }
+ },
+ 'url': {
+ get: function() {
+ return this.url_;
+ },
+ set: function(value) {
+ this.url_ = value;
+ }
+ },
+ 'id': {
+ get: function() {
+ return this.id;
+ },
+ set: function(value) {
+ if (this.id !== value) {
+ this.id = value;
+ this.dispatchEvent('idChanged');
+ }
+ }
+ },
+ 'MXMLDescriptor': {
+ get: function() {
+ return null;
+ }
+ },
+ 'MXMLProperties': {
+ get: function() {
+ return null;
+ }
+ },
+ 'strand': {
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ }
+ var n = this.beads_ ? this.beads_.length : 0;
+ for (var i = 0; i < n; i++) {
+ this.addBead(this.beads_[i]);
+ }
+ }
+ }
+});
/**
@@ -391,63 +347,9 @@ org_apache_flex_net_HTTPService.prototype.id = null;
/**
- * @expose
- * @return {?string} The id.
- */
-org_apache_flex_net_HTTPService.prototype.get_id = function() {
- return this.id;
-};
-
-
-/**
- * @expose
- * @param {string} value The new id.
- */
-org_apache_flex_net_HTTPService.prototype.set_id = function(value) {
- if (this.id !== value) {
- this.id = value;
- this.dispatchEvent('idChanged');
- }
-};
-
-
-/**
- * @expose
- * @return {Array} The array of descriptors.
- */
-org_apache_flex_net_HTTPService.prototype.get_MXMLDescriptor = function() {
- return null;
-};
-
-
-/**
- * @expose
- * @return {Array} The array of properties.
- */
-org_apache_flex_net_HTTPService.prototype.get_MXMLProperties = function() {
- return null;
-};
-
-
-/**
* @param {Object} document The MXML object.
* @param {string} id The id for the instance.
*/
org_apache_flex_net_HTTPService.prototype.setDocument = function(document, id) {
this.document = document;
};
-
-
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_net_HTTPService.prototype.set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
- var n = this.beads_ ? this.beads_.length : 0;
- for (var i = 0; i < n; i++) {
- this.addBead(this.beads_[i]);
- }
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5344e8ba/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
index 0bf23b5..3f9acde 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
@@ -46,13 +46,31 @@ org_apache_flex_utils_BinaryData.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_utils_BinaryData'}] };
-/**
- * @expose
- * @return {Object} The platform-specific data.
- */
-org_apache_flex_utils_BinaryData.prototype.get_data = function() {
- return this.data_;
-};
+Object.defineProperties(org_apache_flex_utils_BinaryData.prototype, {
+ 'data': {
+ get: function() {
+ return this.data_;
+ }
+ },
+ 'position': {
+ get: function() {
+ return this.position_;
+ },
+ set: function(value) {
+ this.position_ = value;
+ }
+ },
+ 'length': {
+ get: function() {
+ return this.data_.byteLength;
+ }
+ },
+ 'bytesAvailable': {
+ get: function() {
+ return this.data_.byteLength - this.position_;
+ }
+ }
+});
/**
@@ -171,42 +189,6 @@ org_apache_flex_utils_BinaryData.prototype.readUnsignedInteger =
/**
* @expose
- * @return {number} The offset to write to or read from.
- */
-org_apache_flex_utils_BinaryData.prototype.get_position = function() {
- return this.position_;
-};
-
-
-/**
- * @expose
- * @param {number} value The offset to write to or read from.
- */
-org_apache_flex_utils_BinaryData.prototype.set_position = function(value) {
- this.position_ = value;
-};
-
-
-/**
- * @expose
- * @return {number} The offset to write to or read from.
- */
-org_apache_flex_utils_BinaryData.prototype.get_length = function() {
- return this.data_.byteLength;
-};
-
-
-/**
- * @expose
- * @return {number} The number of bytes that can still be read.
- */
-org_apache_flex_utils_BinaryData.prototype.get_bytesAvailable = function() {
- return this.data_.byteLength - this.position_;
-};
-
-
-/**
- * @expose
* @param {number} extra The number of bytes to add to the buffer.
*/
org_apache_flex_utils_BinaryData.prototype.growBuffer = function(extra) {
[43/47] git commit: [flex-asjs] [refs/heads/develop] - don't require
models to implement IBead
Posted by ah...@apache.org.
don't require models to implement IBead
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bf7bac39
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bf7bac39
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bf7bac39
Branch: refs/heads/develop
Commit: bf7bac390fe4857a4894a1602e78b4cbd899e551
Parents: fb59aab
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 15:23:54 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 15:23:54 2015 -0700
----------------------------------------------------------------------
.../as/projects/FlexJSUI/src/org/apache/flex/core/Application.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bf7bac39/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
index 0bc16b7..0861645 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
@@ -125,8 +125,8 @@ package org.apache.flex.core
private function initHandler(event:flash.events.Event):void
{
- if (model) addBead(model as IBead);
- if (controller) addBead(controller as IBead);
+ if (model is IBead) addBead(model as IBead);
+ if (controller is IBead) addBead(controller as IBead);
MouseEventConverter.setupAllConverters(stage);
[13/47] git commit: [flex-asjs] [refs/heads/develop] - add @this
annotations
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
index e9a979d..2a3ca53 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
@@ -45,116 +45,76 @@ org_apache_flex_html_beads_models_ArraySelectionModel.prototype.FLEXJS_CLASS_INF
interfaces: [org_apache_flex_core_ISelectionModel] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {Object} value The dataProvider.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.
- get_dataProvider = function() {
- return this.dataProvider_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The dataProvider.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.
- set_dataProvider = function(value) {
- this.dataProvider_ = value;
- this.dispatchEvent('dataProviderChanged');
-};
-
-
-/**
- * @expose
- * @return {number} value The selected index.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.
- get_selectedIndex = function() {
- return this.selectedIndex_;
-};
-
-
-/**
- * @expose
- * @param {number} value The selected index.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.
- set_selectedIndex = function(value) {
- this.selectedIndex_ = value;
- this.dispatchEvent('selectedIndexChanged');
-};
-
-
-/**
- * @expose
- * @return {Object} value The selected item.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.
- get_selectedItem = function() {
- var si;
-
- si = this.selectedIndex_;
-
- if (!this.dataProvider_ || si < 0 ||
- si >= this.dataProvider_.length) {
- return null;
- }
-
- return this.dataProvider_[si];
-};
-
-
-/**
- * @expose
- * @param {Object} value The selected item.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.
- set_selectedItem = function(value) {
- // find item in dataProvider and set selectedIndex or -1 if not exists
-
- this.selectedIndex_ = -1;
- var n = this.dataProvider_.length;
- for (var i = 0; i < n; i++) {
- var item = this.dataProvider_[i];
- if (item == value) {
- this.selectedIndex_ = i;
- break;
- }
- }
-
- this.dispatchEvent('selectedItemChanged');
- this.dispatchEvent('selectedIndexChanged');
-};
-
-
-/**
- * @expose
- * @return {String} The name of the field to use as a label.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.get_labelField =
-function() {
- return this.labelField_;
-};
-
-
-/**
- * @expose
- * @param {String} value The name of the field to use as a label.
- */
-org_apache_flex_html_beads_models_ArraySelectionModel.prototype.set_labelField =
-function(value) {
- this.labelField_ = value;
- this.dispatchEvent('labelFieldChanged');
-};
+Object.defineProperties(org_apache_flex_html_beads_models_ArraySelectionModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'dataProvider': {
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ get: function() {
+ return this.dataProvider_;
+ },
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ set: function(value) {
+ this.dataProvider_ = value;
+ this.dispatchEvent('dataProviderChanged');
+ }
+ },
+ 'selectedIndex': {
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ get: function() {
+ return this.selectedIndex_;
+ },
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ set: function(value) {
+ this.selectedIndex_ = value;
+ this.dispatchEvent('selectedIndexChanged');
+ }
+ },
+ 'selectedItem': {
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ get: function() {
+ var si;
+
+ si = this.selectedIndex_;
+
+ if (!this.dataProvider_ || si < 0 ||
+ si >= this.dataProvider_.length) {
+ return null;
+ }
+
+ return this.dataProvider_[si];
+ },
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ set: function(value) {
+ // find item in dataProvider and set selectedIndex or -1 if not exists
+
+ this.selectedIndex_ = -1;
+ var n = this.dataProvider_.length;
+ for (var i = 0; i < n; i++) {
+ var item = this.dataProvider_[i];
+ if (item == value) {
+ this.selectedIndex_ = i;
+ break;
+ }
+ }
+
+ this.dispatchEvent('selectedItemChanged');
+ this.dispatchEvent('selectedIndexChanged');
+ }
+ },
+ 'labelField': {
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ get: function() {
+ return this.labelField_;
+ },
+ /** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
+ set: function(value) {
+ this.labelField_ = value;
+ this.dispatchEvent('labelFieldChanged');
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
index 8bf60f1..0f31c94 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
@@ -16,6 +16,7 @@ goog.provide('org_apache_flex_html_beads_models_DataGridModel');
goog.require('org_apache_flex_core_IDataGridModel');
goog.require('org_apache_flex_html_beads_models_ArraySelectionModel');
+goog.require('org_apache_flex_utils_Language');
@@ -48,32 +49,22 @@ org_apache_flex_html_beads_models_DataGridModel.prototype.FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_IDataGridModel] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_DataGridModel.prototype.
- set_strand = function(value) {
- org_apache_flex_html_beads_models_DataGridModel.base(this, 'set_strand', value);
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @param {Array} value Array of DataGridColumn instances.
- */
-org_apache_flex_html_beads_models_DataGridModel.prototype.
- set_columns = function(value) {
- this.columns_ = value;
-};
-
-
-/**
- * @expose
- * @return {Array} Array of DataGridColumn instances.
- */
-org_apache_flex_html_beads_models_DataGridModel.prototype.
- get_columns = function() {
- return this.columns_;
-};
+Object.defineProperties(org_apache_flex_html_beads_models_DataGridModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_DataGridModel} */
+ set: function(value) {
+ org_apache_flex_utils-Language(org_apache_flex_html_beads_models_DataGridModel, this, 'strand', value);
+ this.strand_ = value;
+ }
+ },
+ 'columns': {
+ /** @this {org_apache_flex_html_beads_models_DataGridModel} */
+ set: function(value) {
+ this.columns_ = value;
+ },
+ /** @this {org_apache_flex_html_beads_models_DataGridModel} */
+ get: function() {
+ return this.columns_;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/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 210a29e..e85f46f 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
@@ -41,32 +41,22 @@ org_apache_flex_html_beads_models_ImageModel.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_beads_models_ImageModel'}] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_ImageModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {Object} value The image source.
- */
-org_apache_flex_html_beads_models_ImageModel.prototype.
- get_source = function() {
- return this.source;
-};
-
-
-/**
- * @expose
- * @param {Object} value The image source.
- */
-org_apache_flex_html_beads_models_ImageModel.prototype.
- set_source = function(value) {
- this.source = value;
- this.dispatchEvent('sourceChanged');
-};
+Object.defineProperties(org_apache_flex_html_beads_models_ImageModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_ImageModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'source': {
+ /** @this {org_apache_flex_html_beads_models_ImageModel} */
+ get: function() {
+ return this.source;
+ },
+ /** @this {org_apache_flex_html_beads_models_ImageModel} */
+ set: function(value) {
+ this.source = value;
+ this.dispatchEvent('sourceChanged');
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
index a38be51..3b8f24f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
@@ -52,32 +52,22 @@ org_apache_flex_html_beads_models_ListPresentationModel.prototype.FLEXJS_CLASS_I
interfaces: [org_apache_flex_core_IListPresentationModel] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_ListPresentationModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {number} value The height of the rows.
- */
-org_apache_flex_html_beads_models_ListPresentationModel.prototype.
- get_rowHeight = function() {
- return this.rowHeight_;
-};
-
-
-/**
- * @expose
- * @param {number} value The height of the rows.
- */
-org_apache_flex_html_beads_models_ListPresentationModel.prototype.
- set_rowHeight = function(value) {
- this.rowHeight_ = value;
- this.dispatchEvent('rowHeightChanged');
-};
+Object.defineProperties(org_apache_flex_html_beads_models_ListPresentationModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'rowHeight': {
+ /** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
+ get: function() {
+ return this.rowHeight_;
+ },
+ /** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
+ set: function(value) {
+ this.rowHeight_ = value;
+ this.dispatchEvent('rowHeightChanged');
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
index 092c1d6..6a6f3f8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
@@ -56,82 +56,50 @@ org_apache_flex_html_beads_models_PanelModel.prototype.FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_IBeadModel] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_PanelModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} The title.
- */
-org_apache_flex_html_beads_models_PanelModel.prototype.
- get_title = function() {
- return this.title_;
-};
-
-
-/**
- * @expose
- * @param {string} value The title to set.
- */
-org_apache_flex_html_beads_models_PanelModel.prototype.
- set_title = function(value) {
- if (this.title_ != value) {
- this.title_ = value;
- this.dispatchEvent('titleChange');
- }
-};
-
-
-/**
- * @expose
- * @return {string} The HTML title.
- */
-org_apache_flex_html_beads_models_PanelModel.prototype.
- get_htmlTitle = function() {
- return this.htmlTitle_;
-};
-
-
-/**
- * @expose
- * @param {string} value The new HTML title.
- */
-org_apache_flex_html_beads_models_PanelModel.prototype.
- set_htmlTitle = function(value) {
- if (this.htmlTitle_ != value) {
- this.htmlTitle_ = value;
- this.dispatchEvent('htmlTitleChange');
- }
-};
-
-
-/**
- * @expose
- * @return {boolean} Returns true if the close button should appear in
- * the TitleBar.
- */
-org_apache_flex_html_beads_models_PanelModel.prototype.
- get_showCloseButton = function() {
- return this.showCloseButton_;
-};
-
-
-/**
- * @expose
- * @param {boolean} value Determines if the close button shows (true) or
- * not (false).
- */
-org_apache_flex_html_beads_models_PanelModel.prototype.
- set_showCloseButton = function(value) {
- if (this.showCloseButton_ != value) {
- this.showCloseButton_ = value;
- this.dispatchEvent('showCloseButtonChange');
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_models_PanelModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_PanelModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'title': {
+ /** @this {org_apache_flex_html_beads_models_PanelModel} */
+ get: function() {
+ return this.title_;
+ },
+ /** @this {org_apache_flex_html_beads_models_PanelModel} */
+ set: function(value) {
+ if (this.title_ != value) {
+ this.title_ = value;
+ this.dispatchEvent('titleChange');
+ }
+ }
+ },
+ 'htmlTitle': {
+ /** @this {org_apache_flex_html_beads_models_PanelModel} */
+ get: function() {
+ return this.htmlTitle_;
+ },
+ /** @this {org_apache_flex_html_beads_models_PanelModel} */
+ set: function(value) {
+ if (this.htmlTitle_ != value) {
+ this.htmlTitle_ = value;
+ this.dispatchEvent('htmlTitleChange');
+ }
+ }
+ },
+ 'showCloseButton': {
+ /** @this {org_apache_flex_html_beads_models_PanelModel} */
+ get: function() {
+ return this.showCloseButton_;
+ },
+ /** @this {org_apache_flex_html_beads_models_PanelModel} */
+ set: function(value) {
+ if (this.showCloseButton_ != value) {
+ this.showCloseButton_ = value;
+ this.dispatchEvent('showCloseButtonChange');
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/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 a3d7c9e..73d3dda 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
@@ -45,136 +45,86 @@ org_apache_flex_html_beads_models_RangeModel.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_beads_models_RangeModel'}] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {number} The current minimum value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- get_minimum = function() {
- return this.minimum_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new minimum value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- set_minimum = function(value) {
- if (this.minimum_ != value) {
- this.minimum_ = value;
- this.dispatchEvent('minimumChange');
- }
-};
-
-
-/**
- * @expose
- * @return {number} The current maximu value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- get_maximum = function() {
- return this.maximum_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new maximum value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- set_maximum = function(value) {
- if (this.maximum_ != value) {
- this.maximum_ = value;
- this.dispatchEvent('maximumChange');
- }
-};
-
-
-/**
- * @expose
- * @return {number} The current value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- get_value = function() {
- return this.value_;
-};
-
-
-/**
- * @expose
- * @param {number} newValue The new value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- set_value = function(newValue) {
- if (this.value_ != newValue) {
-
- // value must lie within the boundaries of minimum & maximum
- // and be on a step interval, so the value is adjusted to
- // what is coming in.
- newValue = Math.max(this.minimum_, newValue - this.stepSize_);
- newValue = Math.min(this.maximum_, newValue + this.stepSize_);
- this.value_ = this.snap(newValue);
-
- this.dispatchEvent('valueChange');
- }
-};
-
-
-/**
- * @expose
- * @return {number} The current snapInterval value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- get_snapInterval = function() {
- return this.snapInterval_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new snapInterval value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- set_snapInterval = function(value) {
- if (this.snapInterval_ != value) {
- this.snapInterval_ = value;
- this.dispatchEvent('snapIntervalChange');
- }
-};
-
-
-/**
- * @expose
- * @return {number} The current stepSize value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- get_stepSize = function() {
- return this.stepSize_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new stepSize value.
- */
-org_apache_flex_html_beads_models_RangeModel.prototype.
- set_stepSize = function(value) {
- if (this.stepSize_ != value) {
- this.stepSize_ = value;
- this.dispatchEvent('stepSizeChange');
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'minimum': {
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ get: function() {
+ return this.minimum_;
+ },
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ set: function(value) {
+ if (this.minimum_ != value) {
+ this.minimum_ = value;
+ this.dispatchEvent('minimumChange');
+ }
+ }
+ },
+ 'maximum': {
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ get: function() {
+ return this.maximum_;
+ },
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ set: function(value) {
+ if (this.maximum_ != value) {
+ this.maximum_ = value;
+ this.dispatchEvent('maximumChange');
+ }
+ }
+ },
+ 'value': {
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ get: function() {
+ return this.value_;
+ },
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ set: function(newValue) {
+ if (this.value_ != newValue) {
+
+ // value must lie within the boundaries of minimum & maximum
+ // and be on a step interval, so the value is adjusted to
+ // what is coming in.
+ newValue = Math.max(this.minimum_, newValue - this.stepSize_);
+ newValue = Math.min(this.maximum_, newValue + this.stepSize_);
+ this.value_ = this.snap(newValue);
+
+ this.dispatchEvent('valueChange');
+ }
+ }
+ },
+ 'snapInterval': {
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ get: function() {
+ return this.snapInterval_;
+ },
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ set: function(value) {
+ if (this.snapInterval_ != value) {
+ this.snapInterval_ = value;
+ this.dispatchEvent('snapIntervalChange');
+ }
+ }
+ },
+ 'stepSize': {
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ get: function() {
+ return this.stepSize_;
+ },
+ /** @this {org_apache_flex_html_beads_models_RangeModel} */
+ set: function(value) {
+ if (this.stepSize_ != value) {
+ this.stepSize_ = value;
+ this.dispatchEvent('stepSizeChange');
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
index f16a286..b361bad 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
@@ -45,32 +45,22 @@ org_apache_flex_html_beads_models_TextModel.prototype.FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_ITextModel] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_TextModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {Object} value The text.
- */
-org_apache_flex_html_beads_models_TextModel.prototype.
- get_text = function() {
- return this.text_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The text.
- */
-org_apache_flex_html_beads_models_TextModel.prototype.
- set_text = function(value) {
- this.text_ = value;
- this.dispatchEvent('textChange');
-};
+Object.defineProperties(org_apache_flex_html_beads_models_TextModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_TextModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'text': {
+ /** @this {org_apache_flex_html_beads_models_TextModel} */
+ get: function() {
+ return this.text_;
+ },
+ /** @this {org_apache_flex_html_beads_models_TextModel} */
+ set: function(value) {
+ this.text_ = value;
+ this.dispatchEvent('textChange');
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
index 95085e4..f1a7a8a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
@@ -59,82 +59,50 @@ org_apache_flex_html_beads_models_TitleBarModel.prototype.FLEXJS_CLASS_INFO =
};
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_models_TitleBarModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {string} The title.
- */
-org_apache_flex_html_beads_models_TitleBarModel.prototype.
- get_title = function() {
- return this.title_;
-};
-
-
-/**
- * @expose
- * @param {string} value The title to set.
- */
-org_apache_flex_html_beads_models_TitleBarModel.prototype.
- set_title = function(value) {
- if (this.title_ != value) {
- this.title_ = value;
- this.dispatchEvent('titleChange');
- }
-};
-
-
-/**
- * @expose
- * @return {string} The HTML title.
- */
-org_apache_flex_html_beads_models_TitleBarModel.prototype.
- get_htmlTitle = function() {
- return this.htmlTitle_;
-};
-
-
-/**
- * @expose
- * @param {string} value The new HTML title.
- */
-org_apache_flex_html_beads_models_TitleBarModel.prototype.
- set_htmlTitle = function(value) {
- if (this.htmlTitle_ != value) {
- this.htmlTitle_ = value;
- this.dispatchEvent('htmlTitleChange');
- }
-};
-
-
-/**
- * @expose
- * @return {boolean} Returns true if the close button should appear in
- * the TitleBar.
- */
-org_apache_flex_html_beads_models_TitleBarModel.prototype.
- get_showCloseButton = function() {
- return this.showCloseButton_;
-};
-
-
-/**
- * @expose
- * @param {boolean} value Determines if the close button shows (true) or
- * not (false).
- */
-org_apache_flex_html_beads_models_TitleBarModel.prototype.
- set_showCloseButton = function(value) {
- if (this.showCloseButton_ != value) {
- this.showCloseButton_ = value;
- this.dispatchEvent('showCloseButtonChange');
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_models_TitleBarModel.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'title': {
+ /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+ get: function() {
+ return this.title_;
+ },
+ /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+ set: function(value) {
+ if (this.title_ != value) {
+ this.title_ = value;
+ this.dispatchEvent('titleChange');
+ }
+ }
+ },
+ 'htmlTitle': {
+ /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+ get: function() {
+ return this.htmlTitle_;
+ },
+ /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+ set: function(value) {
+ if (this.htmlTitle_ != value) {
+ this.htmlTitle_ = value;
+ this.dispatchEvent('htmlTitleChange');
+ }
+ }
+ },
+ 'showCloseButton': {
+ /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+ get: function() {
+ return this.showCloseButton_;
+ },
+ /** @this {org_apache_flex_html_beads_models_TitleBarModel} */
+ set: function(value) {
+ if (this.showCloseButton_ != value) {
+ this.showCloseButton_ = value;
+ this.dispatchEvent('showCloseButtonChange');
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
index 0c30f26..78155f0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
@@ -26,82 +26,46 @@ org_apache_flex_html_supportClasses_DataGridColumn =
};
-/**
- * @expose
- * @return {mx_core_IFactory} The object factory for the itemRenderer.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.get_itemRenderer =
-function() {
- return this.itemRenderer_;
-};
-
-
-/**
- * @expose
- * @param {mx_core_IFactory} value The object factory for the itemRenderer.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.set_itemRenderer =
-function(value) {
- this.itemRenderer_ = value;
-};
-
-
-/**
- * @expose
- * @return {Number} The width of the column.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.get_columnWidth =
-function() {
- return this.columnWidth_;
-};
-
-
-/**
- * @expose
- * @param {Number} value The width of the column.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.set_columnWidth =
-function(value) {
- this.columnWidth_ = value;
-};
-
-
-/**
- * @expose
- * @return {String} The label for the column.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.get_label =
-function() {
- return this.label_;
-};
-
-
-/**
- * @expose
- * @param {String} value The label for the column.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.set_label =
-function(value) {
- this.label_ = value;
-};
-
-
-/**
- * @expose
- * @return {String} The field for the data for the column.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.get_dataField =
-function() {
- return this.dataField_;
-};
-
-
-/**
- * @expose
- * @param {String} value The field for the data for the column.
- */
-org_apache_flex_html_supportClasses_DataGridColumn.prototype.set_dataField =
-function(value) {
- this.dataField_ = value;
-};
+Object.defineProperties(org_apache_flex_html_supportClasses_DataGridColumn.prototype, {
+ 'itemRenderer': {
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ get: function() {
+ return this.itemRenderer_;
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ set: function(value) {
+ this.itemRenderer_ = value;
+ }
+ },
+ 'columnWidth': {
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ get: function() {
+ return this.columnWidth_;
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ set: function(value) {
+ this.columnWidth_ = value;
+ }
+ },
+ 'label': {
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ get: function() {
+ return this.label_;
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ set: function(value) {
+ this.label_ = value;
+ }
+ },
+ 'dataField': {
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ get: function() {
+ return this.dataField_;
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ set: function(value) {
+ this.dataField_ = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
index 89bfc09..83bd86b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
@@ -76,124 +76,62 @@ org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.generateMXMLAtt
};
-/**
- * @expose
- * @return {Object} The data being used for the itemRenderer.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.get_data =
-function() {
- return this.data_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The data to use for the itemRenderer.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.set_data =
-function(value) {
- this.data_ = value;
-};
-
-
-/**
- * @expose
- * @return {String} The name of the field being used to display the label.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.get_labelField =
-function() {
- return this.labelField_;
-};
-
-
-/**
- * @expose
- * @param {String} value The name of the field to use for the label.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.set_labelField =
-function(value) {
- this.labelField_ = value;
-};
-
-
-/**
- * @expose
- * @return {Number} The index value set for this itemRenderer.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.get_index =
-function() {
- return this.index_;
-};
-
-
-/**
- * @expose
- * @param {Number} value The row index for this itemRenderer.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.set_index =
-function(value) {
- this.index_ = value;
-};
-
-
-/**
- * @expose
- * @return {Boolean} The current value of the hovered state.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.get_hovered =
-function() {
- return this.hovered_;
-};
-
-
-/**
- * @expose
- * @param {Boolean} value Set to true if the itemRenderer should go into hovered state.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.set_hovered =
-function(value) {
- this.hovered_ = value;
-};
-
-
-/**
- * @expose
- * @return {Boolean} Whether or not the itemRenderer is selected.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.get_selected =
-function() {
- return this.selected_;
-};
-
-
-/**
- * @expose
- * @param {Boolean} value True if this itemRenderer instance is selected.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.set_selected =
-function(value) {
- this.selected_ = value;
-};
-
-
-/**
- * @expose
- * @return {Boolean} The value of the down selection.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.get_down =
-function() {
- return this.down_;
-};
-
-
-/**
- * @expose
- * @param {Boolean} value True if the mouse is in the down position.
- */
-org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.set_down =
-function(value) {
- this.down_ = value;
-};
+Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.prototype, {
+ 'MXMLDescriptor': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ get: function() {
+ return null;
+ }
+ },
+ 'data': {
+ get: function() {
+ return this.data_;
+ },
+ set: function(value) {
+ this.data_ = value;
+ }
+ },
+ 'labelField': {
+ get: function() {
+ return this.labelField_;
+ },
+ set: function(value) {
+ this.labelField_ = value;
+ }
+ },
+ 'index': {
+ get: function() {
+ return this.index_;
+ },
+ set: function(value) {
+ this.index_ = value;
+ }
+ },
+ 'hovered': {
+ get: function() {
+ return this.hovered_;
+ },
+ set: function(value) {
+ this.hovered_ = value;
+ }
+ },
+ 'selected': {
+ get: function() {
+ return this.selected_;
+ },
+ set: function(value) {
+ this.selected_ = value;
+ }
+ },
+ 'down': {
+ get: function() {
+ return this.down_;
+ },
+ set: function(value) {
+ this.down_ = value;
+ }
+ }
+});
/**
@@ -221,13 +159,3 @@ org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.adjustSize =
function() {
// handle in sub-class
};
-
-
-Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.prototype, {
- 'MXMLDescriptor': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- get: function() {
- return null;
- }
- }
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/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 efe24f6..084d198 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
@@ -49,61 +49,35 @@ org_apache_flex_html5_RadioButton.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The groupName getter.
- */
-org_apache_flex_html5_RadioButton.prototype.get_groupName =
- function() {
- return this.element.childNodes.item(0).name;
-};
-
-
-/**
- * @expose
- * @param {string} value The groupName setter.
- */
-org_apache_flex_html5_RadioButton.prototype.set_groupName =
- function(value) {
- this.element.childNodes.item(0).name = value;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html5_RadioButton.prototype.get_text =
- function() {
- return this.element.childNodes.item(1).nodeValue;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html5_RadioButton.prototype.set_text =
- function(value) {
- this.element.childNodes.item(1).nodeValue = value;
-};
-
-
-/**
- * @expose
- * @return {boolean} The selected getter.
- */
-org_apache_flex_html5_RadioButton.prototype.get_selected =
- function() {
- return this.element.childNodes.item(0).checked;
-};
-
-
-/**
- * @expose
- * @param {boolean} value The selected setter.
- */
-org_apache_flex_html5_RadioButton.prototype.set_selected =
- function(value) {
- this.element.childNodes.item(0).checked = value;
-};
+Object.defineProperties(org_apache_flex_html5_RadioButton.prototype, {
+ 'groupName': {
+ /** @this {org_apache_flex_html5_RadioButton} */
+ get: function() {
+ return this.element.childNodes.item(0).name;
+ },
+ /** @this {org_apache_flex_html5_RadioButton} */
+ set: function(value) {
+ this.element.childNodes.item(0).name = value;
+ }
+ },
+ 'text' : {
+ /** @this {org_apache_flex_html5_RadioButton} */
+ get: function() {
+ return this.element.childNodes.item(1).nodeValue;
+ },
+ /** @this {org_apache_flex_html5_RadioButton} */
+ set: function(value) {
+ this.element.childNodes.item(1).nodeValue = value;
+ }
+ },
+ 'selected': {
+ /** @this {org_apache_flex_html5_RadioButton} */
+ get: function() {
+ return this.element.childNodes.item(0).checked;
+ },
+ /** @this {org_apache_flex_html5_RadioButton} */
+ set: function(value) {
+ this.element.childNodes.item(0).checked = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
index cf803e3..9e4d3f6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
@@ -43,21 +43,15 @@ org_apache_flex_html5_TextButton.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_html5_TextButton.prototype.get_text =
- function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_html5_TextButton.prototype.set_text =
- function(value) {
- this.element.innerHTML = value;
-};
+Object.defineProperties(org_apache_flex_html5_TextButton.prototype, {
+ 'text': {
+ /** @this {org_apache_flex_html5_TextButton} */
+ get: function() {
+ return this.element.innerHTML;
+ },
+ /** @this {org_apache_flex_html5_TextButton} */
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
index 7728f94..986533a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_jquery_RadioButton');
goog.require('org_apache_flex_core_UIBase');
+goog.require('org_apache_flex_utils_Language');
@@ -103,7 +104,7 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
'id': {
/** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
- org_apache_flex_jquery_RadioButton.base(this, 'set_id', value);
+ org_apache_flex_utils_Language(org_apache_flex_jquery_RadioButton.base, this, 'id', value);
this.labelFor.id = value;
this.labelFor.htmlFor = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
index 88c1d3b..624c8eb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
@@ -53,21 +53,15 @@ org_apache_flex_jquery_TextButton.prototype.addedToParent =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_jquery_TextButton.prototype.get_text =
- function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_jquery_TextButton.prototype.set_text =
- function(value) {
- this.element.innerHTML = value;
-};
+Object.defineProperties(org_apache_flex_jquery_TextButton.prototype, {
+ 'text': {
+ /** @this {org_apache_flex_jquery_TextButton} */
+ get: function() {
+ return this.element.innerHTML;
+ },
+ /** @this {org_apache_flex_jquery_TextButton} */
+ set: function(value) {
+ this.element.innerHTML = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index f21c620..de08c2e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_jquery_ToggleTextButton');
goog.require('org_apache_flex_html_Button');
+goog.require('org_apache_flex_utils_Language');
@@ -96,7 +97,7 @@ Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
'id': {
/** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
- org_apache_flex_jquery_ToggleTextButton.base(this, 'set_id', value);
+ org_apache_flex_utils_Language.superSetter(org_apache_flex_jquery_ToggleTextButton.base, this, 'id', value);
this.labelFor.id = value;
this.labelFor.htmlFor = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
index 5088712..73915c6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
@@ -37,29 +37,28 @@ FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_IBeadView] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_maps_google_beads_MapView.prototype.set_strand =
-function(value) {
+Object.defineProperties(org_apache_flex_maps_google_beads_MapView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_maps_google_beads_MapView} */
+ set: function(value) {
+ this.strand_ = value;
- this.strand_ = value;
+ var token = this.strand_.token;
+ var src = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
+ if (token)
+ src += '&key=' + token;
+ src += '&libraries=places&sensor=false&callback=mapInit';
- var token = this.strand_.token;
- var src = 'https://maps.googleapis.com/maps/api/js?v=3.exp';
- if (token)
- src += '&key=' + token;
- src += '&libraries=places&sensor=false&callback=mapInit';
+ var script = document.createElement('script');
+ script.type = 'text/javascript';
+ script.src = src;
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = src;
-
- window.mapView = this;
- window['mapInit'] = function() {
- this.mapView.strand_.finishInitalization();
- };
- document.head.appendChild(script);
-};
+ window.mapView = this;
+ window['mapInit'] = function() {
+ this.mapView.strand_.finishInitalization();
+ };
+ document.head.appendChild(script);
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
index 3956ab5..ffcf3aa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
@@ -49,95 +49,47 @@ FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_IBeadModel] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @return {Array} The search results list.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.get_searchResults =
-function() {
- return this._searchResults;
-};
-
-
-/**
- * @expose
- * @param {Array} value A list of search results.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.set_searchResults =
-function(value) {
- this._searchResults = value;
- this.dispatchEvent('searchResultsChanged');
-};
-
-
-/**
- * @expose
- * @return {Number} Map zoom level.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.get_zoom =
-function() {
- return this._zoom;
-};
-
-
-/**
- * @expose
- * @param {Number} value Map zoom level.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.set_zoom =
-function(value) {
- this._zoom = value;
- this.dispatchEvent('zoomChanged');
-};
-
-
-/**
- * @expose
- * @return {Object} The currently selected map Marker.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.get_selectedMarker =
-function() {
- return this._selectedMarker;
-};
-
-
-/**
- * @expose
- * @param {Object} value A marker to be made the selected marker.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.set_selectedMarker =
-function(value) {
- this._selectedMarker = value;
- this.dispatchEvent('selectedMarkerChanged');
-};
-
-
-/**
- * @expose
- * @return {Object} The map's current center.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.get_currentLocation =
-function() {
- return this._currentLocation;
-};
-
-
-/**
- * @expose
- * @param {Object} value The map's new current center.
- */
-org_apache_flex_maps_google_models_MapModel.prototype.set_currentLocation =
-function(value) {
- this._currentLocation = value;
- this.dispatchEvent('currentLocationChanged');
-};
+Object.defineProperties(org_apache_flex_maps_google_models_MapModelv.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_maps_google_models_MapModel} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'searchResults': {
+ get: function() {
+ return this._searchResults;
+ },
+ set: function(value) {
+ this._searchResults = value;
+ this.dispatchEvent('searchResultsChanged');
+ }
+ },
+ 'zoom': {
+ get: function() {
+ return this._zoom;
+ },
+ set: function(value) {
+ this._zoom = value;
+ this.dispatchEvent('zoomChanged');
+ }
+ },
+ 'selectedMarker': {
+ get: function() {
+ return this._selectedMarker;
+ },
+ set: function(value) {
+ this._selectedMarker = value;
+ this.dispatchEvent('selectedMarkerChanged');
+ }
+ },
+ 'currentLocation': {
+ get: function() {
+ return this._currentLocation;
+ },
+ set: function(value) {
+ this._currentLocation = value;
+ this.dispatchEvent('currentLocationChanged');
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
index 06799a1..715edaf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
@@ -70,88 +70,64 @@ org_apache_flex_net_dataConverters_LazyCollection.prototype.FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_events_IEventDispatcher]};
-/**
- * @expose
- * @return {Object} value The input parser.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.get_inputParser =
- function() {
- return this.inputParser_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The input parser.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.set_inputParser =
- function(value) {
- this.inputParser_ = value;
-};
-
-
-/**
- * @expose
- * @return {Object} value The input parser.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.get_itemConverter =
- function() {
- return this.itemConverter_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The input parser.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.set_itemConverter =
- function(value) {
- this.itemConverter_ = value;
-};
+Object.defineProperties(org_apache_flex_net_dataConverters_LazyCollection.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ this.strand_.addEventListener('complete',
+ goog.bind(this.completeHandler, this));
+ }
+ }
+ },
+ 'length': {
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ get: function() {
+ return this.rawData_ ? this.rawData_.length : 0;
+ }
+ },
+ 'inputParser': {
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ get: function() {
+ return this.inputParser_;
+ },
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ set: function(value) {
+ this.inputParser_ = value;
+ }
+ },
+ 'itemConverter': {
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ get: function() {
+ return this.itemConverter_;
+ },
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ set: function(value) {
+ this.itemConverter_ = value;
+ }
+ },
+ 'id': {
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ get: function() {
+ return this.id_;
+ },
+ /** @this {org_apache_flex_net_dataConverters_LazyCollection} */
+ set: function(value) {
+ if (this.id_ !== value) {
+ this.id_ = value;
+ // this.dispatchEvent(new Event('idChanged'));
+ }
+ }
+ }
+});
/**
* @expose
* @type {string}
*/
-org_apache_flex_net_dataConverters_LazyCollection.prototype.id = '';
-
-
-/**
- * @expose
- * @return {string} The id.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.get_id =
- function() {
- return this.id;
-};
-
-
-/**
- * @expose
- * @param {string} value The new id.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.set_id =
- function(value) {
- if (this.id !== value) {
- this.id = value;
- // this.dispatchEvent(new Event('idChanged'));
- }
-};
-
-
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.set_strand =
- function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('complete',
- goog.bind(this.completeHandler, this));
- }
-};
+org_apache_flex_net_dataConverters_LazyCollection.prototype.id_ = '';
/**
@@ -180,13 +156,3 @@ org_apache_flex_net_dataConverters_LazyCollection.prototype.getItemAt =
return this.data_[index];
};
-
-
-/**
- * @expose
- * @return {string} The number of items in the collection.
- */
-org_apache_flex_net_dataConverters_LazyCollection.prototype.get_length =
- function() {
- return this.rawData_ ? this.rawData_.length : 0;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
index 1300f5f..807cdf5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
@@ -74,21 +74,15 @@ org_apache_flex_svg_TextButton.prototype.finalizeElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_svg_TextButton.prototype.get_text =
- function() {
- return this.element.getAttribute('label');
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_svg_TextButton.prototype.set_text =
- function(value) {
- this.element.setAttribute('label', value);
-};
+Object.defineProperties(org_apache_flex_svg_TextButton.prototype, {
+ 'text': {
+ /** @this {org_apache_flex_svg_TextButton} */
+ get: function() {
+ return this.element.getAttribute('label');
+ },
+ /** @this {org_apache_flex_svg_TextButton} */
+ set: function(value) {
+ this.element.setAttribute('label', value);
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
index 875fbe6..d33d64f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
@@ -37,27 +37,23 @@ org_apache_flex_utils_MixinManager.prototype.FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_IBead]};
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_utils_MixinManager.prototype.set_strand =
-function(value) {
- this.strand_ = value;
-
- if (value)
- {
- if (typeof(value.info) == 'function')
- {
- var mixins = value.info()['mixins'];
- if (mixins)
- {
- var n = mixins.length;
- for (var i = 0; i < n; i++)
- {
- mixins[i].init(value);
- }
- }
- }
- }
-};
+Object.defineProperties(org_apache_flex_utils_MixinManager.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_utils_MixinManager} */
+ set: function(value) {
+ this.strand_ = value;
+
+ if (value) {
+ if (typeof(value.info) == 'function') {
+ var mixins = value.info()['mixins'];
+ if (mixins) {
+ var n = mixins.length;
+ for (var i = 0; i < n; i++) {
+ mixins[i].init(value);
+ }
+ }
+ }
+ }
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
index 0cb0216..f42aae7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/PointUtils.js
@@ -49,7 +49,7 @@ org_apache_flex_utils_PointUtils.globalToLocal =
do {
x -= element.offsetLeft;
y -= element.offsetTop;
- if (local.get_parent) {
+ if (local.hasOwnProperty('parent')) {
local = local.parent;
element = local.element;
} else {
@@ -75,7 +75,7 @@ org_apache_flex_utils_PointUtils.localToGlobal =
do {
x += element.offsetLeft;
y += element.offsetTop;
- if (local.get_parent) {
+ if (local.hasOwnProperty('parent')) {
local = local.parent;
element = local.element;
} else {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
index e7cc836..efe2e3b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
@@ -35,10 +35,10 @@ org_apache_flex_utils_ViewSourceContextMenuOption.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_utils_ViewSourceContextMenuOption'}] };
-/**
- * @param {Object} value The strand (owner) of the bead.
- */
-org_apache_flex_utils_ViewSourceContextMenuOption.prototype.set_strand =
- function(value) {
-};
+Object.defineProperties(org_apache_flex_utils_ViewSourceContextMenuOption.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_utils_ViewSourceContextMenuOption} */
+ set: function(value) {}
+ }
+});
[35/47] git commit: [flex-asjs] [refs/heads/develop] - sprinkle in
@expose to get release version to survive minification. @expose is deprecated
so we may need to re-work this some day
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
index 94e9ec0..d344607 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
@@ -38,7 +38,8 @@ FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_maps_google_beads_MapView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_maps_google_beads_MapView} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
index cb9ddc0..8a92972 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
@@ -50,13 +50,15 @@ FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_maps_google_models_MapModelv.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_maps_google_models_MapModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'searchResults': {
+ /** @expose */
+ searchResults: {
get: function() {
return this._searchResults;
},
@@ -65,7 +67,8 @@ Object.defineProperties(org_apache_flex_maps_google_models_MapModelv.prototype,
this.dispatchEvent('searchResultsChanged');
}
},
- 'zoom': {
+ /** @expose */
+ zoom: {
get: function() {
return this._zoom;
},
@@ -74,7 +77,8 @@ Object.defineProperties(org_apache_flex_maps_google_models_MapModelv.prototype,
this.dispatchEvent('zoomChanged');
}
},
- 'selectedMarker': {
+ /** @expose */
+ selectedMarker: {
get: function() {
return this._selectedMarker;
},
@@ -83,7 +87,8 @@ Object.defineProperties(org_apache_flex_maps_google_models_MapModelv.prototype,
this.dispatchEvent('selectedMarkerChanged');
}
},
- 'currentLocation': {
+ /** @expose */
+ currentLocation: {
get: function() {
return this._currentLocation;
},
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
index fd84f49..4d7cc22 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
@@ -130,13 +130,15 @@ org_apache_flex_net_BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
- 'data': {
+ /** @expose */
+ data: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.element.responseText;
}
},
- 'binaryData': {
+ /** @expose */
+ binaryData: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.binaryData_;
@@ -146,7 +148,8 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
this.binaryData_ = value;
}
},
- 'contentType': {
+ /** @expose */
+ contentType: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.contentType_;
@@ -156,7 +159,8 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
this.contentType_ = value;
}
},
- 'headers': {
+ /** @expose */
+ headers: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
if (this.headers_ === 'undefined') {
@@ -170,7 +174,8 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
this.headers_ = value;
}
},
- 'method': {
+ /** @expose */
+ method: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.method_;
@@ -180,7 +185,8 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
this.method_ = value;
}
},
- 'responseHeaders': {
+ /** @expose */
+ responseHeaders: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -201,19 +207,22 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
return this.responseHeaders_;
}
},
- 'responseURL': {
+ /** @expose */
+ responseURL: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.responseURL_;
}
},
- 'status': {
+ /** @expose */
+ status: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.status_;
}
},
- 'timeout': {
+ /** @expose */
+ timeout: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.timeout_;
@@ -223,7 +232,8 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
this.timeout_ = value;
}
},
- 'url': {
+ /** @expose */
+ url: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.url_;
@@ -233,7 +243,8 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
this.url_ = value;
}
},
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.id;
@@ -246,13 +257,15 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
}
}
},
- 'MXMLDescriptor': {
+ /** @expose */
+ MXMLDescriptor: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return null;
}
},
- 'MXMLProperties': {
+ /** @expose */
+ MXMLProperties: {
/** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index 1a04e5a..4b3344a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -142,19 +142,22 @@ org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
- 'beads': {
+ /** @expose */
+ beads: {
/** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.beads_ = value;
}
},
- 'data': {
+ /** @expose */
+ data: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.element.responseText;
}
},
- 'contentData': {
+ /** @expose */
+ contentData: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.contentData_;
@@ -164,7 +167,8 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
this.contentData_ = value;
}
},
- 'contentType': {
+ /** @expose */
+ contentType: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.contentType_;
@@ -174,7 +178,8 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
this.contentType_ = value;
}
},
- 'headers': {
+ /** @expose */
+ headers: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
if (this.headers_ === undefined) {
@@ -188,7 +193,8 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
this.headers_ = value;
}
},
- 'method': {
+ /** @expose */
+ method: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.method_;
@@ -198,7 +204,8 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
this.method_ = value;
}
},
- 'responseHeaders': {
+ /** @expose */
+ responseHeaders: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -219,19 +226,22 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
return this.responseHeaders_;
}
},
- 'responseURL': {
+ /** @expose */
+ responseURL: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.responseURL_;
}
},
- 'status': {
+ /** @expose */
+ status: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.status_;
}
},
- 'timeout': {
+ /** @expose */
+ timeout: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.timeout_;
@@ -241,7 +251,8 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
this.timeout_ = value;
}
},
- 'url': {
+ /** @expose */
+ url: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.url_;
@@ -251,7 +262,8 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
this.url_ = value;
}
},
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.id_;
@@ -264,13 +276,15 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
}
}
},
- 'MXMLDescriptor': {
+ /** @expose */
+ MXMLDescriptor: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return null;
}
},
- 'MXMLProperties': {
+ /** @expose */
+ MXMLProperties: {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
return null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
index 41efcbd..af2245d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
@@ -71,7 +71,8 @@ org_apache_flex_net_dataConverters_LazyCollection.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_net_dataConverters_LazyCollection.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
set: function(value) {
if (this.strand_ !== value) {
@@ -81,13 +82,15 @@ Object.defineProperties(org_apache_flex_net_dataConverters_LazyCollection.protot
}
}
},
- 'length': {
+ /** @expose */
+ length: {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.rawData_ ? this.rawData_.length : 0;
}
},
- 'inputParser': {
+ /** @expose */
+ inputParser: {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.inputParser_;
@@ -97,7 +100,8 @@ Object.defineProperties(org_apache_flex_net_dataConverters_LazyCollection.protot
this.inputParser_ = value;
}
},
- 'itemConverter': {
+ /** @expose */
+ itemConverter: {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.itemConverter_;
@@ -107,7 +111,8 @@ Object.defineProperties(org_apache_flex_net_dataConverters_LazyCollection.protot
this.itemConverter_ = value;
}
},
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.id_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
index e0b3b69..8e109df 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
@@ -75,7 +75,8 @@ org_apache_flex_svg_TextButton.prototype.finalizeElement =
Object.defineProperties(org_apache_flex_svg_TextButton.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_svg_TextButton} */
get: function() {
return this.element.getAttribute('label');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
index ec98f34..0437029 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
@@ -47,13 +47,15 @@ org_apache_flex_utils_BinaryData.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_utils_BinaryData.prototype, {
- 'data': {
+ /** @expose */
+ data: {
/** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_;
}
},
- 'position': {
+ /** @expose */
+ position: {
/** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.position_;
@@ -63,13 +65,15 @@ Object.defineProperties(org_apache_flex_utils_BinaryData.prototype, {
this.position_ = value;
}
},
- 'length': {
+ /** @expose */
+ length: {
/** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_.byteLength;
}
},
- 'bytesAvailable': {
+ /** @expose */
+ bytesAvailable: {
/** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_.byteLength - this.position_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
index 6edbc24..6579489 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
@@ -38,7 +38,8 @@ org_apache_flex_utils_MixinManager.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_utils_MixinManager.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_utils_MixinManager} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
index a69b3bc..5dcda3d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
@@ -108,19 +108,22 @@ org_apache_flex_utils_Timer.prototype.timerHandler =
};
Object.defineProperties(org_apache_flex_utils_Timer.prototype, {
- 'currentCount': {
+ /** @expose */
+ currentCount: {
/** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._currentCount;
}
},
- 'running': {
+ /** @expose */
+ running: {
/** @this {org_apache_flex_utils_Timer} */
get: function() {
return this.timerInterval !== -1;
}
},
- 'delay': {
+ /** @expose */
+ delay: {
/** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._delay;
@@ -130,7 +133,8 @@ Object.defineProperties(org_apache_flex_utils_Timer.prototype, {
this._delay = value;
}
},
- 'repeatCount': {
+ /** @expose */
+ repeatCount: {
/** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._repeatCount;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
index 6ffe80d..5dae11a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
@@ -38,7 +38,8 @@ org_apache_flex_utils_ViewSourceContextMenuOption.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_utils_ViewSourceContextMenuOption.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_utils_ViewSourceContextMenuOption} */
set: function(value) {}
}
[47/47] git commit: [flex-asjs] [refs/heads/develop] - fix mustella
(js) to handle defineProp
Posted by ah...@apache.org.
fix mustella (js) to handle defineProp
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/23b457c6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/23b457c6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/23b457c6
Branch: refs/heads/develop
Commit: 23b457c6bedd93877a1a3d2d78713d2ffff6a9d0
Parents: 6008098
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 16:04:48 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 16:04:48 2015 -0700
----------------------------------------------------------------------
build.xml | 92 +++++++--------
marmotinni/build.xml | 114 +++++++++----------
marmotinni/java/downloads.xml | 6 +-
.../src/marmotinni/AssertPropertyValue.java | 3 +-
mustella/java/src/marmotinni/TestStep.java | 2 +-
5 files changed, 108 insertions(+), 109 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/23b457c6/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index c5ee70c..3822577 100644
--- a/build.xml
+++ b/build.xml
@@ -1215,45 +1215,45 @@
<arg value="script=${basedir}/mustella/tests/basicTests/halo/scripts/CheckBoxTestScript.mxml" />
<!--<arg value="showSteps=true" />-->
<classpath>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.44.0.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/bsh-1.3.0.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-codec-1.9.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-collections-3.2.1.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-exec-1.1.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-io-2.4.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-lang3-3.3.2.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-logging-1.1.3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cssparser-0.9.14.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/gson-2.3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-18.0.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-2.15.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-core-js-2.15.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpclient-4.3.4.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpcore-4.3.2.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpmime-4.3.4.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.29.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-3.4.0.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-platform-3.4.0.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/json-20080701.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/junit-dep-4.11.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/nekohtml-1.9.21.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/operadriver-1.5.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.1.0.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/sac-1.3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/serializer-2.7.1.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.8.5.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xalan-2.7.1.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xercesImpl-2.11.0.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xml-apis-1.4.01.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.45.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/bsh-1.3.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-codec-1.9.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-collections-3.2.1.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-exec-1.1.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-io-2.4.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-lang3-3.2.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-logging-1.1.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cssparser-0.9.14.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/gson-2.3.1.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-18.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-2.15.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-core-js-2.15.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpclient-4.3.6.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpcore-4.3.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpmime-4.3.6.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.29.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-3.4.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-platform-3.4.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/json-20080701.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/junit-dep-4.11.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/nekohtml-1.9.21.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/operadriver-1.5.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.2.1.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/sac-1.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/serializer-2.7.1.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.8.5.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xalan-2.7.1.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xercesImpl-2.11.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xml-apis-1.4.01.jar"/>
</classpath>
</java>
@@ -1304,7 +1304,7 @@
<mkdir dir="${basedir}/mustella/java/bin"/>
<javac srcdir="${basedir}/mustella/java/src/marmotinni" destdir="${basedir}/mustella/java/bin" debug="off" optimize="on">
<classpath>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.44.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.45.0.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/bsh-1.3.0.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
@@ -1313,18 +1313,18 @@
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-exec-1.1.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-io-2.4.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-lang3-3.3.2.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-lang3-3.2.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-logging-1.1.3.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cssparser-0.9.14.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/gson-2.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/gson-2.3.1.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-18.0.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-2.15.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-core-js-2.15.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpclient-4.3.4.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpcore-4.3.2.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpmime-4.3.4.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpclient-4.3.6.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpcore-4.3.3.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpmime-4.3.6.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.29.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
@@ -1335,7 +1335,7 @@
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/nekohtml-1.9.21.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/operadriver-1.5.jar"/>
- <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.1.0.jar"/>
+ <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.2.1.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/sac-1.3.jar"/>
<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/serializer-2.7.1.jar"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/23b457c6/marmotinni/build.xml
----------------------------------------------------------------------
diff --git a/marmotinni/build.xml b/marmotinni/build.xml
index 0fa501f..42252ff 100644
--- a/marmotinni/build.xml
+++ b/marmotinni/build.xml
@@ -91,45 +91,45 @@
<java classname="${param.test.class}" outputproperty="stdout" classpath="${basedir}/java/bin" fork="true" failonerror="yes">
<arg value="url=${param.test.url}" />
<classpath>
- <pathelement location="${basedir}/java/lib/selenium/selenium-java-2.44.0.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/bsh-1.3.0.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-codec-1.6.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-collections-3.2.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-exec-1.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-io-2.2.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-lang3-3.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-logging-1.1.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/cssparser-0.9.9.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/gson-2.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/guava-14.0.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-2.12.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-core-js-2.12.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/httpclient-4.2.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/httpcore-4.2.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/httpmime-4.2.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/jcommander-1.29.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/jna-3.4.0.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/jna-platform-3.4.0.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/json-20080701.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/junit-dep-4.11.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/nekohtml-1.9.17.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/operadriver-1.2.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/phantomjsdriver-1.0.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/sac-1.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/serializer-2.7.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/testng-6.8.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/xalan-2.7.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/xercesImpl-2.10.0.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/xml-apis-1.4.01.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/selenium-java-2.45.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/bsh-1.3.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-codec-1.9.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-collections-3.2.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-exec-1.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-io-2.4.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-lang3-3.2.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-logging-1.1.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/cssparser-0.9.14.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/gson-2.3.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/guava-18.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-2.15.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-core-js-2.15.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/httpclient-4.3.6.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/httpcore-4.3.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/httpmime-4.3.6.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/jcommander-1.29.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/jna-3.4.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/jna-platform-3.4.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/json-20080701.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/junit-dep-4.11.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/nekohtml-1.9.21.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/operadriver-1.5.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/phantomjsdriver-1.2.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/sac-1.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/serializer-2.7.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/testng-6.8.5.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/xalan-2.7.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/xercesImpl-2.11.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/xml-apis-1.4.01.jar"/>
</classpath>
</java>
@@ -155,27 +155,27 @@
<target name="test_compile" depends="test_prepare">
<javac srcdir="${basedir}/java/src/org/apache/flex/html/textButton" destdir="${basedir}/java/bin" debug="off" optimize="on">
<classpath>
- <pathelement location="${basedir}/java/lib/selenium/selenium-java-2.44.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/selenium-java-2.45.0.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/bsh-1.3.0.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-codec-1.6.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-codec-1.9.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/commons-collections-3.2.1.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/commons-exec-1.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-io-2.2.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-io-2.4.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-lang3-3.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/commons-logging-1.1.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/cssparser-0.9.9.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/gson-2.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/guava-14.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-lang3-3.2.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/commons-logging-1.1.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/cssparser-0.9.14.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/gson-2.3.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/guava-18.0.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-2.12.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-core-js-2.12.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/httpclient-4.2.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/httpcore-4.2.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/httpmime-4.2.1.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-2.15.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/htmlunit-core-js-2.15.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/httpclient-4.3.6.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/httpcore-4.3.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/httpmime-4.3.6.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/jcommander-1.29.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
@@ -183,16 +183,16 @@
<pathelement location="${basedir}/java/lib/selenium/libs/jna-platform-3.4.0.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/json-20080701.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/junit-dep-4.11.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/nekohtml-1.9.17.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/nekohtml-1.9.21.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/operadriver-1.2.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/phantomjsdriver-1.0.3.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/operadriver-1.5.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/phantomjsdriver-1.2.1.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/sac-1.3.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/serializer-2.7.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/testng-6.8.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/testng-6.8.5.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/xalan-2.7.1.jar"/>
- <pathelement location="${basedir}/java/lib/selenium/libs/xercesImpl-2.10.0.jar"/>
+ <pathelement location="${basedir}/java/lib/selenium/libs/xercesImpl-2.11.0.jar"/>
<pathelement location="${basedir}/java/lib/selenium/libs/xml-apis-1.4.01.jar"/>
</classpath>
</javac>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/23b457c6/marmotinni/java/downloads.xml
----------------------------------------------------------------------
diff --git a/marmotinni/java/downloads.xml b/marmotinni/java/downloads.xml
index b25d5c0..26a9d97 100644
--- a/marmotinni/java/downloads.xml
+++ b/marmotinni/java/downloads.xml
@@ -32,9 +32,9 @@
selenium (2.32.0) - Apache 2.0
-->
- <property name="selenium2.jar.dir.name" value="2.44"/>
- <property name="selenium2.jar.name" value="selenium-java-2.44.0"/>
- <property name="selenium2.dir.name" value="selenium-2.44.0"/>
+ <property name="selenium2.jar.dir.name" value="2.45"/>
+ <property name="selenium2.jar.name" value="selenium-java-2.45.0"/>
+ <property name="selenium2.dir.name" value="selenium-2.45.0"/>
<!--
Because the downloads requires a network connection and the JARs don't change very often,
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/23b457c6/mustella/java/src/marmotinni/AssertPropertyValue.java
----------------------------------------------------------------------
diff --git a/mustella/java/src/marmotinni/AssertPropertyValue.java b/mustella/java/src/marmotinni/AssertPropertyValue.java
index 253cc49..156be82 100644
--- a/mustella/java/src/marmotinni/AssertPropertyValue.java
+++ b/mustella/java/src/marmotinni/AssertPropertyValue.java
@@ -65,8 +65,7 @@ public class AssertPropertyValue extends AssertStep {
StringBuilder getScript = new StringBuilder();
insertTargetScript(getScript, target);
- getScript.append("if (typeof(target['get_' + '" + propertyName + "']) == 'function') return target['get_' + '" + propertyName + "']();");
- getScript.append(" else return target['" + propertyName + "'];");
+ getScript.append(" return target['" + propertyName + "'];");
if (TestStep.showScripts)
System.out.println(getScript.toString());
String actualValue = ((JavascriptExecutor)webDriver).executeScript(getScript.toString()).toString();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/23b457c6/mustella/java/src/marmotinni/TestStep.java
----------------------------------------------------------------------
diff --git a/mustella/java/src/marmotinni/TestStep.java b/mustella/java/src/marmotinni/TestStep.java
index 2019f7b..23eb1b3 100644
--- a/mustella/java/src/marmotinni/TestStep.java
+++ b/mustella/java/src/marmotinni/TestStep.java
@@ -112,7 +112,7 @@ public class TestStep {
int n = parts.length;
for (int i = 0; i < n; i++)
{
- sb.append("target = target['get_' + '" + parts[i] + "']();");
+ sb.append("target = target['" + parts[i] + "'];");
}
}
[37/47] git commit: [flex-asjs] [refs/heads/develop] - sprinkle in
@expose to get release version to survive minification. @expose is deprecated
so we may need to re-work this some day
Posted by ah...@apache.org.
sprinkle in @expose to get release version to survive minification. @expose is deprecated so we may need to re-work this some day
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5c486ee6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5c486ee6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5c486ee6
Branch: refs/heads/develop
Commit: 5c486ee6546e8d8f47b4b878d6134c02479e1ba5
Parents: b7f109f
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 7 10:17:27 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 7 10:17:27 2015 -0700
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/cordova/Weinre.js | 6 +-
.../src/org/apache/flex/binding/BindingBase.js | 3 +-
.../src/org/apache/flex/binding/ChainBinding.js | 3 +-
.../org/apache/flex/binding/ConstantBinding.js | 3 +-
.../org/apache/flex/binding/GenericBinding.js | 3 +-
.../org/apache/flex/binding/SimpleBinding.js | 3 +-
.../org/apache/flex/charts/core/ChartBase.js | 3 +-
.../org/apache/flex/charts/core/IAxisBead.js | 11 ++--
.../src/org/apache/flex/charts/core/IChart.js | 3 +-
.../flex/charts/core/IChartItemRenderer.js | 21 ++++---
.../org/apache/flex/charts/core/IChartSeries.js | 12 ++--
.../flex/charts/core/IHorizontalAxisBead.js | 9 ++-
.../flex/charts/core/IVerticalAxisBead.js | 9 ++-
.../src/org/apache/flex/core/Application.js | 8 ++-
.../src/org/apache/flex/core/BeadViewBase.js | 6 +-
.../src/org/apache/flex/core/CallLaterBead.js | 3 +-
.../src/org/apache/flex/core/ContainerBase.js | 12 ++--
.../src/org/apache/flex/core/FilledRectangle.js | 3 +-
.../src/org/apache/flex/core/FormatBase.js | 15 +++--
.../org/apache/flex/core/HTMLElementWrapper.js | 3 +-
.../js/FlexJS/src/org/apache/flex/core/IBead.js | 3 +-
.../FlexJS/src/org/apache/flex/core/IChild.js | 3 +-
.../src/org/apache/flex/core/IContentView.js | 12 ++--
.../src/org/apache/flex/core/IFormatBead.js | 9 ++-
.../src/org/apache/flex/core/ILayoutParent.js | 12 ++--
.../apache/flex/core/IListPresentationModel.js | 3 +-
.../apache/flex/core/ISelectableItemRenderer.js | 15 +++--
.../src/org/apache/flex/core/ISelectionModel.js | 9 ++-
.../src/org/apache/flex/core/ITextModel.js | 3 +-
.../flex/core/ItemRendererClassFactory.js | 3 +-
.../FlexJS/src/org/apache/flex/core/ListBase.js | 9 ++-
.../org/apache/flex/core/SimpleCSSValuesImpl.js | 11 ++++
.../org/apache/flex/core/SimpleStatesImpl.js | 3 +-
.../FlexJS/src/org/apache/flex/core/UIBase.js | 58 ++++++++++++--------
.../src/org/apache/flex/core/ValuesManager.js | 3 +-
.../FlexJS/src/org/apache/flex/core/ViewBase.js | 38 ++++++-------
.../org/apache/flex/core/ViewBaseDataBinding.js | 3 +-
.../src/org/apache/flex/core/graphics/Circle.js | 3 +-
.../apache/flex/core/graphics/GradientBase.js | 23 ++++----
.../apache/flex/core/graphics/GradientEntry.js | 9 ++-
.../apache/flex/core/graphics/GraphicShape.js | 11 +---
.../flex/core/graphics/GraphicsContainer.js | 15 +++--
.../apache/flex/core/graphics/LinearGradient.js | 3 +-
.../src/org/apache/flex/core/graphics/Path.js | 3 +-
.../org/apache/flex/core/graphics/SolidColor.js | 6 +-
.../flex/core/graphics/SolidColorStroke.js | 9 ++-
.../src/org/apache/flex/createjs/CheckBox.js | 6 +-
.../src/org/apache/flex/createjs/Label.js | 3 +-
.../src/org/apache/flex/createjs/TextButton.js | 3 +-
.../src/org/apache/flex/createjs/core/UIBase.js | 18 ++++--
.../org/apache/flex/createjs/core/ViewBase.js | 3 +-
.../org/apache/flex/effects/PlatformWiper.js | 6 +-
.../src/org/apache/flex/events/BrowserEvent.js | 42 +++++++++-----
.../src/org/apache/flex/events/DragEvent.js | 16 ++----
.../src/org/apache/flex/events/MouseEvent.js | 10 ++--
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 9 ++-
.../FlexJS/src/org/apache/flex/html/CheckBox.js | 6 +-
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 3 +-
.../src/org/apache/flex/html/DropDownList.js | 9 ++-
.../js/FlexJS/src/org/apache/flex/html/Image.js | 3 +-
.../org/apache/flex/html/ImageAndTextButton.js | 6 +-
.../js/FlexJS/src/org/apache/flex/html/Label.js | 6 +-
.../js/FlexJS/src/org/apache/flex/html/List.js | 12 ++--
.../src/org/apache/flex/html/MultilineLabel.js | 6 +-
.../src/org/apache/flex/html/NumericStepper.js | 15 +++--
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 9 ++-
.../src/org/apache/flex/html/RadioButton.js | 18 ++++--
.../src/org/apache/flex/html/SimpleList.js | 9 ++-
.../FlexJS/src/org/apache/flex/html/Slider.js | 15 +++--
.../FlexJS/src/org/apache/flex/html/Spinner.js | 15 +++--
.../FlexJS/src/org/apache/flex/html/TextArea.js | 3 +-
.../src/org/apache/flex/html/TextButton.js | 3 +-
.../src/org/apache/flex/html/TextInput.js | 3 +-
.../FlexJS/src/org/apache/flex/html/TitleBar.js | 6 +-
.../org/apache/flex/html/ToggleTextButton.js | 6 +-
.../accessories/NumericOnlyTextInputBead.js | 3 +-
.../flex/html/accessories/PasswordInputBead.js | 3 +-
.../flex/html/accessories/TextPromptBead.js | 6 +-
.../org/apache/flex/html/beads/ButtonBarView.js | 3 +-
.../org/apache/flex/html/beads/ContainerView.js | 6 +-
.../DataItemRendererFactoryForArrayData.js | 6 +-
.../apache/flex/html/beads/ImageButtonView.js | 3 +-
.../src/org/apache/flex/html/beads/ImageView.js | 3 +-
.../src/org/apache/flex/html/beads/ListView.js | 18 ++++--
.../src/org/apache/flex/html/beads/PanelView.js | 6 +-
.../flex/html/beads/ScrollingContainerView.js | 14 +++--
.../apache/flex/html/beads/SliderThumbView.js | 3 +-
.../apache/flex/html/beads/SliderTrackView.js | 3 +-
.../flex/html/beads/TextInputWithBorderView.js | 3 +-
.../TextItemRendererFactoryForArrayData.js | 3 +-
.../controllers/ItemRendererMouseController.js | 3 +-
.../ListSingleSelectionMouseController.js | 3 +-
.../beads/controllers/SliderMouseController.js | 3 +-
.../beads/controllers/SpinnerMouseController.js | 3 +-
.../flex/html/beads/layouts/ButtonBarLayout.js | 6 +-
.../html/beads/layouts/NonVirtualBasicLayout.js | 3 +-
.../layouts/NonVirtualBasicScrollingLayout.js | 3 +-
.../beads/layouts/NonVirtualHorizontalLayout.js | 3 +-
.../beads/layouts/NonVirtualVerticalLayout.js | 3 +-
.../NonVirtualVerticalScrollingLayout.js | 3 +-
.../flex/html/beads/layouts/TileLayout.js | 12 ++--
.../html/beads/models/ArraySelectionModel.js | 15 +++--
.../flex/html/beads/models/DataGridModel.js | 6 +-
.../apache/flex/html/beads/models/ImageModel.js | 6 +-
.../html/beads/models/ListPresentationModel.js | 6 +-
.../apache/flex/html/beads/models/PanelModel.js | 12 ++--
.../apache/flex/html/beads/models/RangeModel.js | 18 ++++--
.../apache/flex/html/beads/models/TextModel.js | 6 +-
.../flex/html/beads/models/TitleBarModel.js | 12 ++--
.../ButtonBarButtonItemRenderer.js | 6 +-
.../flex/html/supportClasses/DataGridColumn.js | 12 ++--
.../html/supportClasses/DataItemRenderer.js | 15 +++--
.../html/supportClasses/NonVirtualDataGroup.js | 6 +-
.../html/supportClasses/StringItemRenderer.js | 15 +++--
.../html/supportClasses/UIItemRendererBase.js | 21 ++++---
.../src/org/apache/flex/html5/CheckBox.js | 4 +-
.../src/org/apache/flex/html5/ComboBox.js | 6 +-
.../FlexJS/src/org/apache/flex/html5/Label.js | 3 +-
.../src/org/apache/flex/html5/RadioButton.js | 9 ++-
.../src/org/apache/flex/html5/TextArea.js | 3 +-
.../src/org/apache/flex/html5/TextButton.js | 3 +-
.../src/org/apache/flex/html5/TextInput.js | 3 +-
.../src/org/apache/flex/jquery/CheckBox.js | 6 +-
.../src/org/apache/flex/jquery/RadioButton.js | 18 ++++--
.../src/org/apache/flex/jquery/TextButton.js | 3 +-
.../org/apache/flex/jquery/ToggleTextButton.js | 9 ++-
.../src/org/apache/flex/maps/google/Map.js | 6 +-
.../apache/flex/maps/google/beads/MapView.js | 3 +-
.../apache/flex/maps/google/models/MapModel.js | 15 +++--
.../src/org/apache/flex/net/BinaryUploader.js | 39 ++++++++-----
.../src/org/apache/flex/net/HTTPService.js | 42 +++++++++-----
.../flex/net/dataConverters/LazyCollection.js | 15 +++--
.../src/org/apache/flex/svg/TextButton.js | 3 +-
.../src/org/apache/flex/utils/BinaryData.js | 12 ++--
.../src/org/apache/flex/utils/MixinManager.js | 3 +-
.../FlexJS/src/org/apache/flex/utils/Timer.js | 12 ++--
.../flex/utils/ViewSourceContextMenuOption.js | 3 +-
137 files changed, 767 insertions(+), 424 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js b/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
index ccef391..130c161 100644
--- a/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
+++ b/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
@@ -33,13 +33,15 @@ org_apache_cordova_Weinre = function() {
Object.defineProperties(org_apache_cordova_Weinre.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_cordova_Weinre} */
set: function(value) {
this.strand_ = value;
}
},
- 'guid': {
+ /** @expose */
+ guid: {
/** @this {org_apache_cordova_Weinre} */
set: function(value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
index 8857bc4..863fc86 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
@@ -100,7 +100,8 @@ org_apache_flex_binding_BindingBase.prototype.sourceChangeHandler = function(eve
Object.defineProperties(org_apache_flex_binding_BindingBase.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_binding_BindingBase} */
set: function(value) {
if (this.destination == null)
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
index 2dde849..a7b73b9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
@@ -197,7 +197,8 @@ org_apache_flex_binding_ChainWatcher.prototype.handler = function(event) {
Object.defineProperties(org_apache_flex_binding_ChainBinding.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_binding_ChainBinding} */
set: function(value) {
this.applyBinding();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index 8e60fb1..7f992ac 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -40,7 +40,8 @@ org_apache_flex_binding_ConstantBinding.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_binding_ConstantBinding.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_binding_ConstantBinding} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_binding_ConstantBinding, this, 'strand', value);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
index fd4ee23..84eb1f0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
@@ -55,7 +55,8 @@ org_apache_flex_binding_GenericBinding.prototype.destinationFunction = null;
Object.defineProperties(org_apache_flex_binding_GenericBinding.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_binding_GenericBinding} */
set: function(value) {
this.destination = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index a8cc3c4..78197fb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -70,7 +70,8 @@ org_apache_flex_binding_SimpleBinding.prototype.sourceChangeHandler = function(e
Object.defineProperties(org_apache_flex_binding_SimpleBinding.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_binding_SimpleBinding} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
index 6486bf0..7ed7649 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
@@ -70,7 +70,8 @@ org_apache_flex_charts_core_ChartBase.prototype.series_ = null;
Object.defineProperties(org_apache_flex_charts_core_ChartBase.prototype, {
- 'series': {
+ /** @expose */
+ series: {
/** @this {org_apache_flex_charts_core_ChartBase} */
get: function() {
return this.series_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
index 5409b71..f5870d8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
@@ -32,17 +32,18 @@ org_apache_flex_charts_core_IAxisBead = function() {
};
Object.defineProperties(org_apache_flex_charts_core_IAxisBead.prototype, {
- 'placement': {
+ /** @expose */
+ placement: {
get: function() {},
set: function(value) {}
},
-
- 'axisStroke': {
+ /** @expose */
+ axisStroke: {
get: function() {},
set: function(value) {}
},
-
- 'tickStroke': {
+ /** @expose */
+ tickStroke: {
get: function() {},
set: function(value) {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
index e5cde6f..e337ac5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
@@ -30,7 +30,8 @@ org_apache_flex_charts_core_IChart = function() {
Object.defineProperties(org_apache_flex_charts_core_IChart.prototype, {
- 'series': {
+ /** @expose */
+ series: {
get: function() {},
set: function(value) {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
index 7d5f21a..6ca280e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
@@ -33,28 +33,35 @@ org_apache_flex_charts_core_IChartItemRenderer = function() {
Object.defineProperties(org_apache_flex_charts_core_IChart.prototype, {
- 'xField': {
+ /** @expose */
+ xField: {
get: function() {},
set: function(value) {}
},
- 'yField': {
+ /** @expose */
+ yField: {
get: function() {},
set: function(value) {}
},
- 'fillColor': {
+ /** @expose */
+ fillColor: {
get: function() {},
set: function(value) {}
},
- 'x': {
+ /** @expose */
+ x: {
set: function(value) {}
},
- 'y': {
+ /** @expose */
+ y: {
set: function(value) {}
},
- 'width': {
+ /** @expose */
+ width: {
set: function(value) {}
},
- 'height': {
+ /** @expose */
+ height: {
set: function(value) {}
}
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
index ebbccb5..b75086a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
@@ -32,19 +32,23 @@ org_apache_flex_charts_core_IChartSeries = function() {
Object.defineProperties(org_apache_flex_charts_core_IChartSeries.prototype, {
- 'xField': {
+ /** @expose */
+ xField: {
get: function() {},
set: function(value) {}
},
- 'yField': {
+ /** @expose */
+ yField: {
get: function() {},
set: function(value) {}
},
- 'fillColor': {
+ /** @expose */
+ fillColor: {
get: function() {},
set: function(value) {}
},
- 'itemRenderer': {
+ /** @expose */
+ itemRenderer: {
get: function() {},
set: function(value) {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
index 84913f0..e3173de 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
@@ -44,14 +44,17 @@ org_apache_flex_charts_core_IHorizontalAxisBead.prototype.FLEXJS_CLASS_INFO = {
Object.defineProperties(org_apache_flex_charts_core_IHorizontalAxisBead.prototype, {
- 'axisHeight': {
+ /** @expose */
+ axisHeight: {
set: function(value) {},
get: function() {}
},
- 'maximum': {
+ /** @expose */
+ maximum: {
get: function() {}
},
- 'minimum': {
+ /** @expose */
+ minimum: {
get: function() {}
}
});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
index 787b8f3..f4a9bac 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
@@ -43,14 +43,17 @@ org_apache_flex_charts_core_IVerticalAxisBead.prototype.FLEXJS_CLASS_INFO = {
};
Object.defineProperties(org_apache_flex_charts_core_IVerticalAxisBead.prototype, {
- 'axisWidth': {
+ /** @expose */
+ axisWidth: {
set: function(value) {},
get: function() {}
},
- 'maximum': {
+ /** @expose */
+ maximum: {
get: function() {}
},
- 'minimum': {
+ /** @expose */
+ minimum: {
get: function() {}
}
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
index 1f96fa4..b04659c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
@@ -66,7 +66,8 @@ org_apache_flex_core_Application.prototype.model = null;
Object.defineProperties(org_apache_flex_core_Application.prototype, {
- 'valuesImpl': {
+ /** @expose */
+ valuesImpl: {
/** @this {org_apache_flex_core_Application} */
set: function(value) {
org_apache_flex_core_ValuesManager.valuesImpl = value;
@@ -75,8 +76,9 @@ Object.defineProperties(org_apache_flex_core_Application.prototype, {
}
}
},
- 'MXMLDescriptor': {
- /** @this {org_apache_flex_core_Application} */
+ /** @expose */
+ MXMLDescriptor: {
+ /** @this {org_apache_flex_core_Application} */
get: function() {
return null;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
index 9f5d903..924d48a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
@@ -51,7 +51,8 @@ org_apache_flex_core_BeadViewBase.prototype._strand = null;
Object.defineProperties(org_apache_flex_core_BeadViewBase.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_core_BeadViewBase} */
set: function(value) {
if (this._strand !== value) {
@@ -59,7 +60,8 @@ Object.defineProperties(org_apache_flex_core_BeadViewBase.prototype, {
}
}
},
- 'host': {
+ /** @expose */
+ host: {
/** @this {org_apache_flex_core_BeadViewBase} */
get: function() {
return this._strand;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
index e625117..5ddfbcf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
@@ -47,7 +47,8 @@ org_apache_flex_core_CallLaterBead.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_CallLaterBead.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_binding_GenericBinding} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 f6bf4d4..314d1c5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -130,13 +130,15 @@ org_apache_flex_core_ContainerBase.prototype.setMXMLDescriptor =
Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
- 'MXMLDescriptor': {
+ /** @expose */
+ MXMLDescriptor: {
/** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.mxmlDescriptor;
}
},
- 'states': {
+ /** @expose */
+ states: {
/** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.states_;
@@ -157,7 +159,8 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
}
}
},
- 'currentState': {
+ /** @expose */
+ currentState: {
/** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.currentState_;
@@ -170,7 +173,8 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
this.dispatchEvent(event);
}
},
- 'transitions': {
+ /** @expose */
+ transitions: {
/** @this {org_apache_flex_core_ContainerBase} */
get: function() {
return this.transitions_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
index ee5a125..836be5a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
@@ -55,7 +55,8 @@ org_apache_flex_core_FilledRectangle.prototype.addedToParent = function() {
Object.defineProperties(org_apache_flex_core_FilledRectangle.prototype, {
- 'fillColor': {
+ /** @expose */
+ fillColor: {
/** @this {org_apache_flex_core_FilledRectangle} */
get: function() {
return this.fillColor_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index 6e751a9..41358eb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -73,20 +73,23 @@ org_apache_flex_core_FormatBase.prototype._formattedResult = '';
Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_core_FormatBase} */
set: function(value) {
this.strand_ = value;
}
},
- 'propertyValue': {
+ /** @expose */
+ propertyValue: {
/** @this {org_apache_flex_core_FormatBase} */
get: function() {
var value = this.strand_[this.propertyName];
return value;
}
},
- 'propertyName': {
+ /** @expose */
+ propertyName: {
/** @this {org_apache_flex_core_FormatBase} */
get: function() {
if (this._propertyName == null) {
@@ -99,7 +102,8 @@ Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
this._propertyName = value;
}
},
- 'eventName': {
+ /** @expose */
+ eventName: {
/** @this {org_apache_flex_core_FormatBase} */
get: function() {
if (this._eventName == null) {
@@ -112,7 +116,8 @@ Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
this._eventName = value;
}
},
- 'formattedString': {
+ /** @expose */
+ formattedString: {
/** @this {org_apache_flex_core_FormatBase} */
get: function() {
return null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 01dbfdf..88021d5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -100,7 +100,8 @@ org_apache_flex_core_HTMLElementWrapper.prototype.getBeadByType =
Object.defineProperties(org_apache_flex_core_HTMLElementWrapper.prototype, {
- 'MXMLDescriptor': {
+ /** @expose */
+ MXMLDescriptor: {
get: function() {
return null;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
index 619a314..dc8903c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
@@ -41,7 +41,8 @@ org_apache_flex_core_IBead.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_IBead.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_binding_GenericBinding} */
set: function(value) {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
index 5ef42fd..6971f5e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
@@ -32,7 +32,8 @@ org_apache_flex_core_IChild = function() {
Object.defineProperties(org_apache_flex_core_IChild.prototype, {
- 'parent': {
+ /** @expose */
+ parent: {
get: function() {}
}
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
index a171812..54761ef 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
@@ -32,19 +32,23 @@ org_apache_flex_core_IContentView = function() {
Object.defineProperties(org_apache_flex_core_IContentView.prototype, {
- 'x': {
+ /** @expose */
+ x: {
get: function() {},
set: function(value) {}
},
- 'y': {
+ /** @expose */
+ y: {
get: function() {},
set: function(value) {}
},
- 'width': {
+ /** @expose */
+ width: {
get: function() {},
set: function(value) {}
},
- 'height': {
+ /** @expose */
+ height: {
get: function() {},
set: function(value) {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
index 745dcab..9074478 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
@@ -31,15 +31,18 @@ org_apache_flex_core_IFormatBead = function() {
Object.defineProperties(org_apache_flex_core_IFormatBead.prototype, {
- 'propertyName': {
+ /** @expose */
+ propertyName: {
get: function() {},
set: function(value) {}
},
- 'eventName': {
+ /** @expose */
+ eventName: {
get: function() {},
set: function(value) {}
},
- 'formattedString': {
+ /** @expose */
+ formattedString: {
get: function() {}
}
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
index 91ba413..0c2e3f2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
@@ -39,17 +39,21 @@ org_apache_flex_core_ILayoutParent.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_ILayoutParent.prototype, {
- 'contentView': {
+ /** @expose */
+ contentView: {
get: function() {}
},
- 'border': {
+ /** @expose */
+ border: {
get: function() {}
},
- 'vScrollBar': {
+ /** @expose */
+ vScrollBar: {
get: function() {},
set: function(value) {}
},
- 'resizeableView': {
+ /** @expose */
+ resizeableView: {
get: function() {}
}
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
index 04f56c4..f2583fa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
@@ -36,7 +36,8 @@ org_apache_flex_core_IListPresentationModel = function() {
Object.defineProperties(org_apache_flex_core_IListPresentationModel.prototype, {
- 'rowHeight': {
+ /** @expose */
+ rowHeight: {
set: function(value) {},
get: function() {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
index 2396799..ca759e8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
@@ -36,23 +36,28 @@ org_apache_flex_core_ISelectableItemRenderer = function() {
Object.defineProperties(org_apache_flex_core_ISelectableItemRenderer.prototype, {
- 'labelField': {
+ /** @expose */
+ labelField: {
set: function(value) {},
get: function() {}
},
- 'index': {
+ /** @expose */
+ index: {
set: function(value) {},
get: function() {}
},
- 'selected': {
+ /** @expose */
+ selected: {
set: function(value) {},
get: function() {}
},
- 'hovered': {
+ /** @expose */
+ hovered: {
set: function(value) {},
get: function() {}
},
- 'down': {
+ /** @expose */
+ down: {
set: function(value) {},
get: function() {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
index bb0e7f6..b0e20fe 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
@@ -36,15 +36,18 @@ org_apache_flex_core_ISelectionModel = function() {
Object.defineProperties(org_apache_flex_core_ISelectionModel.prototype, {
- 'dataProvider': {
+ /** @expose */
+ dataProvider: {
set: function(value) {},
get: function() {}
},
- 'selectedIndex': {
+ /** @expose */
+ selectedIndex: {
set: function(value) {},
get: function() {}
},
- 'selectedItem': {
+ /** @expose */
+ selectedItem: {
set: function(value) {},
get: function() {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
index 503f813..78368cc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
@@ -36,7 +36,8 @@ org_apache_flex_core_ITextModel = function() {
Object.defineProperties(org_apache_flex_core_ITextModel.prototype, {
- 'text': {
+ /** @expose */
+ text: {
set: function(value) {},
get: function() {}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
index be76971..84b16c4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -45,7 +45,8 @@ org_apache_flex_core_ItemRendererClassFactory.
Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_core_ItemRendererClassFactory} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
index d7ef090..c392332 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
@@ -66,7 +66,8 @@ org_apache_flex_core_ListBase.prototype.createElement = function() {
Object.defineProperties(org_apache_flex_core_ListBase.prototype, {
- 'dataProvider': {
+ /** @expose */
+ dataProvider: {
/** @this {org_apache_flex_core_ListBase} */
get: function() {
return this.model.dataProvider;
@@ -76,7 +77,8 @@ Object.defineProperties(org_apache_flex_core_ListBase.prototype, {
this.model.dataProvider = value;
}
},
- 'selectedIndex': {
+ /** @expose */
+ selectedIndex: {
/** @this {org_apache_flex_core_ListBase} */
get: function() {
return this.model.selectedIndex;
@@ -86,7 +88,8 @@ Object.defineProperties(org_apache_flex_core_ListBase.prototype, {
this.model.selectedIndex = value;
}
},
- 'selectedItem': {
+ /** @expose */
+ selectedItem: {
/** @this {org_apache_flex_core_ListBase} */
get: function() {
return this.model.selectedItem;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 97f020e..6d59057 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -285,6 +285,14 @@ org_apache_flex_core_SimpleCSSValuesImpl.colorStyles = {
/**
+ * The properties that enumerate that we skip
+ */
+org_apache_flex_core_SimpleCSSValuesImpl.skipStyles = {
+ 'constructor': 1
+};
+
+
+/**
* @param {Object} thisObject The object to apply styles to;
* @param {Object} styles The styles.
*/
@@ -292,8 +300,11 @@ org_apache_flex_core_SimpleCSSValuesImpl.prototype.applyStyles =
function(thisObject, styles) {
var styleList = org_apache_flex_core_SimpleCSSValuesImpl.perInstanceStyles;
var colorStyles = org_apache_flex_core_SimpleCSSValuesImpl.colorStyles;
+ var skipStyles = org_apache_flex_core_SimpleCSSValuesImpl.skipStyles;
for (var p in styles) {
//if (styleList[p])
+ if (skipStyles[p])
+ continue;
var value = styles[p];
if (typeof(value) == 'number') {
if (colorStyles[p])
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 e0ac5c7..34ecf93 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
@@ -58,7 +58,8 @@ org_apache_flex_core_SimpleStatesImpl.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_SimpleStatesImpl.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_core_SimpleStatesImpl} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 d623e64..3be140a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -354,24 +354,23 @@ org_apache_flex_core_UIBase.prototype.removeBead =
Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
- /**
- * @expose
- * @param {Array.<Object>} value The list of beads from MXML.
- */
- 'beads': {
+ /** @expose */
+ beads: {
/** @this {org_apache_flex_core_UIBase} */
set: function(value) {
this.mxmlBeads_ = value;
}
},
- 'numElements': {
+ /** @expose */
+ numElements: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
var children = this.internalChildren();
return children.length;
}
},
- 'parent': {
+ /** @expose */
+ parent: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
var p = this.positioner.parentNode;
@@ -379,7 +378,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return wrapper;
}
},
- 'alpha': {
+ /** @expose */
+ alpha: {
/** @this {org_apache_flex_core_UIBase} */
set: function(alpha) {
this.positioner.style.opacity = alpha;
@@ -391,7 +391,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return alpha;
}
},
- 'x': {
+ /** @expose */
+ x: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.positioner.style.position = 'absolute';
@@ -406,7 +407,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return pixels;
}
},
- 'y': {
+ /** @expose */
+ y: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.positioner.style.position = 'absolute';
@@ -421,7 +423,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return pixels;
}
},
- 'width': {
+ /** @expose */
+ width: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitWidth = pixels;
@@ -445,7 +448,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return pixels;
}
},
- 'explicitWidth': {
+ /** @expose */
+ explicitWidth: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitWidth_ = pixels;
@@ -457,7 +461,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return this.explicitWidth_;
}
},
- 'percentWidth': {
+ /** @expose */
+ percentWidth: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.percentWidth_ = pixels;
@@ -470,7 +475,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return this.percentWidth_;
}
},
- 'height': {
+ /** @expose */
+ height: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitHeight = pixels;
@@ -494,7 +500,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return pixels;
}
},
- 'explicitHeight': {
+ /** @expose */
+ explicitHeight: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.explicitHeight_ = pixels;
@@ -506,7 +513,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return this.explicitHeight_;
}
},
- 'percentHeight': {
+ /** @expose */
+ percentHeight: {
/** @this {org_apache_flex_core_UIBase} */
set: function(pixels) {
this.percentHeight_ = pixels;
@@ -519,7 +527,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
return this.percentHeight_;
}
},
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.id_;
@@ -533,7 +542,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
}
},
- 'className': {
+ /** @expose */
+ className: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.className_;
@@ -547,7 +557,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
}
},
- 'model': {
+ /** @expose */
+ model: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
if (this.model_ == null) {
@@ -572,7 +583,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
}
},
- 'style': {
+ /** @expose */
+ style: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.style_;
@@ -590,7 +602,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
}
},
- 'visible': {
+ /** @expose */
+ visible: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
return this.positioner.style.display !== 'none';
@@ -614,7 +627,8 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
}
},
- 'topMostEventDispatcher': {
+ /** @expose */
+ topMostEventDispatcher: {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
return document.body.flexjs_wrapper;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
index 2e5617b..7b3172c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
@@ -43,7 +43,8 @@ org_apache_flex_core_ValuesManager.prototype.valuesImpl = null;
Object.defineProperties(org_apache_flex_core_ValuesManager.prototype, {
- 'valuesImpl': {
+ /** @expose */
+ valuesImpl: {
/** @this {org_apache_flex_core_ValuesManager} */
get: function() {
return org_apache_flex_core_ValuesManager.valuesImpl;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 3c2a1ad..3ed0349 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -73,10 +73,10 @@ org_apache_flex_core_ViewBase.prototype.FLEXJS_CLASS_INFO =
/**
- * @expose
+ * @private
* @type {Object}
*/
-org_apache_flex_core_ViewBase.prototype.applicationModel = null;
+org_apache_flex_core_ViewBase.prototype.applicationModel_ = null;
/**
@@ -90,13 +90,6 @@ org_apache_flex_core_ViewBase.prototype.generateMXMLAttributes = function(data)
/**
* @expose
- * @type {Array}
- */
-org_apache_flex_core_ViewBase.prototype.MXMLDescriptor = null;
-
-
-/**
- * @expose
* @type {Object} The document.
*/
org_apache_flex_core_ViewBase.prototype.document = null;
@@ -156,10 +149,8 @@ org_apache_flex_core_ViewBase.prototype.hasState = function(state) {
Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
- /**
- * @return {Array} An array of descriptors.
- */
- 'MXMLDescriptor': {
+ /** @expose */
+ MXMLDescriptor: {
/** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.mxmldd;
@@ -169,16 +160,19 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
this.mxmldd = value;
}
},
- /**
- * @return {Object} The application model.
- */
- 'applicationModel': {
+ /** @expose */
+ applicationModel: {
/** @this {org_apache_flex_core_ViewBase} */
get: function() {
- return this.applicationModel;
+ return this.applicationModel_;
+ },
+ /** @this {org_apache_flex_core_ViewBase} */
+ set: function(value) {
+ this.applicationModel_ = value;
}
},
- 'states': {
+ /** @expose */
+ states: {
/** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.states_;
@@ -199,7 +193,8 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
}
}
},
- 'currentState': {
+ /** @expose */
+ currentState: {
/** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.currentState_;
@@ -212,7 +207,8 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
this.dispatchEvent(event);
}
},
- 'transitions': {
+ /** @expose */
+ transitions: {
/** @this {org_apache_flex_core_ViewBase} */
get: function() {
return this.transitions_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
index 4dbedea..6271c0f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
@@ -54,7 +54,8 @@ org_apache_flex_core_ViewBaseDataBinding.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_ViewBaseDataBinding.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_core_ViewBaseDataBinding} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
index c9cb729..9dba559 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
@@ -47,7 +47,8 @@ org_apache_flex_core_graphics_Circle.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_Circle.prototype, {
- 'radius': {
+ /** @expose */
+ radius: {
/** @this {org_apache_flex_core_graphics_Circle} */
set: function(v) {
this.radius_ = v;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
index 31ff6d0..3d66aaf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
@@ -65,7 +65,8 @@ org_apache_flex_core_graphics_GradientBase.prototype._rotation = 0.0;
Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
- 'entries': {
+ /** @expose */
+ entries: {
/** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._entries;
@@ -75,15 +76,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
this._entries = value;
}
},
- /**
- * By default, the LinearGradientStroke defines a transition
- * from left to right across the control.
- * Use the <code>rotation</code> property to control the transition direction.
- * For example, a value of 180.0 causes the transition
- * to occur from right to left, rather than from left to right.
- * @return {number}
- */
- 'rotation': {
+ /** @expose */
+ rotation: {
/** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._rotation;
@@ -93,7 +87,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
this._rotation = value;
}
},
- 'x': {
+ /** @expose */
+ x: {
/** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return this._x;
@@ -103,7 +98,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
this._x = value;
}
},
- 'y': {
+ /** @expose */
+ y: {
/** @this {org_apache_flex_core_graphics_GradientBase} */
set: function(value) {
this._y = value;
@@ -113,7 +109,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
return this._y;
}
},
- 'newId': {
+ /** @expose */
+ newId: {
/** @this {org_apache_flex_core_graphics_GradientBase} */
get: function() {
return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
index ed75287..632a4ed 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
@@ -56,7 +56,8 @@ org_apache_flex_core_graphics_GradientEntry.prototype._ratio = 0x000000;
Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
- 'alpha': {
+ /** @expose */
+ alpha: {
/** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._alpha;
@@ -69,7 +70,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
}
}
},
- 'color': {
+ /** @expose */
+ color: {
/** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._color;
@@ -82,7 +84,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
}
}
},
- 'ratio': {
+ /** @expose */
+ ratio: {
/** @this {org_apache_flex_core_graphics_GradientEntry} */
get: function() {
return this._ratio;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
index 3b7d09e..4f6851c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
@@ -89,10 +89,8 @@ org_apache_flex_core_graphics_GraphicShape.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_GraphicShape.prototype, {
- /**
- * @type {org_apache_flex_core_graphics_IFill}
- */
- 'fill': {
+ /** @expose */
+ fill: {
/** @this {org_apache_flex_core_graphics_GraphicShape} */
get: function() {
return this.fill_;
@@ -102,10 +100,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicShape.prototype, {
this.fill_ = value;
}
},
- /**
- * @type {org_apache_flex_core_graphics_IStroke} The stroke object.
- */
- 'stroke': {
+ stroke: {
/** @this {org_apache_flex_core_graphics_GraphicShape} */
get: function() {
return this.stroke_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
index c268665..b5ec97f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
@@ -50,13 +50,15 @@ org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = fu
Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototype, {
- 'numChildren': {
+ /** @expose */
+ numChildren: {
/** @this {org_apache_flex_core_graphics_GraphicsContainer} */
get: function() {
return this.internalChildren().length;
}
},
- 'width': {
+ /** @expose */
+ width: {
/** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
@@ -65,7 +67,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
this.element.style.width = String(value) + 'px';
}
},
- 'height': {
+ /** @expose */
+ height: {
/** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
@@ -74,7 +77,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
this.element.style.height = String(value) + 'px';
}
},
- 'x': {
+ /** @expose */
+ x: {
/** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
@@ -85,7 +89,8 @@ Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototyp
this.element.offsetLeft = value;
}
},
- 'y': {
+ /** @expose */
+ y: {
/** @this {org_apache_flex_core_graphics_GraphicsContainer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
index d89052e..5711ffc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
@@ -43,7 +43,8 @@ org_apache_flex_core_graphics_LinearGradient.prototype._scaleX = 1.0;
Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
- 'scaleX': {
+ /** @expose */
+ scaleX: {
/** @this {org_apache_flex_core_graphics_LinearGradient} */
get: function() {
return this._scaleX;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
index b72f8f1..1a8c04c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
@@ -46,7 +46,8 @@ org_apache_flex_core_graphics_Path.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_Path.prototype, {
- 'data': {
+ /** @expose */
+ data: {
/** @this {org_apache_flex_core_graphics_Path} */
set: function(v) {
this.data_ = v;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
index 1f260cb..d534260 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
@@ -50,7 +50,8 @@ org_apache_flex_core_graphics_SolidColor.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColor.prototype, {
- 'color': {
+ /** @expose */
+ color: {
/** @this {org_apache_flex_core_graphics_SolidColor} */
get: function() {
return this.color_;
@@ -60,7 +61,8 @@ Object.defineProperties(org_apache_flex_core_graphics_SolidColor.prototype, {
this.color_ = value;
}
},
- 'alpha': {
+ /** @expose */
+ alpha: {
/** @this {org_apache_flex_core_graphics_SolidColor} */
get: function() {
return this.alpha_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
index 9453bbd..1ce52f6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
@@ -56,7 +56,8 @@ org_apache_flex_core_graphics_SolidColorStroke.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype, {
- 'color': {
+ /** @expose */
+ color: {
/** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.color_;
@@ -66,7 +67,8 @@ Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype
this.color_ = value;
}
},
- 'alpha': {
+ /** @expose */
+ alpha: {
/** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.alpha_;
@@ -76,7 +78,8 @@ Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype
this.alpha_ = value;
}
},
- 'weight': {
+ /** @expose */
+ weight: {
/** @this {org_apache_flex_core_graphics_SolidColorStroke} */
get: function() {
return this.weight_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
index a15e44a..06c89a8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
@@ -94,7 +94,8 @@ org_apache_flex_createjs_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_CheckBox.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_createjs_CheckBox} */
get: function() {
return this.checkBoxLabel.text;
@@ -104,7 +105,8 @@ Object.defineProperties(org_apache_flex_createjs_CheckBox.prototype, {
this.checkBoxLabel.text = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_createjs_CheckBox} */
get: function() {
return this.selected;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
index 0318f95..6dc5f10 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
@@ -48,7 +48,8 @@ org_apache_flex_createjs_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_createjs_Label} */
get: function() {
return this.element.text;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
index 601116c..d6b8425 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
@@ -76,7 +76,8 @@ org_apache_flex_createjs_TextButton.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_TextButton.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_createjs_TextButton} */
get: function() {
return this.buttonLabel.text;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
index 9e301ea..ee80cd7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
@@ -57,35 +57,40 @@ org_apache_flex_createjs_core_UIBase.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_core_UIBase.prototype, {
- 'x': {
+ /** @expose */
+ x: {
/** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.x = pixels;
this.element.getStage().update();
}
},
- 'y': {
+ /** @expose */
+ y: {
/** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.y = pixels;
this.element.getStage().update();
}
},
- 'width': {
+ /** @expose */
+ width: {
/** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.width = pixels;
this.element.getStage().update();
}
},
- 'height': {
+ /** @expose */
+ height: {
/** @this {org_apache_flex_createjs_core_UIBase} */
set: function(pixels) {
this.positioner.height = pixels;
this.element.getStage().update();
}
},
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_createjs_core_UIBase} */
get: function() {
return this.name;
@@ -99,7 +104,8 @@ Object.defineProperties(org_apache_flex_createjs_core_UIBase.prototype, {
}
}
},
- 'model': {
+ /** @expose */
+ model: {
/** @this {org_apache_flex_createjs_core_UIBase} */
get: function() {
return this.model;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
index 5d58d8f..baf26a3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
@@ -37,7 +37,8 @@ goog.inherits(org_apache_flex_createjs_core_ViewBase,
Object.defineProperties(org_apache_flex_createjs_core_ViewBase.prototype, {
- 'applicationModel': {
+ /** @expose */
+ applicationModel: {
/** @this {org_apache_flex_createjs_core_ViewBase} */
get: function() {
return this.applicationModel_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
index a3282ca..de36898 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
@@ -50,7 +50,8 @@ org_apache_flex_effects_PlatformWiper.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_effects_PlatformWiper.prototype, {
- 'target': {
+ /** @expose */
+ target: {
/** @this {org_apache_flex_effects_PlatformWiper} */
set: function(target) {
if (target == null) {
@@ -65,7 +66,8 @@ Object.defineProperties(org_apache_flex_effects_PlatformWiper.prototype, {
}
}
},
- 'visibleRect': {
+ /** @expose */
+ visibleRect: {
/** @this {org_apache_flex_effects_PlatformWiper} */
set: function(rect) {
/*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 454c6ee..74c9d73 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/BrowserEvent.js
@@ -53,83 +53,95 @@ org_apache_flex_events_BrowserEvent.prototype.preventDefault = function() {
}
Object.defineProperties(org_apache_flex_events_BrowserEvent.prototype, {
- 'currentTarget': {
+ /** @expose */
+ currentTarget: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
var o = this.wrappedEvent.currentTarget;
- if (o.flexjs_wrapper)
+ if (o && o.flexjs_wrapper)
return o.flexjs_wrapper;
return o;
}
},
- 'button': {
+ /** @expose */
+ button: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.button;
}
},
- 'charCode': {
+ /** @expose */
+ charCode: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.charCode;
}
},
- 'clientX': {
+ /** @expose */
+ clientX: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.clientX;
}
},
- 'clientY': {
+ /** @expose */
+ clientY: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.clientY;
}
},
- 'keyCode': {
+ /** @expose */
+ keyCode: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.keyCode;
}
},
- 'offsetX': {
+ /** @expose */
+ offsetX: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.offsetX;
}
},
- 'offsetY': {
+ /** @expose */
+ offsetY: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.offsetY;
}
},
- 'screenX': {
+ /** @expose */
+ screenX: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.screenX;
}
},
- 'screenY': {
+ /** @expose */
+ screenY: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
return this.wrappedEvent.screenY;
}
},
- 'relatedTarget': {
+ /** @expose */
+ relatedTarget: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
var o = this.wrappedEvent.relatedTarget;
- if (o.flexjs_wrapper)
+ if (o && o.flexjs_wrapper)
return o.flexjs_wrapper;
return o;
}
},
- 'target': {
+ /** @expose */
+ target: {
/** @this {org_apache_flex_events_BrowserEvent} */
get: function() {
var o = this.wrappedEvent.target;
- if (o.flexjs_wrapper)
+ if (o && o.flexjs_wrapper)
return o.flexjs_wrapper;
return o;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 e33feda..b758c25 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/DragEvent.js
@@ -51,20 +51,16 @@ org_apache_flex_events_DragEvent.prototype.FLEXJS_CLASS_INFO =
/**
* @expose
* @param {string} type The event type.
- * @param {Event} event The mouse event to base the DragEvent on.
+ * @param {Event} e The mouse event to base the DragEvent on.
* @return {MouseEvent} The new event.
*/
org_apache_flex_events_DragEvent.createDragEvent =
- function(type, event) {
+ function(type, e) {
var out = new MouseEvent(type);
- out.initMouseEvent(type, true, true);
- out.screenX = event.screenX;
- out.screenY = event.screenY;
- out.clientX = event.clientX;
- out.clientY = event.clientY;
- out.ctrlKey = event.ctrlKey;
- out.shiftKey = event.shiftKey;
- out.alttKey = event.altKey;
+ out.initMouseEvent(type, true, true,
+ e.view, e.detail, e.screenX, e.screenY,
+ 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/5c486ee6/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 962245e..b2d1094 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
@@ -178,11 +178,9 @@ org_apache_flex_events_MouseEvent.targets = [];
*/
org_apache_flex_events_MouseEvent.makeMouseEvent = function(type, e) {
var out = new MouseEvent(type);
- out.initMouseEvent(type, false, false);
- out.screenX = e.screenX;
- out.screenY = e.screenY;
- out.ctrlKey = e.ctrlKey;
- out.shiftKey = e.shiftKey;
- out.altKey = e.altKey;
+ out.initMouseEvent(type, false, false,
+ e.view, e.detail, e.screenX, e.screenY,
+ 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/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index 8cf07e4..eb8e01c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -117,7 +117,8 @@ org_apache_flex_html_Alert.show =
Object.defineProperties(org_apache_flex_html_Alert.prototype, {
- 'title': {
+ /** @expose */
+ title: {
/** @this {org_apache_flex_html_Alert} */
get: function() {
return this.titleBar.title;
@@ -127,7 +128,8 @@ Object.defineProperties(org_apache_flex_html_Alert.prototype, {
this.titleBar.title = value;
}
},
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_Alert} */
get: function() {
return this.message.text;
@@ -137,7 +139,8 @@ Object.defineProperties(org_apache_flex_html_Alert.prototype, {
this.message.text = value;
}
},
- 'flags': {
+ /** @expose */
+ flags: {
/** @this {org_apache_flex_html_Alert} */
get: function() {
return this.flags;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
index c428808..2dcfbe7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
@@ -62,7 +62,8 @@ org_apache_flex_html_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
@@ -72,7 +73,8 @@ Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
this.element.childNodes.item(1).nodeValue = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_html_CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
index b45b973..4e74d7b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
@@ -181,7 +181,8 @@ org_apache_flex_html_ComboBox.prototype.buttonClicked =
Object.defineProperties(org_apache_flex_html_ComboBox.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_ComboBox} */
get: function() {
return this.element.childNodes.item(0).value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
index f2c48cf..a8b5ccb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
@@ -59,7 +59,8 @@ org_apache_flex_html_DropDownList.prototype.
Object.defineProperties(org_apache_flex_html_DropDownList.prototype, {
- 'dataProvider': {
+ /** @expose */
+ dataProvider: {
/** @this {org_apache_flex_html_DropDownList} */
set: function(value) {
var dp, i, n, opt;
@@ -80,14 +81,16 @@ Object.defineProperties(org_apache_flex_html_DropDownList.prototype, {
}
}
},
- 'selectedIndex': {
+ /** @expose */
+ selectedIndex: {
/** @this {org_apache_flex_html_DropDownList} */
set: function(value) {
this.model.selectedIndex = value;
this.element.selectedIndex = value;
}
},
- 'selectedItem': {
+ /** @expose */
+ selectedItem: {
/** @this {org_apache_flex_html_DropDownList} */
get: function(value) {
this.model.selectedItem = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
index bccade8..e0e1b87 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
@@ -65,7 +65,8 @@ org_apache_flex_html_Image.prototype.createElement =
Object.defineProperties(org_apache_flex_html_Image.prototype, {
- 'source': {
+ /** @expose */
+ source: {
/** @this {org_apache_flex_html_Image} */
get: function() {
return this.model.source;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
index 604dfd0..7413eeb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
@@ -63,7 +63,8 @@ org_apache_flex_html_ImageAndTextButton.prototype.createElement =
Object.defineProperties(org_apache_flex_html_ImageAndTextButton.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_ImageAndTextButton} */
get: function() {
return this._text;
@@ -74,7 +75,8 @@ Object.defineProperties(org_apache_flex_html_ImageAndTextButton.prototype, {
this.setInnerHTML();
}
},
- 'image': {
+ /** @expose */
+ image: {
/** @this {org_apache_flex_html_ImageAndTextButton} */
get: function() {
return this._src;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
index 2569272..6ddd105 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
@@ -44,7 +44,8 @@ org_apache_flex_html_Label.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_Label.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_Label} */
get: function() {
return this.element.innerHTML;
@@ -54,7 +55,8 @@ Object.defineProperties(org_apache_flex_html_Label.prototype, {
this.element.innerHTML = value;
}
},
- 'html': {
+ /** @expose */
+ html: {
/** @this {org_apache_flex_html_Label} */
get: function() {
return this.element.innerHTML;
[24/47] git commit: [flex-asjs] [refs/heads/develop] - fix copy-o
Posted by ah...@apache.org.
fix copy-o
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/31e219f2
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/31e219f2
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/31e219f2
Branch: refs/heads/develop
Commit: 31e219f2a13cb1fe0fe1532cdc7ed277361d9414
Parents: ca5aedc
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 09:38:32 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 09:38:32 2015 -0700
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e219f2/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
index e8236a5..e625117 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
@@ -46,7 +46,7 @@ org_apache_flex_core_CallLaterBead.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_CallLaterBead'}] };
-Object.defineProperties(org_apache_flex_binding_GenericBinding.prototype, {
+Object.defineProperties(org_apache_flex_core_CallLaterBead.prototype, {
'strand': {
/** @this {org_apache_flex_binding_GenericBinding} */
set: function(value) {
[28/47] git commit: [flex-asjs] [refs/heads/develop] - clean up
backing variables that now collide with defineProp'd properties
Posted by ah...@apache.org.
clean up backing variables that now collide with defineProp'd properties
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/49a546ff
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/49a546ff
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/49a546ff
Branch: refs/heads/develop
Commit: 49a546ff969329db18107fa510329886c37d2a07
Parents: 099334f
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:05:10 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:05:10 2015 -0700
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js | 6 ------
1 file changed, 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49a546ff/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
index 7cb3f6c..d7ef090 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
@@ -27,12 +27,6 @@ org_apache_flex_core_ListBase = function() {
org_apache_flex_core_ListBase.base(this, 'constructor');
/**
- * @protected
- * @type {Array.<Object>}
- */
- this.dataProvider = null;
-
- /**
* @private
* @type {number}
*/
[20/47] git commit: [flex-asjs] [refs/heads/develop] - lint
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
index cae09d7..1fa21e0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
@@ -60,11 +60,11 @@ org_apache_flex_html_TextInput.prototype.createElement = function() {
Object.defineProperties(org_apache_flex_html_TextInput.prototype, {
'text': {
- /** @this {org_apache_flex_html_TextInput} */
+ /** @this {org_apache_flex_html_TextInput} */
get: function() {
return this.element.value;
},
- /** @this {org_apache_flex_html_TextInput} */
+ /** @this {org_apache_flex_html_TextInput} */
set: function(value) {
this.element.value = value;
this.dispatchEvent(new org_apache_flex_events_Event('textChange'));
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
index 3ca1f03..0867b49 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
@@ -62,23 +62,23 @@ org_apache_flex_html_TitleBar.prototype.createElement =
Object.defineProperties(org_apache_flex_html_TitleBar.prototype, {
'title': {
- /** @this {org_apache_flex_html_TitleBar} */
+ /** @this {org_apache_flex_html_TitleBar} */
get: function() {
return this.model.title;
- },
- /** @this {org_apache_flex_html_TitleBar} */
+ },
+ /** @this {org_apache_flex_html_TitleBar} */
set: function(value) {
this.model.title = value;
- }
- },
+ }
+ },
'showCloseButton': {
- /** @this {org_apache_flex_html_TitleBar} */
+ /** @this {org_apache_flex_html_TitleBar} */
get: function() {
return this.model.showCloseButton;
- },
- /** @this {org_apache_flex_html_TitleBar} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_TitleBar} */
+ set: function(value) {
this.model.showCloseButton = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
index 0ab348e..c7bfaeb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
@@ -49,21 +49,21 @@ org_apache_flex_html_ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_ToggleTextButton.prototype, {
'text': {
- /** @this {org_apache_flex_html_ToggleTextButton} */
+ /** @this {org_apache_flex_html_ToggleTextButton} */
get: function() {
return this.element.innerHTML;
},
- /** @this {org_apache_flex_html_ToggleTextButton} */
+ /** @this {org_apache_flex_html_ToggleTextButton} */
set: function(value) {
this.element.innerHTML = value;
}
},
'selected': {
- /** @this {org_apache_flex_html_ToggleTextButton} */
+ /** @this {org_apache_flex_html_ToggleTextButton} */
get: function() {
return this.selected_;
},
- /** @this {org_apache_flex_html_ToggleTextButton} */
+ /** @this {org_apache_flex_html_ToggleTextButton} */
set: function(value) {
if (this.selected_ != value) {
this.selected_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
index c8e925c..7375b36 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
@@ -42,7 +42,7 @@ org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype.FLEXJS_CLASS
Object.defineProperties(org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype, {
'strand': {
- /** @this {org_apache_flex_html_accessories_NumericOnlyTextInputBead} */
+ /** @this {org_apache_flex_html_accessories_NumericOnlyTextInputBead} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
index 460aff9..bba9796 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
@@ -42,7 +42,7 @@ org_apache_flex_html_accessories_PasswordInputBead.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_accessories_PasswordInputBead.prototype, {
'strand': {
- /** @this {org_apache_flex_html_accessories_PasswordInputBead} */
+ /** @this {org_apache_flex_html_accessories_PasswordInputBead} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
index 5070da4..1cfacb3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
@@ -43,20 +43,20 @@ Object.defineProperties(org_apache_flex_html_accessories_TextPromptBead.prototyp
'strand': {
/** @this {org_apache_flex_html_accessories_TextPromptBead} */
set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- value.element.placeholder = this.prompt;
- }
- }
- },
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ value.element.placeholder = this.prompt;
+ }
+ }
+ },
'prompt': {
/** @this {org_apache_flex_html_accessories_TextPromptBead} */
- get: function() {
+ get: function() {
return this.prompt;
- },
+ },
/** @this {org_apache_flex_html_accessories_TextPromptBead} */
set: function(value) {
this.prompt = value;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
index 97a7dfa..c9d0605 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
@@ -49,8 +49,8 @@ Object.defineProperties(org_apache_flex_html_beads_ButtonBarView.prototype, {
/** @this {org_apache_flex_html_beads_ButtonBarView} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
- org_apache_flex_html_beads_ButtonBarView, this, 'strand', value);
+ org_apache_flex_html_beads_ButtonBarView, this, 'strand', value);
this.strand_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
index d78f78d..3da4b06 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
@@ -51,12 +51,12 @@ Object.defineProperties(org_apache_flex_html_beads_ContainerView.prototype, {
/** @this {org_apache_flex_html_beads_ContainerView} */
get: function() {
return this._strand;
- }
- },
+ }
+ },
'resizableView': {
/** @this {org_apache_flex_html_beads_ContainerView} */
get: function() {
return this._strand;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
index 400ad90..a63a70d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
@@ -39,6 +39,6 @@ Object.defineProperties(org_apache_flex_html_beads_ImageButtonView.prototype, {
/** @this {org_apache_flex_html_beads_ImageButtonView} */
set: function(value) {
this.strand_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
index c926cdb..e0acf17 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
@@ -47,8 +47,8 @@ Object.defineProperties(org_apache_flex_html_beads_ImageView.prototype, {
org_apache_flex_html_beads_models_ImageModel);
this.model.addEventListener('sourceChanged',
goog.bind(this.sourceChangeHandler, this));
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index 0d763b7..80b56c7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -54,49 +54,49 @@ Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
'strand': {
/** @this {org_apache_flex_html_beads_ListView} */
set: function(value) {
- this.strand_ = value;
-
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.handleSizeChange, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.handleSizeChange, this));
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.handleSizeChange, this));
-
- this.model = this.strand_.model;
- this.model.addEventListener('selectedIndexChanged',
- goog.bind(this.selectionChangeHandler, this));
- this.model.addEventListener('dataProviderChanged',
- goog.bind(this.dataProviderChangeHandler, this));
-
- if (this.dataGroup_ == null) {
- var m2 = org_apache_flex_core_ValuesManager.valuesImpl.
- getValue(this.strand_, 'iDataGroup');
- this.dataGroup_ = new m2();
- }
- this.dataGroup_.strand = this;
- this.strand_.addElement(this.dataGroup_);
-
- if (this.strand_.getBeadByType(org_apache_flex_core_IBeadLayout) == null) {
- var m3 = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iBeadLayout');
- this.layout_ = new m3();
- this.strand_.addBead(this.layout_);
- //this.layout_.strand = this.strand_;
- }
-
- this.handleSizeChange(null);
- }
- },
+ this.strand_ = value;
+
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.handleSizeChange, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.handleSizeChange, this));
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.handleSizeChange, this));
+
+ this.model = this.strand_.model;
+ this.model.addEventListener('selectedIndexChanged',
+ goog.bind(this.selectionChangeHandler, this));
+ this.model.addEventListener('dataProviderChanged',
+ goog.bind(this.dataProviderChangeHandler, this));
+
+ if (this.dataGroup_ == null) {
+ var m2 = org_apache_flex_core_ValuesManager.valuesImpl.
+ getValue(this.strand_, 'iDataGroup');
+ this.dataGroup_ = new m2();
+ }
+ this.dataGroup_.strand = this;
+ this.strand_.addElement(this.dataGroup_);
+
+ if (this.strand_.getBeadByType(org_apache_flex_core_IBeadLayout) == null) {
+ var m3 = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iBeadLayout');
+ this.layout_ = new m3();
+ this.strand_.addBead(this.layout_);
+ //this.layout_.strand = this.strand_;
+ }
+
+ this.handleSizeChange(null);
+ }
+ },
'dataGroup': {
/** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return this.dataGroup_;
- },
+ },
/** @this {org_apache_flex_html_beads_ListView} */
set: function(value) {
this.dataGroup_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
index 4962de2..9e57655 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
@@ -54,35 +54,35 @@ Object.defineProperties(org_apache_flex_html_beads_PanelView.prototype, {
set: function(value) {
this.strand_ = value;
- if (!this.titleBar_)
- this.titleBar_ = new org_apache_flex_html_TitleBar();
-
- this.strand_.titleBar = this.titleBar_;
- this.titleBar_.id = 'titleBar';
- this.titleBar_.model = this.strand_.model;
-
- this.strand_.controlBar =
- new org_apache_flex_html_ControlBar();
-
- this.strand_.addEventListener('childrenAdded',
- goog.bind(this.changeHandler, this));
-
- // listen for changes to the strand's model so items can be changed
- // in the view
- this.strand_.model.addEventListener('titleChange',
- goog.bind(this.changeHandler, this));
- }
- },
+ if (!this.titleBar_)
+ this.titleBar_ = new org_apache_flex_html_TitleBar();
+
+ this.strand_.titleBar = this.titleBar_;
+ this.titleBar_.id = 'titleBar';
+ this.titleBar_.model = this.strand_.model;
+
+ this.strand_.controlBar =
+ new org_apache_flex_html_ControlBar();
+
+ this.strand_.addEventListener('childrenAdded',
+ goog.bind(this.changeHandler, this));
+
+ // listen for changes to the strand's model so items can be changed
+ // in the view
+ this.strand_.model.addEventListener('titleChange',
+ goog.bind(this.changeHandler, this));
+ }
+ },
'titleBar': {
/** @this {org_apache_flex_html_beads_PanelView} */
get: function() {
return this.titleBar_;
- },
+ },
/** @this {org_apache_flex_html_beads_PanelView} */
- set: function(value) {
+ set: function(value) {
this.titleBar_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
index ae6c45c..2a6226d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
@@ -50,28 +50,28 @@ Object.defineProperties(org_apache_flex_html_beads_ScrollingContainerView.protot
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand;
- }
- },
+ }
+ },
'resizableView': {
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand;
- }
- },
+ }
+ },
'verticalScrollPosition': {
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand.scrollTop;
- },
+ },
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
- set: function(value) {
+ set: function(value) {
this._strand.scrollTop = value;
- }
- },
- 'maxVerticalScrollPosition': {
+ }
+ },
+ 'maxVerticalScrollPosition': {
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand.scrollHeight - this._strand.clientHeight;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
index 96df74a..5344407 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
@@ -38,24 +38,24 @@ Object.defineProperties(org_apache_flex_html_beads_SliderThumbView.prototype, {
'strand': {
/** @this {org_apache_flex_html_beads_SliderThumbView} */
set: function(value) {
- this.strand_ = value;
-
- this.element = document.createElement('div');
- this.element.className = 'SliderThumb';
- this.element.id = 'thumb';
- this.element.style.backgroundColor = '#949494';
- this.element.style.border = 'thin solid #747474';
- this.element.style.position = 'relative';
- this.element.style.height = '30px';
- this.element.style.width = '10px';
- this.element.style.zIndex = '2';
- this.element.style.top = '-10px';
- this.element.style.left = '20px';
-
- this.strand_.element.appendChild(this.element);
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
- }
- }
+ this.strand_ = value;
+
+ this.element = document.createElement('div');
+ this.element.className = 'SliderThumb';
+ this.element.id = 'thumb';
+ this.element.style.backgroundColor = '#949494';
+ this.element.style.border = 'thin solid #747474';
+ this.element.style.position = 'relative';
+ this.element.style.height = '30px';
+ this.element.style.width = '10px';
+ this.element.style.zIndex = '2';
+ this.element.style.top = '-10px';
+ this.element.style.left = '20px';
+
+ this.strand_.element.appendChild(this.element);
+
+ this.positioner = this.element;
+ this.element.flexjs_wrapper = this;
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
index 39479ec..eb47bc0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
@@ -41,21 +41,21 @@ Object.defineProperties(org_apache_flex_html_beads_SliderTrackView.prototype, {
this.strand_ = value;
this.element = document.createElement('div');
- this.element.className = 'SliderTrack';
- this.element.id = 'track';
- this.element.style.backgroundColor = '#E4E4E4';
- this.element.style.height = '10px';
- this.element.style.width = '200px';
- this.element.style.border = 'thin solid #C4C4C4';
- this.element.style.position = 'relative';
- this.element.style.left = '0px';
- this.element.style.top = '10px';
- this.element.style.zIndex = '1';
-
- this.strand_.element.appendChild(this.element);
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
- }
- }
+ this.element.className = 'SliderTrack';
+ this.element.id = 'track';
+ this.element.style.backgroundColor = '#E4E4E4';
+ this.element.style.height = '10px';
+ this.element.style.width = '200px';
+ this.element.style.border = 'thin solid #C4C4C4';
+ this.element.style.position = 'relative';
+ this.element.style.left = '0px';
+ this.element.style.top = '10px';
+ this.element.style.zIndex = '1';
+
+ this.strand_.element.appendChild(this.element);
+
+ this.positioner = this.element;
+ this.element.flexjs_wrapper = this;
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
index c5b4af5..116bbde 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
@@ -39,6 +39,6 @@ Object.defineProperties(org_apache_flex_html_beads_TextInputWithBorderView.proto
/** @this {org_apache_flex_html_beads_TextInputWithBorderView} */
set: function(value) {
this.strand_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
index 739e553..1a8a331 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
@@ -39,7 +39,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.FLE
Object.defineProperties(org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype, {
'strand': {
- /** @this {org_apache_flex_html_beads_controllers_ItemRendererMouseController} */
+ /** @this {org_apache_flex_html_beads_controllers_ItemRendererMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
index 43b5452..d912483 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
@@ -41,7 +41,7 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
Object.defineProperties(org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype, {
'strand': {
- /** @this {org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController} */
+ /** @this {org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
index 6e671a7..33ae094 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
@@ -39,7 +39,7 @@ org_apache_flex_html_beads_controllers_SliderMouseController.prototype.FLEXJS_CL
Object.defineProperties(org_apache_flex_html_beads_controllers_SliderMouseController.prototype, {
'strand': {
- /** @this {org_apache_flex_html_beads_controllers_SliderMouseController} */
+ /** @this {org_apache_flex_html_beads_controllers_SliderMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
index 4adaa02..c8468e5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
@@ -47,32 +47,32 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_ButtonBarLayout.proto
'strand': {
/** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('childrenAdded',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('itemsCreated',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.element.style.display = 'block';
- }
- }
- },
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ this.strand_.addEventListener('childrenAdded',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('itemsCreated',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.element.style.display = 'block';
+ }
+ }
+ },
'buttonWidths': {
/** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
set: function(value) {
this.buttonWidths_ = value;
- },
+ },
/** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
get: function() {
return this.buttonWidths_;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
index fa6a77b..090c6ee 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
@@ -45,26 +45,26 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualHorizontalL
'strand': {
/** @this {org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout} */
set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- if (this.strand_.isWidthSizedToContent() &&
- this.strand_.isHeightSizedToContent())
- this.addOtherListeners();
- else {
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.sizeChangeHandler, this));
- if (!isNaN(this.strand_.explicitWidth) &&
- !isNaN(this.strand_.explicitHeight))
- this.addOtherListeners();
- }
- this.strand_.element.style.display = 'block';
- }
- }
- }
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ if (this.strand_.isWidthSizedToContent() &&
+ this.strand_.isHeightSizedToContent())
+ this.addOtherListeners();
+ else {
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.sizeChangeHandler, this));
+ if (!isNaN(this.strand_.explicitWidth) &&
+ !isNaN(this.strand_.explicitHeight))
+ this.addOtherListeners();
+ }
+ this.strand_.element.style.display = 'block';
+ }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
index e27d77d..c08c35c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
@@ -51,38 +51,38 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_TileLayout.prototype,
this.strand_.addEventListener('layoutNeeded',
goog.bind(this.changeHandler, this));
}
- }
- },
+ }
+ },
'numColumns': {
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
- get: function() {
+ get: function() {
return this._numColumns;
- },
+ },
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
set: function(value) {
this._numColumns = value;
- }
- },
+ }
+ },
'columnWidth': {
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
- get: function() {
+ get: function() {
return this._columnWidth;
- },
+ },
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
set: function(value) {
this._columnWidth = value;
- }
- },
+ }
+ },
'rowHeight': {
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
- get: function() {
+ get: function() {
return this._rowHeight;
- },
+ },
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
set: function(value) {
this._rowHeight = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
index 2a3ca53..e3863a8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
@@ -50,33 +50,33 @@ Object.defineProperties(org_apache_flex_html_beads_models_ArraySelectionModel.pr
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'dataProvider': {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
- get: function() {
+ get: function() {
return this.dataProvider_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
set: function(value) {
this.dataProvider_ = value;
this.dispatchEvent('dataProviderChanged');
- }
- },
+ }
+ },
'selectedIndex': {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
- get: function() {
+ get: function() {
return this.selectedIndex_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
set: function(value) {
this.selectedIndex_ = value;
this.dispatchEvent('selectedIndexChanged');
- }
- },
+ }
+ },
'selectedItem': {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
- get: function() {
+ get: function() {
var si;
si = this.selectedIndex_;
@@ -87,34 +87,34 @@ Object.defineProperties(org_apache_flex_html_beads_models_ArraySelectionModel.pr
}
return this.dataProvider_[si];
- },
+ },
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
set: function(value) {
- // find item in dataProvider and set selectedIndex or -1 if not exists
-
- this.selectedIndex_ = -1;
- var n = this.dataProvider_.length;
- for (var i = 0; i < n; i++) {
- var item = this.dataProvider_[i];
- if (item == value) {
- this.selectedIndex_ = i;
- break;
- }
- }
-
- this.dispatchEvent('selectedItemChanged');
- this.dispatchEvent('selectedIndexChanged');
- }
- },
+ // find item in dataProvider and set selectedIndex or -1 if not exists
+
+ this.selectedIndex_ = -1;
+ var n = this.dataProvider_.length;
+ for (var i = 0; i < n; i++) {
+ var item = this.dataProvider_[i];
+ if (item == value) {
+ this.selectedIndex_ = i;
+ break;
+ }
+ }
+
+ this.dispatchEvent('selectedItemChanged');
+ this.dispatchEvent('selectedIndexChanged');
+ }
+ },
'labelField': {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
get: function() {
return this.labelField_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
set: function(value) {
this.labelField_ = value;
this.dispatchEvent('labelFieldChanged');
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
index 0f31c94..9d2016f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
@@ -53,18 +53,18 @@ Object.defineProperties(org_apache_flex_html_beads_models_DataGridModel.prototyp
'strand': {
/** @this {org_apache_flex_html_beads_models_DataGridModel} */
set: function(value) {
- org_apache_flex_utils-Language(org_apache_flex_html_beads_models_DataGridModel, this, 'strand', value);
+ org_apache_flex_utils_Language(org_apache_flex_html_beads_models_DataGridModel, this, 'strand', value);
this.strand_ = value;
- }
- },
+ }
+ },
'columns': {
/** @this {org_apache_flex_html_beads_models_DataGridModel} */
- set: function(value) {
+ set: function(value) {
this.columns_ = value;
- },
+ },
/** @this {org_apache_flex_html_beads_models_DataGridModel} */
get: function() {
return this.columns_;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 e85f46f..e5fd9e5 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
@@ -46,17 +46,17 @@ Object.defineProperties(org_apache_flex_html_beads_models_ImageModel.prototype,
/** @this {org_apache_flex_html_beads_models_ImageModel} */
set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'source': {
/** @this {org_apache_flex_html_beads_models_ImageModel} */
- get: function() {
+ get: function() {
return this.source;
- },
+ },
/** @this {org_apache_flex_html_beads_models_ImageModel} */
set: function(value) {
this.source = value;
this.dispatchEvent('sourceChanged');
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
index 3b8f24f..3f934e6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
@@ -57,17 +57,17 @@ Object.defineProperties(org_apache_flex_html_beads_models_ListPresentationModel.
/** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'rowHeight': {
/** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
- get: function() {
+ get: function() {
return this.rowHeight_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
set: function(value) {
this.rowHeight_ = value;
this.dispatchEvent('rowHeightChanged');
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
index 6a6f3f8..6ccc83e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
@@ -61,45 +61,45 @@ Object.defineProperties(org_apache_flex_html_beads_models_PanelModel.prototype,
/** @this {org_apache_flex_html_beads_models_PanelModel} */
set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'title': {
/** @this {org_apache_flex_html_beads_models_PanelModel} */
- get: function() {
+ get: function() {
return this.title_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_PanelModel} */
set: function(value) {
if (this.title_ != value) {
this.title_ = value;
this.dispatchEvent('titleChange');
}
- }
- },
+ }
+ },
'htmlTitle': {
/** @this {org_apache_flex_html_beads_models_PanelModel} */
- get: function() {
+ get: function() {
return this.htmlTitle_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_PanelModel} */
set: function(value) {
if (this.htmlTitle_ != value) {
this.htmlTitle_ = value;
this.dispatchEvent('htmlTitleChange');
}
- }
- },
+ }
+ },
'showCloseButton': {
/** @this {org_apache_flex_html_beads_models_PanelModel} */
- get: function() {
+ get: function() {
return this.showCloseButton_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_PanelModel} */
set: function(value) {
if (this.showCloseButton_ != value) {
this.showCloseButton_ = value;
this.dispatchEvent('showCloseButtonChange');
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 73d3dda..eb20880 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
@@ -50,80 +50,80 @@ Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype,
/** @this {org_apache_flex_html_beads_models_RangeModel} */
set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'minimum': {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
- get: function() {
+ get: function() {
return this.minimum_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_RangeModel} */
set: function(value) {
if (this.minimum_ != value) {
this.minimum_ = value;
this.dispatchEvent('minimumChange');
}
- }
- },
+ }
+ },
'maximum': {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
- get: function() {
+ get: function() {
return this.maximum_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_RangeModel} */
- set: function(value) {
+ set: function(value) {
if (this.maximum_ != value) {
this.maximum_ = value;
this.dispatchEvent('maximumChange');
}
- }
- },
+ }
+ },
'value': {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
- get: function() {
+ get: function() {
return this.value_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_RangeModel} */
set: function(newValue) {
- if (this.value_ != newValue) {
-
- // value must lie within the boundaries of minimum & maximum
- // and be on a step interval, so the value is adjusted to
- // what is coming in.
- newValue = Math.max(this.minimum_, newValue - this.stepSize_);
- newValue = Math.min(this.maximum_, newValue + this.stepSize_);
- this.value_ = this.snap(newValue);
-
- this.dispatchEvent('valueChange');
- }
- }
- },
+ if (this.value_ != newValue) {
+
+ // value must lie within the boundaries of minimum & maximum
+ // and be on a step interval, so the value is adjusted to
+ // what is coming in.
+ newValue = Math.max(this.minimum_, newValue - this.stepSize_);
+ newValue = Math.min(this.maximum_, newValue + this.stepSize_);
+ this.value_ = this.snap(newValue);
+
+ this.dispatchEvent('valueChange');
+ }
+ }
+ },
'snapInterval': {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
- get: function() {
+ get: function() {
return this.snapInterval_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_RangeModel} */
set: function(value) {
if (this.snapInterval_ != value) {
this.snapInterval_ = value;
this.dispatchEvent('snapIntervalChange');
}
- }
- },
+ }
+ },
'stepSize': {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
- get: function() {
+ get: function() {
return this.stepSize_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_RangeModel} */
set: function(value) {
if (this.stepSize_ != value) {
this.stepSize_ = value;
this.dispatchEvent('stepSizeChange');
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
index b361bad..2072288 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
@@ -50,17 +50,17 @@ Object.defineProperties(org_apache_flex_html_beads_models_TextModel.prototype, {
/** @this {org_apache_flex_html_beads_models_TextModel} */
set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'text': {
/** @this {org_apache_flex_html_beads_models_TextModel} */
- get: function() {
+ get: function() {
return this.text_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_TextModel} */
- set: function(value) {
+ set: function(value) {
this.text_ = value;
this.dispatchEvent('textChange');
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
index f1a7a8a..731963f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
@@ -64,45 +64,45 @@ Object.defineProperties(org_apache_flex_html_beads_models_TitleBarModel.prototyp
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'title': {
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
- get: function() {
+ get: function() {
return this.title_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
set: function(value) {
if (this.title_ != value) {
this.title_ = value;
this.dispatchEvent('titleChange');
}
- }
- },
+ }
+ },
'htmlTitle': {
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
- get: function() {
+ get: function() {
return this.htmlTitle_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
set: function(value) {
if (this.htmlTitle_ != value) {
this.htmlTitle_ = value;
this.dispatchEvent('htmlTitleChange');
}
- }
- },
+ }
+ },
'showCloseButton': {
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
- get: function() {
+ get: function() {
return this.showCloseButton_;
- },
+ },
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
- set: function(value) {
+ set: function(value) {
if (this.showCloseButton_ != value) {
this.showCloseButton_ = value;
this.dispatchEvent('showCloseButtonChange');
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
index 78155f0..b916c6f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
@@ -27,45 +27,45 @@ org_apache_flex_html_supportClasses_DataGridColumn =
Object.defineProperties(org_apache_flex_html_supportClasses_DataGridColumn.prototype, {
- 'itemRenderer': {
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
- get: function() {
+ 'itemRenderer': {
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ get: function() {
return this.itemRenderer_;
- },
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
- set: function(value) {
- this.itemRenderer_ = value;
- }
- },
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ set: function(value) {
+ this.itemRenderer_ = value;
+ }
+ },
'columnWidth': {
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
get: function() {
return this.columnWidth_;
- },
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ set: function(value) {
this.columnWidth_ = value;
- }
- },
- 'label': {
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ }
+ },
+ 'label': {
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
get: function() {
return this.label_;
- },
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ set: function(value) {
this.label_ = value;
- }
- },
+ }
+ },
'dataField': {
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
get: function() {
return this.dataField_;
- },
- /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
+ },
+ /** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
set: function(value) {
this.dataField_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
index 4293cf2..05c5e8a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
@@ -75,29 +75,29 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
get: function() {
return this.rendererParent_;
},
- /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.rendererParent_ = value;
}
},
'index': {
- /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.index_ = value;
}
},
'dataField': {
- /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.dataField_ = value;
},
- /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
get: function() {
return this.dataField_;
}
},
'selected': {
- /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.selected_ = value;
@@ -109,7 +109,7 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
}
},
'hovered': {
- /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.hovered_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
index 0e68832..a42c19d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
@@ -46,13 +46,13 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype.FLEXJS_CLASS_I
Object.defineProperties(org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype, {
'strand': {
- /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
+ /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
set: function(value) {
this.strand_ = value;
}
},
'numElements': {
- /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
+ /** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
get: function() {
var n = this.element.childNodes.length;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
index f8217bb..2e35047 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -73,43 +73,43 @@ org_apache_flex_html_supportClasses_StringItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.prototype, {
'strand': {
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.strand_ = value;
},
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.strand_;
}
},
'itemRendererParent': {
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.rendererParent_;
},
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.rendererParent_ = value;
}
},
'index': {
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.index_ = value;
}
},
'text': {
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.element.innerHTML = value;
},
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.element.innerHTML;
}
},
'data': {
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
org_apache_flex_html_supportClasses_StringItemRenderer, this, 'data', value);
@@ -126,7 +126,7 @@ Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.p
this.element.innerHTML = String(value);
}
},
- /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
+ /** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.element.innerHTML;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
index dba179c..91876dd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
@@ -77,72 +77,72 @@ org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.generateMXMLAtt
Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.prototype, {
- 'MXMLDescriptor': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- get: function() {
- return null;
- }
- },
+ 'MXMLDescriptor': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ get: function() {
+ return null;
+ }
+ },
'data': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- get: function() {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ get: function() {
return this.data_;
- },
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ set: function(value) {
this.data_ = value;
- }
- },
- 'labelField': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- get: function() {
+ }
+ },
+ 'labelField': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ get: function() {
return this.labelField_;
- },
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ set: function(value) {
this.labelField_ = value;
- }
- },
- 'index': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ }
+ },
+ 'index': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.index_;
- },
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ set: function(value) {
this.index_ = value;
- }
- },
- 'hovered': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- get: function() {
+ }
+ },
+ 'hovered': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ get: function() {
return this.hovered_;
- },
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ },
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
set: function(value) {
this.hovered_ = value;
- }
- },
+ }
+ },
'selected': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.selected_;
- },
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ set: function(value) {
this.selected_ = value;
- }
- },
- 'down': {
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ }
+ },
+ 'down': {
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.down_;
- },
- /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
+ set: function(value) {
this.down_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
index 5bd547f..fed8ea6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
@@ -51,21 +51,21 @@ org_apache_flex_html5_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_CheckBox.prototype, {
'text': {
- /** @this {org_apache_flex_html5_CheckBox} */
+ /** @this {org_apache_flex_html5_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
},
- /** @this {org_apache_flex_html5_CheckBox} */
+ /** @this {org_apache_flex_html5_CheckBox} */
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
}
},
selected: {
- /** @this {org_apache_flex_html5_CheckBox} */
+ /** @this {org_apache_flex_html5_CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
},
- /** @this {org_apache_flex_html5_CheckBox} */
+ /** @this {org_apache_flex_html5_CheckBox} */
set: function(value) {
this.element.childNodes.item(0).checked = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
index 53400ad..d884f01 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
@@ -168,17 +168,17 @@ org_apache_flex_html5_ComboBox.prototype.buttonClicked =
Object.defineProperties(org_apache_flex_html5_ComboBox.prototype, {
'dataProvider': {
- /** @this {org_apache_flex_html5_ComboBox} */
+ /** @this {org_apache_flex_html5_ComboBox} */
set: function(value) {
this.dataProvider = value;
}
},
'text': {
- /** @this {org_apache_flex_html5_ComboBox} */
+ /** @this {org_apache_flex_html5_ComboBox} */
get: function() {
return this.element.childNodes.item(0).value;
},
- /** @this {org_apache_flex_html5_ComboBox} */
+ /** @this {org_apache_flex_html5_ComboBox} */
set: function(value) {
this.element.childNodes.item(0).value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
index 8499d4d..a049e68 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
@@ -44,11 +44,11 @@ org_apache_flex_html5_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_Label.prototype, {
'text': {
- /** @this {org_apache_flex_html5_Label} */
+ /** @this {org_apache_flex_html5_Label} */
get: function() {
return this.element.innerHTML;
},
- /** @this {org_apache_flex_html5_Label} */
+ /** @this {org_apache_flex_html5_Label} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/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 084d198..8a49c59 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
@@ -51,33 +51,33 @@ org_apache_flex_html5_RadioButton.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_RadioButton.prototype, {
'groupName': {
- /** @this {org_apache_flex_html5_RadioButton} */
+ /** @this {org_apache_flex_html5_RadioButton} */
get: function() {
return this.element.childNodes.item(0).name;
- },
- /** @this {org_apache_flex_html5_RadioButton} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html5_RadioButton} */
+ set: function(value) {
this.element.childNodes.item(0).name = value;
- }
- },
+ }
+ },
'text' : {
- /** @this {org_apache_flex_html5_RadioButton} */
+ /** @this {org_apache_flex_html5_RadioButton} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
- },
- /** @this {org_apache_flex_html5_RadioButton} */
+ },
+ /** @this {org_apache_flex_html5_RadioButton} */
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
- }
- },
- 'selected': {
- /** @this {org_apache_flex_html5_RadioButton} */
+ }
+ },
+ 'selected': {
+ /** @this {org_apache_flex_html5_RadioButton} */
get: function() {
return this.element.childNodes.item(0).checked;
- },
- /** @this {org_apache_flex_html5_RadioButton} */
- set: function(value) {
+ },
+ /** @this {org_apache_flex_html5_RadioButton} */
+ set: function(value) {
this.element.childNodes.item(0).checked = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
index 3d3fd0d..a475688 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
@@ -44,11 +44,11 @@ org_apache_flex_html5_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextArea.prototype, {
'text': {
- /** @this {org_apache_flex_html5_TextArea} */
+ /** @this {org_apache_flex_html5_TextArea} */
get: function() {
return this.element.value;
},
- /** @this {org_apache_flex_html5_TextArea} */
+ /** @this {org_apache_flex_html5_TextArea} */
set: function(value) {
this.element.value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
index 9e4d3f6..e3aa434 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
@@ -45,11 +45,11 @@ org_apache_flex_html5_TextButton.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextButton.prototype, {
'text': {
- /** @this {org_apache_flex_html5_TextButton} */
+ /** @this {org_apache_flex_html5_TextButton} */
get: function() {
return this.element.innerHTML;
},
- /** @this {org_apache_flex_html5_TextButton} */
+ /** @this {org_apache_flex_html5_TextButton} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
index 28f28e4..d51ee0d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
@@ -45,11 +45,11 @@ org_apache_flex_html5_TextInput.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextInput.prototype, {
'text': {
- /** @this {org_apache_flex_html5_TextInput} */
+ /** @this {org_apache_flex_html5_TextInput} */
get: function() {
return this.element.value;
},
- /** @this {org_apache_flex_html5_TextInput} */
+ /** @this {org_apache_flex_html5_TextInput} */
set: function(value) {
this.element.value = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
index 4d3c7a6..5dc88ef 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
@@ -63,21 +63,21 @@ org_apache_flex_jquery_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
'text': {
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org_apache_flex_jquery_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
},
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org_apache_flex_jquery_CheckBox} */
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
}
},
'selected': {
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org_apache_flex_jquery_CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
},
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org_apache_flex_jquery_CheckBox} */
set: function(value) {
this.element.childNodes.item(0).checked = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
index 986533a..a134f9d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
@@ -102,7 +102,7 @@ org_apache_flex_jquery_RadioButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
'id': {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
org_apache_flex_utils_Language(org_apache_flex_jquery_RadioButton.base, this, 'id', value);
this.labelFor.id = value;
@@ -110,48 +110,48 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
}
},
'groupName': {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.radioGroupName;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.radioGroupName = value;
this.input.name = value;
}
},
'text': {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.labelFor.innerHTML;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.labelFor.innerHTML = value;
}
},
'selected': {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.input.checked;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.input.checked = value;
}
},
'value': {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.input.value;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
this.input.value = value;
}
},
'selectedValue': {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
var buttons, groupName, i, n;
@@ -166,7 +166,7 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
}
return null;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
var buttons, groupName, i, n;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
index 624c8eb..0f2a1be 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
@@ -55,11 +55,11 @@ org_apache_flex_jquery_TextButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_TextButton.prototype, {
'text': {
- /** @this {org_apache_flex_jquery_TextButton} */
+ /** @this {org_apache_flex_jquery_TextButton} */
get: function() {
return this.element.innerHTML;
},
- /** @this {org_apache_flex_jquery_TextButton} */
+ /** @this {org_apache_flex_jquery_TextButton} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index de08c2e..f0b7ba0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -95,7 +95,7 @@ org_apache_flex_jquery_ToggleTextButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
'id': {
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_jquery_ToggleTextButton.base, this, 'id', value);
this.labelFor.id = value;
@@ -103,21 +103,21 @@ Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
}
},
'text': {
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
get: function() {
return this.labelFor.innerHTML;
},
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
this.labelFor.innerHTML = value;
}
},
'selected': {
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
get: function() {
return this.input.selected_;
},
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
if (this.input.selected_ != value) {
this.inputselected_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
index 5840265..e63facc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
@@ -81,13 +81,13 @@ org_apache_flex_maps_google_Map.prototype.createElement =
Object.defineProperties(org_apache_flex_maps_google_Map.prototype, {
'token': {
- /** @this {org_apache_flex_maps_google_Map} */
+ /** @this {org_apache_flex_maps_google_Map} */
set: function(value) {
this.token = value;
}
},
'selectedMarker': {
- /** @this {org_apache_flex_maps_google_Map} */
+ /** @this {org_apache_flex_maps_google_Map} */
get: function() {
return this._selectedMarker;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
index 73915c6..94e9ec0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/beads/MapView.js
@@ -58,7 +58,7 @@ Object.defineProperties(org_apache_flex_maps_google_beads_MapView.prototype, {
this.mapView.strand_.finishInitalization();
};
document.head.appendChild(script);
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
index ffcf3aa..cb9ddc0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/models/MapModel.js
@@ -52,44 +52,44 @@ FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_maps_google_models_MapModelv.prototype, {
'strand': {
/** @this {org_apache_flex_maps_google_models_MapModel} */
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
- }
- },
+ }
+ },
'searchResults': {
- get: function() {
+ get: function() {
return this._searchResults;
- },
- set: function(value) {
+ },
+ set: function(value) {
this._searchResults = value;
this.dispatchEvent('searchResultsChanged');
- }
- },
+ }
+ },
'zoom': {
get: function() {
return this._zoom;
- },
- set: function(value) {
+ },
+ set: function(value) {
this._zoom = value;
this.dispatchEvent('zoomChanged');
- }
- },
+ }
+ },
'selectedMarker': {
get: function() {
return this._selectedMarker;
- },
- set: function(value) {
+ },
+ set: function(value) {
this._selectedMarker = value;
this.dispatchEvent('selectedMarkerChanged');
- }
- },
+ }
+ },
'currentLocation': {
get: function() {
return this._currentLocation;
- },
- set: function(value) {
+ },
+ set: function(value) {
this._currentLocation = value;
this.dispatchEvent('currentLocationChanged');
- }
- }
+ }
+ }
});
[40/47] git commit: [flex-asjs] [refs/heads/develop] - for some
reason, we weren't handling 'this'
Posted by ah...@apache.org.
for some reason, we weren't handling 'this'
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/61fc278f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/61fc278f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/61fc278f
Branch: refs/heads/develop
Commit: 61fc278f86ba5009cda21833a76a87aec1e0b511
Parents: 1a5ba33
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 12:12:11 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 12:12:11 2015 -0700
----------------------------------------------------------------------
.../FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61fc278f/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
index 72161a6..95fada8 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
@@ -183,7 +183,10 @@ package org.apache.flex.core
cb.destinationPropertyName = binding.destination[1];
cb.sourcePropertyName = binding.source;
cb.setDocument(_strand);
- destObject = _strand[binding.destination[0]];
+ if (binding.destination[0] == "this")
+ destObject = _strand;
+ else
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(cb);
[14/47] git commit: [flex-asjs] [refs/heads/develop] - add @this
annotations
Posted by ah...@apache.org.
add @this annotations
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7bb9e9a5
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7bb9e9a5
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7bb9e9a5
Branch: refs/heads/develop
Commit: 7bb9e9a54d0c878973db26842b7ee2aac8b65935
Parents: 19f8cb2
Author: Alex Harui <ah...@apache.org>
Authored: Mon Mar 16 23:52:56 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Mar 16 23:52:56 2015 -0700
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/cordova/Weinre.js | 48 ++---
.../org/apache/flex/binding/GenericBinding.js | 28 +--
.../src/org/apache/flex/core/Application.js | 22 +-
.../src/org/apache/flex/core/BeadViewBase.js | 34 ++-
.../src/org/apache/flex/core/CallLaterBead.js | 20 +-
.../org/apache/flex/core/HTMLElementWrapper.js | 15 +-
.../js/FlexJS/src/org/apache/flex/core/IBead.js | 14 +-
.../flex/core/ItemRendererClassFactory.js | 2 +-
.../FlexJS/src/org/apache/flex/core/ListBase.js | 90 +++-----
.../org/apache/flex/core/SimpleCSSValuesImpl.js | 2 +-
.../org/apache/flex/core/SimpleStatesImpl.js | 32 +--
.../org/apache/flex/core/ViewBaseDataBinding.js | 24 +--
.../src/org/apache/flex/createjs/CheckBox.js | 62 ++----
.../src/org/apache/flex/createjs/TextButton.js | 30 ++-
.../org/apache/flex/createjs/core/ViewBase.js | 29 +--
.../org/apache/flex/effects/PlatformWiper.js | 70 +++----
.../src/org/apache/flex/events/MouseEvent.js | 4 +-
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 78 ++++---
.../src/org/apache/flex/html/DropDownList.js | 83 ++++----
.../js/FlexJS/src/org/apache/flex/html/Image.js | 30 ++-
.../js/FlexJS/src/org/apache/flex/html/List.js | 116 ++++------
.../src/org/apache/flex/html/NumericStepper.js | 152 +++++---------
.../src/org/apache/flex/html/SimpleList.js | 115 +++++-----
.../FlexJS/src/org/apache/flex/html/Slider.js | 157 +++++---------
.../FlexJS/src/org/apache/flex/html/Spinner.js | 38 ++--
.../FlexJS/src/org/apache/flex/html/TitleBar.js | 60 ++----
.../flex/html/accessories/TextPromptBead.js | 52 ++---
.../org/apache/flex/html/beads/ButtonBarView.js | 21 +-
.../org/apache/flex/html/beads/ContainerView.js | 34 ++-
.../apache/flex/html/beads/ImageButtonView.js | 17 +-
.../src/org/apache/flex/html/beads/ImageView.js | 27 ++-
.../src/org/apache/flex/html/beads/ListView.js | 107 +++++-----
.../src/org/apache/flex/html/beads/PanelView.js | 84 ++++----
.../flex/html/beads/ScrollingContainerView.js | 83 +++-----
.../apache/flex/html/beads/SliderThumbView.js | 50 ++---
.../apache/flex/html/beads/SliderTrackView.js | 50 ++---
.../flex/html/beads/TextInputWithBorderView.js | 16 +-
.../flex/html/beads/layouts/ButtonBarLayout.js | 73 +++----
.../beads/layouts/NonVirtualHorizontalLayout.js | 52 +++--
.../flex/html/beads/layouts/TileLayout.js | 118 ++++-------
.../html/beads/models/ArraySelectionModel.js | 186 +++++++---------
.../flex/html/beads/models/DataGridModel.js | 49 ++---
.../apache/flex/html/beads/models/ImageModel.js | 48 ++---
.../html/beads/models/ListPresentationModel.js | 48 ++---
.../apache/flex/html/beads/models/PanelModel.js | 126 +++++------
.../apache/flex/html/beads/models/RangeModel.js | 210 +++++++------------
.../apache/flex/html/beads/models/TextModel.js | 48 ++---
.../flex/html/beads/models/TitleBarModel.js | 126 +++++------
.../flex/html/supportClasses/DataGridColumn.js | 120 ++++-------
.../html/supportClasses/UIItemRendererBase.js | 184 +++++-----------
.../src/org/apache/flex/html5/RadioButton.js | 90 +++-----
.../src/org/apache/flex/html5/TextButton.js | 30 ++-
.../src/org/apache/flex/jquery/RadioButton.js | 3 +-
.../src/org/apache/flex/jquery/TextButton.js | 30 ++-
.../org/apache/flex/jquery/ToggleTextButton.js | 3 +-
.../apache/flex/maps/google/beads/MapView.js | 43 ++--
.../apache/flex/maps/google/models/MapModel.js | 136 ++++--------
.../flex/net/dataConverters/LazyCollection.js | 138 +++++-------
.../src/org/apache/flex/svg/TextButton.js | 30 ++-
.../src/org/apache/flex/utils/MixinManager.js | 44 ++--
.../src/org/apache/flex/utils/PointUtils.js | 4 +-
.../flex/utils/ViewSourceContextMenuOption.js | 12 +-
62 files changed, 1522 insertions(+), 2325 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js b/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
index 5aed42d..afaab0a 100644
--- a/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
+++ b/frameworks/js/FlexJS/src/org/apache/cordova/Weinre.js
@@ -32,33 +32,27 @@ org_apache_cordova_Weinre = function() {
};
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_cordova_Weinre.prototype.set_strand =
-function(value) {
-
- this.strand_ = value;
-};
-
-
-/**
- * @expose
- * @param {string} value The new guid.
- */
-org_apache_cordova_Weinre.prototype.set_guid =
-function(value) {
-
- var scriptNode = document.createElement('SCRIPT');
- scriptNode.type = 'text/javascript';
- scriptNode.src = 'http://debug.phonegap.com/target/target-script-min.js#' + value;
-
- var headNode = document.getElementsByTagName('HEAD');
- if (headNode[0] != null)
- headNode[0].appendChild(scriptNode);
-
-};
+Object.defineProperties(org_apache_cordova_Weinre.prototype, {
+ 'strand': {
+ /** @this {org_apache_cordova_Weinre} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ },
+ 'guid': {
+ /** @this {org_apache_cordova_Weinre} */
+ set: function(value) {
+
+ var scriptNode = document.createElement('SCRIPT');
+ scriptNode.type = 'text/javascript';
+ scriptNode.src = 'http://debug.phonegap.com/target/target-script-min.js#' + value;
+
+ var headNode = document.getElementsByTagName('HEAD');
+ if (headNode[0] != null)
+ headNode[0].appendChild(scriptNode);
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
index f162f9b..357aee0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
@@ -54,20 +54,20 @@ org_apache_flex_binding_GenericBinding.prototype.destinationData = null;
org_apache_flex_binding_GenericBinding.prototype.destinationFunction = null;
-/**
- * @expose
- * @param {Object} value The strand (owner) of the bead.
- */
-org_apache_flex_binding_GenericBinding.prototype.set_strand =
- function(value) {
- this.destination = value;
-
- try {
- var val = this.getValueFromSource();
- this.applyValue(val);
- } catch (e) {
- }
-};
+Object.defineProperties(org_apache_flex_binding_GenericBinding.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_binding_GenericBinding} */
+ set: function(value) {
+ this.destination = value;
+
+ try {
+ var val = this.getValueFromSource();
+ this.applyValue(val);
+ } catch (e) {
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
index 89dc4cd..fdf34d4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/Application.js
@@ -65,17 +65,17 @@ org_apache_flex_core_Application.prototype.initialView = null;
org_apache_flex_core_Application.prototype.model = null;
-/**
- * @expose
- * @param {org_apache_flex_core_IValuesImpl} value The IValuesImpl.
- */
-org_apache_flex_core_Application.prototype.set_valuesImpl =
- function(value) {
- org_apache_flex_core_ValuesManager.valuesImpl = value;
- if (value.init) {
- value.init(this);
- }
-};
+Object.defineProperties(org_apache_flex_core_Application.prototype, {
+ 'valuesImpl': {
+ /** @this {org_apache_flex_core_Application} */
+ set: function() {
+ org_apache_flex_core_ValuesManager.valuesImpl = value;
+ if (value.init) {
+ value.init(this);
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
index cf11f90..f4cbabe 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/BeadViewBase.js
@@ -50,23 +50,21 @@ org_apache_flex_core_BeadViewBase.prototype.FLEXJS_CLASS_INFO =
org_apache_flex_core_BeadViewBase.prototype._strand = null;
-/**
- * @expose
- * @param {Object} value The new strand.
- */
-org_apache_flex_core_BeadViewBase.prototype.set_strand =
-function(value) {
- if (this._strand !== value) {
- this._strand = value;
- }
-};
+Object.defineProperties(org_apache_flex_core_BeadViewBase.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_core_BeadViewBase} */
+ set: function(value) {
+ if (this._strand !== value) {
+ this._strand = value;
+ }
+ }
+ },
+ 'host': {
+ /** @this {org_apache_flex_core_BeadViewBase} */
+ get: function() {
+ return this._strand;
+ }
+ }
+});
-/**
- * @expose
- * @return {Object} value The strand.
- */
-org_apache_flex_core_BeadViewBase.prototype.get_host =
-function() {
- return this._strand;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
index 27a2c7b..fecfba4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/CallLaterBead.js
@@ -46,16 +46,16 @@ org_apache_flex_core_CallLaterBead.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_CallLaterBead'}] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_core_CallLaterBead.prototype.set_strand =
- function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
-};
+Object.defineProperties(org_apache_flex_binding_GenericBinding.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_binding_GenericBinding} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/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 0171ef3..f33d7c3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -98,14 +98,13 @@ org_apache_flex_core_HTMLElementWrapper.prototype.getBeadByType =
};
-/**
- * @expose
- * @return {Array} The array of descriptors.
- */
-org_apache_flex_core_HTMLElementWrapper.prototype.get_MXMLDescriptor =
- function() {
- return null;
-};
+Object.defineProperties(org_apache_flex_core_HTMLElementWrapper.prototype, {
+ 'MXMLDescriptor': {
+ get: function() {
+ return null;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
index f599591..3bba849 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
@@ -40,11 +40,9 @@ org_apache_flex_core_IBead.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_IBead' }] };
-/**
- * strand
- *
- * @expose
- * @param {org_apache_flex_core_IStrand} value The new host.
- */
-org_apache_flex_core_IBead.prototype.set_strand =
- function(value) {};
+Object.defineProperties(org_apache_flex_core_IBead.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_binding_GenericBinding} */
+ set: function(value) {}
+ }
+});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
index 4170827..32a6069 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -52,7 +52,7 @@ Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype,
// see if the _strand has an itemRenderer property that isn't empty. if that's
// true, use that value instead of pulling it from the the style
- if (this.strand_.get_itemRenderer) {
+ if (this.strand_.hasOwnProperty('itemRenderer')) {
this.itemRendererClassFactory = this.strand_.itemRenderer;
if (this.itemRendererClassFactory) {
this.createFunction = this.createFromClass;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
index e5af761..d04df78 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
@@ -71,64 +71,38 @@ org_apache_flex_core_ListBase.prototype.createElement = function() {
};
-/**
- * @expose
- * @return {Array.<Object>} The collection of data.
- */
-org_apache_flex_core_ListBase.prototype.get_dataProvider =
- function() {
- return this.model.dataProvider;
-};
-
-
-/**
- * @expose
- * @param {Array.<Object>} value The text setter.
- */
-org_apache_flex_core_ListBase.prototype.set_dataProvider =
- function(value) {
- this.model.dataProvider = value;
-};
-
-
-/**
- * @expose
- * @return {number} The selected index.
- */
-org_apache_flex_core_ListBase.prototype.get_selectedIndex =
- function() {
- return this.model.selectedIndex;
-};
-
-
-/**
- * @expose
- * @param {number} value The selected index.
- */
-org_apache_flex_core_ListBase.prototype.set_selectedIndex =
- function(value) {
- this.model.selectedIndex = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The selected item.
- */
-org_apache_flex_core_ListBase.prototype.get_selectedItem =
- function() {
- return this.model.selectedItem;
-};
-
-
-/**
- * @expose
- * @param {Object} value The selected item.
- */
-org_apache_flex_core_ListBase.prototype.set_selectedItem =
- function(value) {
- this.model.selectedItem = value;
-};
+Object.defineProperties(org_apache_flex_core_ListBase.prototype, {
+ 'dataProvider': {
+ /** @this {org_apache_flex_core_ListBase} */
+ get: function() {
+ return this.model.dataProvider;
+ },
+ /** @this {org_apache_flex_core_ListBase} */
+ set: function(value) {
+ this.model.dataProvider = value;
+ }
+ },
+ 'selectedIndex': {
+ /** @this {org_apache_flex_core_ListBase} */
+ get: function() {
+ return this.model.selectedIndex;
+ },
+ /** @this {org_apache_flex_core_ListBase} */
+ set: function(value) {
+ this.model.selectedIndex = value;
+ }
+ },
+ 'selectedItem': {
+ /** @this {org_apache_flex_core_ListBase} */
+ get: function() {
+ return this.model.selectedItem;
+ },
+ /** @this {org_apache_flex_core_ListBase} */
+ set: function(value) {
+ this.model.selectedItem = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/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 f930f0a..f1dce9f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -74,7 +74,7 @@ org_apache_flex_core_SimpleCSSValuesImpl.prototype.getValue =
var cName;
var selectorName;
- if (typeof(thisObject.get_style) === 'function')
+ if (typeof(thisObject.hasOwnPropertY('style')) === 'function')
{
var style = thisObject.style;
if (style != null)
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/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 d95219c..7e37110 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
@@ -57,22 +57,22 @@ org_apache_flex_core_SimpleStatesImpl.prototype.FLEXJS_CLASS_INFO =
org_apache_flex_core_IStatesImpl] };
-/**
- * @expose
- * @param {org_apache_flex_core_IStrand} value The new host.
- */
-org_apache_flex_core_SimpleStatesImpl.prototype.set_strand =
- function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- if (this.strand_.addEventListener) {
- this.strand_.addEventListener('currentStateChange',
- goog.bind(this.stateChangeHandler_, this));
- this.strand_.addEventListener('initComplete',
- goog.bind(this.initialStateHandler_, this));
- }
- }
-};
+Object.defineProperties(org_apache_flex_core_SimpleStatesImpl.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_core_SimpleStatesImpl} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ if (this.strand_.addEventListener) {
+ this.strand_.addEventListener('currentStateChange',
+ goog.bind(this.stateChangeHandler_, this));
+ this.strand_.addEventListener('initComplete',
+ goog.bind(this.initialStateHandler_, this));
+ }
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
index 7562f22..b4872a1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
@@ -53,18 +53,18 @@ org_apache_flex_core_ViewBaseDataBinding.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_core_ViewBaseDataBinding'}] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_core_ViewBaseDataBinding.prototype.set_strand =
- function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('initComplete',
- goog.bind(this.initCompleteHandler, this));
- }
-};
+Object.defineProperties(org_apache_flex_core_ViewBaseDataBinding.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_core_ViewBaseDataBinding} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ this.strand_.addEventListener('initComplete',
+ goog.bind(this.initCompleteHandler, this));
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
index ff0c40d..d183ef6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
@@ -93,45 +93,29 @@ org_apache_flex_createjs_CheckBox.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_createjs_CheckBox.prototype.get_text =
- function() {
- return this.checkBoxLabel.text;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_createjs_CheckBox.prototype.set_text =
- function(value) {
- this.checkBoxLabel.text = value;
-};
-
-
-/**
- * @expose
- * @return {bool} The selected getter.
- */
-org_apache_flex_createjs_CheckBox.prototype.get_selected =
- function() {
- return this.selected;
-};
-
-
-/**
- * @expose
- * @param {bool} value The selected setter.
- */
-org_apache_flex_createjs_CheckBox.prototype.set_selected =
- function(value) {
- this.checkMark.visible = this.selected = value;
- this.element.getStage().update();
-};
+Object.defineProperties(org_apache_flex_createjs_CheckBox.prototype, {
+ 'text': {
+ /** @this {org_apache_flex_createjs_CheckBox} */
+ get: function() {
+ return this.checkBoxLabel.text;
+ },
+ /** @this {org_apache_flex_createjs_CheckBox} */
+ set: function(value) {
+ this.checkBoxLabel.text = value;
+ }
+ },
+ 'selected': {
+ /** @this {org_apache_flex_createjs_CheckBox} */
+ get: function() {
+ return this.selected;
+ },
+ /** @this {org_apache_flex_createjs_CheckBox} */
+ set: function(value) {
+ this.checkMark.visible = this.selected = value;
+ this.element.getStage().update();
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
index 691edca..894971e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
@@ -75,21 +75,15 @@ org_apache_flex_createjs_TextButton.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The text getter.
- */
-org_apache_flex_createjs_TextButton.prototype.get_text =
- function() {
- return this.buttonLabel.text;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org_apache_flex_createjs_TextButton.prototype.set_text =
- function(value) {
- this.buttonLabel.text = value;
-};
+Object.defineProperties(org_apache_flex_createjs_TextButton.prototype, {
+ 'text': {
+ /** @this {org_apache_flex_createjs_TextButton} */
+ get: function() {
+ return this.buttonLabel.text;
+ },
+ /** @this {org_apache_flex_createjs_TextButton} */
+ set: function(value) {
+ this.buttonLabel.text = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
index 2c1ff4a..b4071cf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
@@ -36,24 +36,17 @@ goog.inherits(org_apache_flex_createjs_core_ViewBase,
org_apache_flex_createjs_core_UIBase);
-/**
- * @expose
- * @return {Object} Returns the application model.
- */
-org_apache_flex_createjs_core_ViewBase.prototype.get_applicationModel =
- function() {
- return this.applicationModel;
-};
-
-
-/**
- * @expose
- * @param {Object} value The application model.
- */
-org_apache_flex_createjs_core_ViewBase.prototype.set_applicationModel =
- function(value) {
- this.applicationModel = value;
-};
+Object.defineProperties(org_apache_flex_createjs_core_ViewBase.prototype, {
+ 'applicationModel': {
+ /** @this {org_apache_flex_createjs_core_ViewBase} */
+ get: function() {
+ return this.applicationModel_;
+ },
+ set: function(value) {
+ this.applicationModel = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
index f62cb42..109c287 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/effects/PlatformWiper.js
@@ -49,41 +49,35 @@ org_apache_flex_effects_PlatformWiper.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_effects_PlatformWiper'}] };
-/**
- * @expose
- * Sets the target for the Wipe.
- * @param {Object} target The target for the Wipe effect.
- */
-org_apache_flex_effects_PlatformWiper.prototype.set_target =
- function(target) {
- if (target == null) {
- if (this.overflow_ == null)
- delete this.target_.positioner.style.overflow;
- else
- this.target_.positioner.style.overflow = this.overflow_;
- }
- this.target_ = target;
- if (target != null) {
- this.overflow_ = this.target_.positioner.style.overflow;
- }
-};
-
-
-/**
- * @expose
- * Clips the Object.
- * @param {org_apache_flex_geom_Rectangle} rect The visible area.
- */
-org_apache_flex_effects_PlatformWiper.prototype.set_visibleRect =
- function(rect) {
- /*
- var styleString = 'rect(';
- styleString += rect.top.toString() + 'px,';
- styleString += rect.width.toString() + 'px,';
- styleString += rect.height.toString() + 'px,';
- styleString += rect.left.toString() + 'px)';
- this.target_.positioner.style.clip = styleString;
- */
- this.target_.positioner.style.height = rect.height.toString() + 'px';
- this.target_.positioner.style.overflow = 'hidden';
-};
+Object.defineProperties(org_apache_flex_effects_PlatformWiper.prototype, {
+ 'target': {
+ /** @this {org_apache_flex_effects_PlatformWiper} */
+ set: function(target) {
+ if (target == null) {
+ if (this.overflow_ == null)
+ delete this.target_.positioner.style.overflow;
+ else
+ this.target_.positioner.style.overflow = this.overflow_;
+ }
+ this.target_ = target;
+ if (target != null) {
+ this.overflow_ = this.target_.positioner.style.overflow;
+ }
+ }
+ },
+ 'visibleRect': {
+ /** @this {org_apache_flex_effects_PlatformWiper} */
+ set: function(rect) {
+ /*
+ var styleString = 'rect(';
+ styleString += rect.top.toString() + 'px,';
+ styleString += rect.width.toString() + 'px,';
+ styleString += rect.height.toString() + 'px,';
+ styleString += rect.left.toString() + 'px)';
+ this.target_.positioner.style.clip = styleString;
+ */
+ this.target_.positioner.style.height = rect.height.toString() + 'px';
+ this.target_.positioner.style.overflow = 'hidden';
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/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 d182d4e..962245e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/MouseEvent.js
@@ -123,7 +123,7 @@ org_apache_flex_events_MouseEvent.mouseOverHandler = function(e) {
}
else {
var newTargets = [target];
- if (target.get_parent === undefined)
+ if (target.hasOwnProperty('parent') === undefined)
parent = null;
else
parent = target.parent;
@@ -131,7 +131,7 @@ org_apache_flex_events_MouseEvent.mouseOverHandler = function(e) {
index = targets.indexOf(parent);
if (index == -1) {
newTargets.unshift(parent);
- if (parent.get_parent === undefined)
+ if (parent.hasOwnProperty('parent') === undefined)
break;
parent = parent.parent;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index d36c65c..c0d8f59 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -141,52 +141,46 @@ Object.defineProperties(org_apache_flex_html_Alert.prototype, {
/** @this {org_apache_flex_html_Alert} */
get: function() {
return this.flags;
- }
- }
+ },
+ /** @this {org_apache_flex_html_Alert} */
+ set: function(value) {
+ this.flags = value;
+
+ // add buttons based on flags
+ if (this.flags & org_apache_flex_html_Alert.OK) {
+ var ok = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(ok);
+ ok.text = 'OK';
+ goog.events.listen(/** @type {EventTarget} */ (ok.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ if (this.flags & org_apache_flex_html_Alert.CANCEL) {
+ var cancel = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(cancel);
+ cancel.text = 'Cancel';
+ goog.events.listen(/** @type {EventTarget} */ (cancel.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ if (this.flags & org_apache_flex_html_Alert.YES) {
+ var yes = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(yes);
+ yes.text = 'YES';
+ goog.events.listen(/** @type {EventTarget} */ (yes.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ if (this.flags & org_apache_flex_html_Alert.NO) {
+ var nob = new org_apache_flex_html_TextButton();
+ this.buttonArea.addElement(nob);
+ nob.text = 'NO';
+ goog.events.listen(/** @type {EventTarget} */ (nob.element), 'click',
+ goog.bind(this.dismissAlert, this));
+ }
+ }
+ }
});
/**
- * @param {number} value The button options.
- */
-org_apache_flex_html_Alert.prototype.set_flags =
- function(value)
- {
- this.flags = value;
-
- // add buttons based on flags
- if (this.flags & org_apache_flex_html_Alert.OK) {
- var ok = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(ok);
- ok.text = 'OK';
- goog.events.listen(/** @type {EventTarget} */ (ok.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org_apache_flex_html_Alert.CANCEL) {
- var cancel = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(cancel);
- cancel.text = 'Cancel';
- goog.events.listen(/** @type {EventTarget} */ (cancel.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org_apache_flex_html_Alert.YES) {
- var yes = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(yes);
- yes.text = 'YES';
- goog.events.listen(/** @type {EventTarget} */ (yes.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
- if (this.flags & org_apache_flex_html_Alert.NO) {
- var nob = new org_apache_flex_html_TextButton();
- this.buttonArea.addElement(nob);
- nob.text = 'NO';
- goog.events.listen(/** @type {EventTarget} */ (nob.element), 'click',
- goog.bind(this.dismissAlert, this));
- }
-};
-
-
-/**
* @param {Object} event The event object.
*/
org_apache_flex_html_Alert.prototype.dismissAlert =
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
index f7e7762..5ebe2e3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
@@ -57,30 +57,43 @@ org_apache_flex_html_DropDownList.prototype.
};
-/**
- * @expose
- * @param {Object} value The new dataProvider.
- */
-org_apache_flex_html_DropDownList.prototype.
- set_dataProvider = function(value) {
- var dp, i, n, opt;
-
- this.model.dataProvider = value;
-
- dp = this.element.options;
- n = dp.length;
- for (i = 0; i < n; i++) {
- dp.remove(0);
- }
-
- n = value.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('option');
- opt.text = value[i];
- dp.add(opt);
- }
-
-};
+Object.defineProperties(org_apache_flex_html_DropDownList.prototype, {
+ 'dataProvider': {
+ /** @this {org_apache_flex_html_DropDownList} */
+ set: function(value) {
+ var dp, i, n, opt;
+
+ this.model.dataProvider = value;
+
+ dp = this.element.options;
+ n = dp.length;
+ for (i = 0; i < n; i++) {
+ dp.remove(0);
+ }
+
+ n = value.length;
+ for (i = 0; i < n; i++) {
+ opt = document.createElement('option');
+ opt.text = value[i];
+ dp.add(opt);
+ }
+ }
+ },
+ 'selectedIndex': {
+ /** @this {org_apache_flex_html_DropDownList} */
+ set: function(value) {
+ this.model.selectedIndex = value;
+ this.element.selectedIndex = value;
+ }
+ },
+ 'selectedItem': {
+ /** @this {org_apache_flex_html_DropDownList} */
+ get: function(value) {
+ this.model.selectedItem = value;
+ this.element.selectedIndex = this.selectedIndex;
+ }
+ }
+});
/**
@@ -91,25 +104,3 @@ org_apache_flex_html_DropDownList.prototype.changeHandler =
this.model.selectedIndex = this.element.selectedIndex;
this.dispatchEvent('change');
};
-
-
-/**
- * @expose
- * @param {number} value The new selected index.
- */
-org_apache_flex_html_DropDownList.prototype.
- set_selectedIndex = function(value) {
- this.model.selectedIndex = value;
- this.element.selectedIndex = value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new selected item.
- */
-org_apache_flex_html_DropDownList.prototype.
- set_selectedItem = function(value) {
- this.model.selectedItem = value;
- this.element.selectedIndex = this.selectedIndex;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
index 22f85df..8be3163 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
@@ -66,21 +66,15 @@ org_apache_flex_html_Image.prototype.createElement =
};
-/**
- * @expose
- * @return {String} The source identifier for the Image.
- */
-org_apache_flex_html_Image.prototype.
- get_source = function() {
- return this.model.source;
-};
-
-
-/**
- * @expose
- * @param {String} value The source identifier for the Image.
- */
-org_apache_flex_html_Image.prototype.
- set_source = function(value) {
- this.model.source = value;
-};
+Object.defineProperties(org_apache_flex_html_Image.prototype, {
+ 'source': {
+ /** @this {org_apache_flex_html_Image} */
+ get: function() {
+ return this.model.source;
+ },
+ /** @this {org_apache_flex_html_Image} */
+ set: function(value) {
+ this.model.source = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
index 953e5e2..4801bde 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
@@ -51,79 +51,49 @@ org_apache_flex_html_List.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_List' }] };
-/**
- * @expose
- * @return {mx_core_IFactory} The itemRenderer generator.
- */
-org_apache_flex_html_List.prototype.get_itemRenderer =
-function() {
- return this.itemRenderer_;
-};
-
-
-/**
- * @expose
- * @param {mx_core_IFactory} value The itemRenderer generator.
- */
-org_apache_flex_html_List.prototype.set_itemRenderer =
-function(value) {
- this.itemRenderer_ = value;
-};
-
-
-/**
- * @expose
- * @return {String} The name of the field to use as a label.
- */
-org_apache_flex_html_List.prototype.get_labelField =
-function() {
- return this.model.labelField;
-};
-
-
-/**
- * @expose
- * @param {String} value The name of the field to use as a label.
- */
-org_apache_flex_html_List.prototype.set_labelField =
-function(value) {
- this.model.labelField = value;
-};
-
-
-/**
- * @expose
- * @return {number} The height of each row.
- */
-org_apache_flex_html_List.prototype.get_rowHeight =
-function() {
- return this.presentationModel.rowHeight;
-};
-
-
-/**
- * @expose
- * @param {number} value The height of each row.
- */
-org_apache_flex_html_List.prototype.set_rowHeight =
-function(value) {
- this.presentationModel.rowHeight = value;
-};
-
-
-/**
- * @expose
- * @return {Object} The model used to present some of the list's visual properties.
- */
-org_apache_flex_html_List.prototype.get_presentationModel =
-function() {
- var presModel = this.getBeadByType(org_apache_flex_core_IListPresentationModel);
- if (presModel == null) {
- presModel = new org_apache_flex_html_beads_models_ListPresentationModel();
- this.addBead(presModel);
- }
- return presModel;
-};
+Object.defineProperties(org_apache_flex_html_List.prototype, {
+ 'itemRenderer': {
+ /** @this {org_apache_flex_html_List} */
+ get: function() {
+ return this.itemRenderer_;
+ },
+ /** @this {org_apache_flex_html_List} */
+ set: function(value) {
+ this.itemRenderer_ = value;
+ }
+ },
+ 'labelField': {
+ /** @this {org_apache_flex_html_List} */
+ get: function() {
+ return this.model.labelField;
+ },
+ /** @this {org_apache_flex_html_List} */
+ set: function(value) {
+ this.model.labelField = value;
+ }
+ },
+ 'rowHeight': {
+ /** @this {org_apache_flex_html_List} */
+ get: function() {
+ return this.presentationModel.rowHeight;
+ },
+ /** @this {org_apache_flex_html_List} */
+ set: function(value) {
+ this.presentationModel.rowHeight = value;
+ }
+ },
+ 'presentationModel': {
+ /** @this {org_apache_flex_html_List} */
+ get: function() {
+ var presModel = this.getBeadByType(org_apache_flex_core_IListPresentationModel);
+ if (presModel == null) {
+ presModel = new org_apache_flex_html_beads_models_ListPresentationModel();
+ this.addBead(presModel);
+ }
+ return presModel;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
index 49ea822..39fecaa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
@@ -100,103 +100,57 @@ org_apache_flex_html_NumericStepper.prototype.spinnerChange =
};
-/**
- * @expose
- * @return {Number} The current minimum value.
- */
-org_apache_flex_html_NumericStepper.prototype.get_minimum =
- function() {
- return this.model.minimum;
-};
-
-
-/**
- * @expose
- * @param {Number} value The new minimum value.
- */
-org_apache_flex_html_NumericStepper.prototype.set_minimum =
- function(value) {
- this.model.minimum = value;
-};
-
-
-/**
- * @expose
- * @return {Number} The current maximum value.
- */
-org_apache_flex_html_NumericStepper.prototype.get_maximum =
- function() {
- return this.model.maximum;
-};
-
-
-/**
- * @expose
- * @param {Number} value The new maximum value.
- */
-org_apache_flex_html_NumericStepper.prototype.set_maximum =
- function(value) {
- this.model.maximum = value;
-};
-
-
-/**
- * @expose
- * @return {Number} The current value.
- */
-org_apache_flex_html_NumericStepper.prototype.get_value =
- function() {
- return this.model.value;
-};
-
-
-/**
- * @expose
- * @param {Number} newValue The new value.
- */
-org_apache_flex_html_NumericStepper.prototype.set_value =
- function(newValue) {
- this.model.value = newValue;
- this.spinner.value = newValue;
-};
-
-
-/**
- * @expose
- * @return {Number} The current snapInterval value.
- */
-org_apache_flex_html_NumericStepper.prototype.get_snapInterval =
- function() {
- return this.model.snapInterval;
-};
-
-
-/**
- * @expose
- * @param {Number} value The new snapInterval value.
- */
-org_apache_flex_html_NumericStepper.prototype.set_snapInterval =
- function(value) {
- this.model.snapInterval = value;
-};
-
-
-/**
- * @expose
- * @return {Number} The current stepSize value.
- */
-org_apache_flex_html_NumericStepper.prototype.get_stepSize =
- function() {
- return this.model.stepSize;
-};
-
-
-/**
- * @expose
- * @param {Number} value The new stepSize value.
- */
-org_apache_flex_html_NumericStepper.prototype.set_stepSize =
- function(value) {
- this.model.stepSize = value;
-};
+Object.defineProperties(org_apache_flex_html_NumericStepper.prototype, {
+ 'minimum': {
+ /** @this {org_apache_flex_html_NumericStepper} */
+ get: function() {
+ return this.model.minimum;
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
+ set: function(value) {
+ this.model.minimum = value;
+ }
+ },
+ 'maximum': {
+ /** @this {org_apache_flex_html_NumericStepper} */
+ get: function() {
+ return this.model.maximum;
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
+ set: function(value) {
+ this.model.maximum = value;
+ }
+ },
+ 'value': {
+ /** @this {org_apache_flex_html_NumericStepper} */
+ get: function() {
+ return this.model.value;
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
+ set: function(newValue) {
+ this.model.value = newValue;
+ this.spinner.value = newValue;
+ }
+ },
+ 'snapInterval': {
+ /** @this {org_apache_flex_html_NumericStepper} */
+ get: function() {
+ return this.model.snapInterval;
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
+ set: function(value) {
+ this.model.snapInterval = value;
+ }
+ },
+ 'stepSize': {
+ /** @this {org_apache_flex_html_NumericStepper} */
+ get: function() {
+ return this.model.stepSize;
+ },
+ /** @this {org_apache_flex_html_NumericStepper} */
+ set: function(value) {
+ this.model.stepSize = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
index ddeec61..69d6c07 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
@@ -57,72 +57,51 @@ org_apache_flex_html_SimpleList.prototype.
};
-/**
- * @override
- */
-org_apache_flex_html_SimpleList.prototype.
- get_dataProvider = function() {
- return this.model.dataProvider;
-};
-
-
-/**
- * @override
- */
-org_apache_flex_html_SimpleList.prototype.
- set_dataProvider = function(value) {
- var dp, i, n, opt;
-
- this.model.dataProvider = value;
-
- dp = this.element.options;
- n = dp.length;
- for (i = 0; i < n; i++) {
- dp.remove(0);
- }
-
- n = value.length;
- for (i = 0; i < n; i++) {
- opt = document.createElement('option');
- opt.text = value[i].toString();
- dp.add(opt);
- }
-
-};
-
-
-/**
- * @override
- */
-org_apache_flex_html_SimpleList.prototype.
- get_selectedIndex = function() {
- return this.model.selectedIndex;
-};
-
-
-/**
- * @override
- */
-org_apache_flex_html_SimpleList.prototype.
- set_selectedIndex = function(value) {
- this.model.selectedIndex = value;
-};
-
-
-/**
- * @override
- */
-org_apache_flex_html_SimpleList.prototype.
- get_selectedItem = function() {
- return this.model.selectedItem;
-};
-
-
-/**
- * @override
- */
-org_apache_flex_html_SimpleList.prototype.
- set_selectedItem = function(value) {
- this.model.selectedItem = value;
-};
+Object.defineProperties(org_apache_flex_html_SimpleList.prototype, {
+ 'dataProvider': {
+ /** @this {org_apache_flex_html_SimpleList} */
+ get: function() {
+ return this.model.dataProvider;
+ },
+ /** @this {org_apache_flex_html_SimpleList} */
+ set: function(value) {
+ var dp, i, n, opt;
+
+ this.model.dataProvider = value;
+
+ dp = this.element.options;
+ n = dp.length;
+ for (i = 0; i < n; i++) {
+ dp.remove(0);
+ }
+
+ n = value.length;
+ for (i = 0; i < n; i++) {
+ opt = document.createElement('option');
+ opt.text = value[i].toString();
+ dp.add(opt);
+ }
+ }
+ },
+ 'selectedIndex': {
+ /** @this {org_apache_flex_html_SimpleList} */
+ get: function() {
+ return this.model.selectedIndex;
+ },
+ /** @this {org_apache_flex_html_SimpleList} */
+ set: function(value) {
+ this.model.selectedIndex = value;
+ }
+ },
+ 'selectedItem': {
+ /** @this {org_apache_flex_html_SimpleList} */
+ get: function() {
+ return this.model.selectedItem;
+ },
+ /** @this {org_apache_flex_html_SimpleList} */
+ set: function(value) {
+ this.model.selectedItem = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
index 8aa17b8..85a58fa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
@@ -73,110 +73,59 @@ org_apache_flex_html_Slider.prototype.createElement =
};
-/**
- * @expose
- * @return {number} The value getter.
- */
-org_apache_flex_html_Slider.prototype.get_value =
- function() {
- return this.model.value;
-};
-
-
-/**
- * @expose
- * @param {Object} newValue The new value.
- * @return {void} The value setter.
- */
-org_apache_flex_html_Slider.prototype.set_value =
- function(newValue) {
- this.model.value = newValue;
- this.setThumbFromValue(this.model.value);
-};
-
-
-/**
- * @expose
- * @return {number} The minimum getter.
- */
-org_apache_flex_html_Slider.prototype.get_minimum =
- function() {
- return this.model.minimum;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new minimum value.
- * @return {void} The minimum setter.
- */
-org_apache_flex_html_Slider.prototype.set_minimum =
- function(value) {
- this.model.minimum = value;
-};
-
-
-/**
- * @expose
- * @return {number} The maximum getter.
- */
-org_apache_flex_html_Slider.prototype.get_maximum =
- function() {
- return this.model.maximum;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new maximum value.
- * @return {void} The maximum setter.
- */
-org_apache_flex_html_Slider.prototype.set_maximum =
- function(value) {
- this.model.maximum = value;
-};
-
-
-/**
- * @expose
- * @return {number} The snapInterval getter.
- */
-org_apache_flex_html_Slider.prototype.get_snapInterval =
- function() {
- return this.model.snapInterval;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new snapInterval value.
- * @return {void} The snapInterval setter.
- */
-org_apache_flex_html_Slider.prototype.set_snapInterval =
- function(value) {
- this.model.snapInterval = value;
-};
-
-
-/**
- * @expose
- * @return {number} The stepSize getter.
- */
-org_apache_flex_html_Slider.prototype.get_stepSize =
- function() {
- return this.model.stepSize;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new stepSize value.
- * @return {void} The stepSize setter.
- */
-org_apache_flex_html_Slider.prototype.set_stepSize =
- function(value) {
- this.model.stepSize = value;
-};
+Object.defineProperties(org_apache_flex_html_Slider.prototype, {
+ 'value': {
+ /** @this {org_apache_flex_html_Slider} */
+ get: function() {
+ return this.model.value;
+ },
+ /** @this {org_apache_flex_html_Slider} */
+ set: function(newValue) {
+ this.model.value = newValue;
+ this.setThumbFromValue(this.model.value);
+ }
+ },
+ 'minimum': {
+ /** @this {org_apache_flex_html_Slider} */
+ get: function() {
+ return this.model.minimum;
+ },
+ /** @this {org_apache_flex_html_Slider} */
+ set: function(value) {
+ this.model.minimum = value;
+ }
+ },
+ 'maximum': {
+ /** @this {org_apache_flex_html_Slider} */
+ get: function() {
+ return this.model.maximum;
+ },
+ /** @this {org_apache_flex_html_Slider} */
+ set: function(value) {
+ this.model.maximum = value;
+ }
+ },
+ 'snapInterval': {
+ /** @this {org_apache_flex_html_Slider} */
+ get: function() {
+ return this.model.snapInterval;
+ },
+ /** @this {org_apache_flex_html_Slider} */
+ set: function(value) {
+ this.model.snapInterval = value;
+ }
+ },
+ 'stepSize': {
+ /** @this {org_apache_flex_html_Slider} */
+ get: function() {
+ return this.model.stepSize;
+ },
+ /** @this {org_apache_flex_html_Slider} */
+ set: function(value) {
+ this.model.stepSize = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
index 40954c1..c4eb4cb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
@@ -74,29 +74,6 @@ org_apache_flex_html_Spinner.prototype.createElement =
};
-/**
- * @expose
- * @return {number} The current value.
- */
-org_apache_flex_html_Spinner.prototype.get_value =
- function() {
- return this.value_;
-};
-
-
-/**
- * @expose
- * @param {number} value The new value.
- */
-org_apache_flex_html_Spinner.prototype.set_value =
- function(value) {
- if (value != this.value_) {
- this.value_ = value;
- this.dispatchEvent('valueChange');
- }
-};
-
-
Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
'minimum': {
/** @this {org_apache_flex_html_Spinner} */
@@ -149,7 +126,20 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
this.dispatchEvent('stepSizeChanged');
}
}
- }
+ },
+ 'value': {
+ /** @this {org_apache_flex_html_Spinner} */
+ get: function() {
+ return this.value_;
+ },
+ /** @this {org_apache_flex_html_Spinner} */
+ set: function(value) {
+ if (value != this.value_) {
+ this.value_ = value;
+ this.dispatchEvent('valueChange');
+ }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
index 65d92f7..3ca1f03 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
@@ -60,41 +60,25 @@ org_apache_flex_html_TitleBar.prototype.createElement =
};
-/**
- * @expose
- * @return {string} The title getter.
- */
-org_apache_flex_html_TitleBar.prototype.get_title =
- function() {
- return this.model.title;
-};
-
-
-/**
- * @expose
- * @param {string} value The title setter.
- */
-org_apache_flex_html_TitleBar.prototype.set_title =
- function(value) {
- this.model.title = value;
-};
-
-
-/**
- * @expose
- * @return {string} The showCloseButton getter.
- */
-org_apache_flex_html_TitleBar.prototype.get_showCloseButton =
- function() {
- return this.model.showCloseButton;
-};
-
-
-/**
- * @expose
- * @param {string} value The title setter.
- */
-org_apache_flex_html_TitleBar.prototype.set_showCloseButton =
- function(value) {
- this.model.showCloseButton = value;
-};
+Object.defineProperties(org_apache_flex_html_TitleBar.prototype, {
+ 'title': {
+ /** @this {org_apache_flex_html_TitleBar} */
+ get: function() {
+ return this.model.title;
+ },
+ /** @this {org_apache_flex_html_TitleBar} */
+ set: function(value) {
+ this.model.title = value;
+ }
+ },
+ 'showCloseButton': {
+ /** @this {org_apache_flex_html_TitleBar} */
+ get: function() {
+ return this.model.showCloseButton;
+ },
+ /** @this {org_apache_flex_html_TitleBar} */
+ set: function(value) {
+ this.model.showCloseButton = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
index 3011b66..5070da4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
@@ -39,34 +39,24 @@ org_apache_flex_html_accessories_TextPromptBead.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_accessories_TextPromptBead' }] };
-/**
- * @expose
- * @return {string} value The new prompt.
- */
-org_apache_flex_html_accessories_TextPromptBead.prototype.
- get_prompt = function() {
- return this.prompt;
-};
-
-
-/**
- * @expose
- * @param {string} value The new prompt.
- */
-org_apache_flex_html_accessories_TextPromptBead.prototype.
- set_prompt = function(value) {
- this.prompt = value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_accessories_TextPromptBead.prototype.
- set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- value.element.placeholder = this.prompt;
- }
-};
+Object.defineProperties(org_apache_flex_html_accessories_TextPromptBead.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_accessories_TextPromptBead} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ value.element.placeholder = this.prompt;
+ }
+ }
+ },
+ 'prompt': {
+ /** @this {org_apache_flex_html_accessories_TextPromptBead} */
+ get: function() {
+ return this.prompt;
+ },
+ /** @this {org_apache_flex_html_accessories_TextPromptBead} */
+ set: function(value) {
+ this.prompt = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
index 5555e60..97a7dfa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
@@ -15,6 +15,7 @@
goog.provide('org_apache_flex_html_beads_ButtonBarView');
goog.require('org_apache_flex_html_beads_ListView');
+goog.require('org_apache_flex_utils_Language');
@@ -43,13 +44,13 @@ org_apache_flex_html_beads_ButtonBarView.prototype.FLEXJS_CLASS_INFO =
qName: 'org_apache_flex_html_beads_ButtonBarView' }] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_ButtonBarView.prototype.set_strand =
- function(value) {
-
- org_apache_flex_html_beads_ButtonBarView.base(this, 'set_strand', value);
- this.strand_ = value;
-};
+Object.defineProperties(org_apache_flex_html_beads_ButtonBarView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_ButtonBarView} */
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_html_beads_ButtonBarView, this, 'strand', value);
+ this.strand_ = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
index 6d76e9b..d78f78d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
@@ -46,23 +46,17 @@ org_apache_flex_html_beads_ContainerView.prototype.FLEXJS_CLASS_INFO =
};
-/**
- * @expose
- * @return {Object} value The content view.
- */
-org_apache_flex_html_beads_ContainerView.prototype.get_contentView =
- function() {
-
- return this._strand;
-};
-
-
-/**
- * @expose
- * @return {Object} value The resizeable view.
- */
-org_apache_flex_html_beads_ContainerView.prototype.get_resizableView =
-function() {
-
- return this._strand;
-};
+Object.defineProperties(org_apache_flex_html_beads_ContainerView.prototype, {
+ 'contentView': {
+ /** @this {org_apache_flex_html_beads_ContainerView} */
+ get: function() {
+ return this._strand;
+ }
+ },
+ 'resizableView': {
+ /** @this {org_apache_flex_html_beads_ContainerView} */
+ get: function() {
+ return this._strand;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
index 3f17c84..400ad90 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
@@ -34,12 +34,11 @@ org_apache_flex_html_beads_ImageButtonView
qName: 'org_apache_flex_html_beads_ImageButtonView'}] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_ImageButtonView.prototype.set_strand =
- function(value) {
-
- this.strand_ = value;
-};
+Object.defineProperties(org_apache_flex_html_beads_ImageButtonView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_ImageButtonView} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
index 888f6ff..c926cdb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
@@ -37,20 +37,19 @@ org_apache_flex_html_beads_ImageView
qName: 'org_apache_flex_html_beads_ImageView'}] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_ImageView.prototype.set_strand =
- function(value) {
-
- this.strand_ = value;
-
- this.model = value.getBeadByType(
- org_apache_flex_html_beads_models_ImageModel);
- this.model.addEventListener('sourceChanged',
- goog.bind(this.sourceChangeHandler, this));
-};
+Object.defineProperties(org_apache_flex_html_beads_ImageView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_ImageView} */
+ set: function(value) {
+ this.strand_ = value;
+
+ this.model = value.getBeadByType(
+ org_apache_flex_html_beads_models_ImageModel);
+ this.model.addEventListener('sourceChanged',
+ goog.bind(this.sourceChangeHandler, this));
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index 135a1ab..0d763b7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -50,65 +50,54 @@ org_apache_flex_html_beads_ListView.prototype.
interfaces: [org_apache_flex_html_beads_IListView, org_apache_flex_core_ILayoutParent] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_ListView.prototype.set_strand =
- function(value) {
-
- this.strand_ = value;
-
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.handleSizeChange, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.handleSizeChange, this));
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.handleSizeChange, this));
-
- this.model = this.strand_.model;
- this.model.addEventListener('selectedIndexChanged',
- goog.bind(this.selectionChangeHandler, this));
- this.model.addEventListener('dataProviderChanged',
- goog.bind(this.dataProviderChangeHandler, this));
-
- if (this.dataGroup_ == null) {
- var m2 = org_apache_flex_core_ValuesManager.valuesImpl.
- getValue(this.strand_, 'iDataGroup');
- this.dataGroup_ = new m2();
- }
- this.dataGroup_.strand = this;
- this.strand_.addElement(this.dataGroup_);
-
- if (this.strand_.getBeadByType(org_apache_flex_core_IBeadLayout) == null) {
- var m3 = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iBeadLayout');
- this.layout_ = new m3();
- this.strand_.addBead(this.layout_);
- //this.layout_.strand = this.strand_;
- }
-
- this.handleSizeChange(null);
-};
-
-
-/**
- * @expose
- * @return {Object} The DataGroup instance.
- */
-org_apache_flex_html_beads_ListView.prototype.get_dataGroup =
- function() {
- return this.dataGroup_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The DataGroup instance.
- */
-org_apache_flex_html_beads_ListView.prototype.set_dataGroup =
- function(value) {
- this.dataGroup_ = value;
-};
+Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_ListView} */
+ set: function(value) {
+ this.strand_ = value;
+
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.handleSizeChange, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.handleSizeChange, this));
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.handleSizeChange, this));
+
+ this.model = this.strand_.model;
+ this.model.addEventListener('selectedIndexChanged',
+ goog.bind(this.selectionChangeHandler, this));
+ this.model.addEventListener('dataProviderChanged',
+ goog.bind(this.dataProviderChangeHandler, this));
+
+ if (this.dataGroup_ == null) {
+ var m2 = org_apache_flex_core_ValuesManager.valuesImpl.
+ getValue(this.strand_, 'iDataGroup');
+ this.dataGroup_ = new m2();
+ }
+ this.dataGroup_.strand = this;
+ this.strand_.addElement(this.dataGroup_);
+
+ if (this.strand_.getBeadByType(org_apache_flex_core_IBeadLayout) == null) {
+ var m3 = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iBeadLayout');
+ this.layout_ = new m3();
+ this.strand_.addBead(this.layout_);
+ //this.layout_.strand = this.strand_;
+ }
+
+ this.handleSizeChange(null);
+ }
+ },
+ 'dataGroup': {
+ /** @this {org_apache_flex_html_beads_ListView} */
+ get: function() {
+ return this.dataGroup_;
+ },
+ /** @this {org_apache_flex_html_beads_ListView} */
+ set: function(value) {
+ this.dataGroup_ = value;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
index b921f67..4962de2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
@@ -48,34 +48,42 @@ org_apache_flex_html_beads_PanelView
interfaces: [org_apache_flex_core_IBeadView] };
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_PanelView.prototype.set_strand =
- function(value) {
-
- this.strand_ = value;
-
- if (!this.titleBar_)
- this.titleBar_ = new org_apache_flex_html_TitleBar();
-
- this.strand_.titleBar = this.titleBar_;
- this.titleBar_.id = 'titleBar';
- this.titleBar_.model = this.strand_.model;
-
- this.strand_.controlBar =
- new org_apache_flex_html_ControlBar();
-
- this.strand_.addEventListener('childrenAdded',
- goog.bind(this.changeHandler, this));
-
- // listen for changes to the strand's model so items can be changed
- // in the view
- this.strand_.model.addEventListener('titleChange',
- goog.bind(this.changeHandler, this));
-
-};
+Object.defineProperties(org_apache_flex_html_beads_PanelView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_PanelView} */
+ set: function(value) {
+ this.strand_ = value;
+
+ if (!this.titleBar_)
+ this.titleBar_ = new org_apache_flex_html_TitleBar();
+
+ this.strand_.titleBar = this.titleBar_;
+ this.titleBar_.id = 'titleBar';
+ this.titleBar_.model = this.strand_.model;
+
+ this.strand_.controlBar =
+ new org_apache_flex_html_ControlBar();
+
+ this.strand_.addEventListener('childrenAdded',
+ goog.bind(this.changeHandler, this));
+
+ // listen for changes to the strand's model so items can be changed
+ // in the view
+ this.strand_.model.addEventListener('titleChange',
+ goog.bind(this.changeHandler, this));
+ }
+ },
+ 'titleBar': {
+ /** @this {org_apache_flex_html_beads_PanelView} */
+ get: function() {
+ return this.titleBar_;
+ },
+ /** @this {org_apache_flex_html_beads_PanelView} */
+ set: function(value) {
+ this.titleBar_ = value;
+ }
+ }
+});
/**
@@ -117,23 +125,3 @@ org_apache_flex_html_beads_PanelView.prototype.changeHandler =
}
this.strand_.dispatchEvent('layoutNeeded');
};
-
-
-/**
- * @expose
- * @return {Object} The titleBar getter.
- */
-org_apache_flex_html_beads_PanelView.prototype.get_titleBar =
- function() {
- return this.titleBar_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The titleBar setter.
- */
-org_apache_flex_html_beads_PanelView.prototype.set_titleBar =
- function(value) {
- this.titleBar_ = value;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
index abce5f8..ef3161a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
@@ -45,56 +45,33 @@ org_apache_flex_html_beads_ScrollingContainerView.prototype.FLEXJS_CLASS_INFO =
};
-/**
- * @expose
- * @return {Object} value The content view.
- */
-org_apache_flex_html_beads_ScrollingContainerView.prototype.get_contentView =
- function() {
-
- return this._strand;
-};
-
-
-/**
- * @expose
- * @return {Object} value The resizeable view.
- */
-org_apache_flex_html_beads_ScrollingContainerView.prototype.get_resizableView =
-function() {
-
- return this._strand;
-};
-
-
-/**
- * @expose
- * @return {number} value The resizeable view.
- */
-org_apache_flex_html_beads_ScrollingContainerView.prototype.get_verticalScrollPosition =
-function() {
-
- return this._strand.scrollTop;
-};
-
-
-/**
- * @expose
- * @param {number} value The resizeable view.
- */
-org_apache_flex_html_beads_ScrollingContainerView.prototype.set_verticalScrollPosition =
-function(value) {
-
- this._strand.scrollTop = value;
-};
-
-
-/**
- * @expose
- * @return {number} value The resizeable view.
- */
-org_apache_flex_html_beads_ScrollingContainerView.prototype.get_maxVerticalScrollPosition =
-function() {
-
- return this._strand.scrollHeight - this._strand.clientHeight;
-};
+Object.defineProperties(org_apache_flex_html_beads_ScrollingContainerView.prototype, {
+ 'contentView': {
+ /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ get: function() {
+ return this._strand;
+ }
+ },
+ 'resizableView': {
+ /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ get: function() {
+ return this._strand;
+ }
+ },
+ 'verticalScrollPosition': {
+ /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ get: function() {
+ return this._strand.scrollTop;
+ },
+ /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ set: function(value) {
+ this._strand.scrollTop = value;
+ }
+ },
+ 'maxVerticalScrollPosition': {
+ /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ get: function() {
+ return this._strand.scrollHeight - this._strand.clientHeight;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
index 99c2def..96df74a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
@@ -34,28 +34,28 @@ org_apache_flex_html_beads_SliderThumbView
qName: 'org_apache_flex_html_beads_SliderThumbView'}] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_SliderThumbView.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-
- this.element = document.createElement('div');
- this.element.className = 'SliderThumb';
- this.element.id = 'thumb';
- this.element.style.backgroundColor = '#949494';
- this.element.style.border = 'thin solid #747474';
- this.element.style.position = 'relative';
- this.element.style.height = '30px';
- this.element.style.width = '10px';
- this.element.style.zIndex = '2';
- this.element.style.top = '-10px';
- this.element.style.left = '20px';
-
- this.strand_.element.appendChild(this.element);
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-};
+Object.defineProperties(org_apache_flex_html_beads_SliderThumbView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_SliderThumbView} */
+ set: function(value) {
+ this.strand_ = value;
+
+ this.element = document.createElement('div');
+ this.element.className = 'SliderThumb';
+ this.element.id = 'thumb';
+ this.element.style.backgroundColor = '#949494';
+ this.element.style.border = 'thin solid #747474';
+ this.element.style.position = 'relative';
+ this.element.style.height = '30px';
+ this.element.style.width = '10px';
+ this.element.style.zIndex = '2';
+ this.element.style.top = '-10px';
+ this.element.style.left = '20px';
+
+ this.strand_.element.appendChild(this.element);
+
+ this.positioner = this.element;
+ this.element.flexjs_wrapper = this;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
index faaa611..39479ec 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
@@ -34,28 +34,28 @@ org_apache_flex_html_beads_SliderTrackView
qName: 'org_apache_flex_html_beads_SliderTrackView'}] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_SliderTrackView.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-
- this.element = document.createElement('div');
- this.element.className = 'SliderTrack';
- this.element.id = 'track';
- this.element.style.backgroundColor = '#E4E4E4';
- this.element.style.height = '10px';
- this.element.style.width = '200px';
- this.element.style.border = 'thin solid #C4C4C4';
- this.element.style.position = 'relative';
- this.element.style.left = '0px';
- this.element.style.top = '10px';
- this.element.style.zIndex = '1';
-
- this.strand_.element.appendChild(this.element);
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-};
+Object.defineProperties(org_apache_flex_html_beads_SliderTrackView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_SliderTrackView} */
+ set: function(value) {
+ this.strand_ = value;
+
+ this.element = document.createElement('div');
+ this.element.className = 'SliderTrack';
+ this.element.id = 'track';
+ this.element.style.backgroundColor = '#E4E4E4';
+ this.element.style.height = '10px';
+ this.element.style.width = '200px';
+ this.element.style.border = 'thin solid #C4C4C4';
+ this.element.style.position = 'relative';
+ this.element.style.left = '0px';
+ this.element.style.top = '10px';
+ this.element.style.zIndex = '1';
+
+ this.strand_.element.appendChild(this.element);
+
+ this.positioner = this.element;
+ this.element.flexjs_wrapper = this;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
index e6ad132..c5b4af5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
@@ -34,11 +34,11 @@ org_apache_flex_html_beads_TextInputWithBorderView
qName: 'org_apache_flex_html_beads_TextInputWithBorderView'}] };
-/**
- * @expose
- * @param {Object} value The strand.
- */
-org_apache_flex_html_beads_TextInputWithBorderView.prototype.
- set_strand = function(value) {
- this.strand_ = value;
-};
+Object.defineProperties(org_apache_flex_html_beads_TextInputWithBorderView.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_TextInputWithBorderView} */
+ set: function(value) {
+ this.strand_ = value;
+ }
+ }
+});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
index 20e8977..4adaa02 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
@@ -43,48 +43,37 @@ org_apache_flex_html_beads_layouts_ButtonBarLayout
interfaces: [org_apache_flex_core_IBeadLayout] };
-/**
- * @expose
- * @param {Array} value A set of widths to use for each button (optional).
- */
-org_apache_flex_html_beads_layouts_ButtonBarLayout.prototype.set_buttonWidths =
-function(value) {
- this.buttonWidths_ = value;
-};
-
-
-/**
- * @expose
- * @return {Array} A set of widths to use for each button.
- */
-org_apache_flex_html_beads_layouts_ButtonBarLayout.prototype.get_buttonWidths =
-function() {
- return this.buttonWidths_;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_layouts_ButtonBarLayout.
- prototype.set_strand =
- function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('childrenAdded',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('itemsCreated',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.element.style.display = 'block';
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_layouts_ButtonBarLayout.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ this.strand_.addEventListener('childrenAdded',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('itemsCreated',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.element.style.display = 'block';
+ }
+ }
+ },
+ 'buttonWidths': {
+ /** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
+ set: function(value) {
+ this.buttonWidths_ = value;
+ },
+ /** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
+ get: function() {
+ return this.buttonWidths_;
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
index 984a62c..fa6a77b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
@@ -41,33 +41,31 @@ org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout.
interfaces: [org_apache_flex_core_IBeadLayout] };
-/**
- * @expose
- NonVirtualHorizontalLayout}
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout.
- prototype.set_strand =
- function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- if (this.strand_.isWidthSizedToContent() &&
- this.strand_.isHeightSizedToContent())
- this.addOtherListeners();
- else {
- this.strand_.addEventListener('heightChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('widthChanged',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('sizeChanged',
- goog.bind(this.sizeChangeHandler, this));
- if (!isNaN(this.strand_.explicitWidth) &&
- !isNaN(this.strand_.explicitHeight))
- this.addOtherListeners();
- }
- this.strand_.element.style.display = 'block';
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ if (this.strand_.isWidthSizedToContent() &&
+ this.strand_.isHeightSizedToContent())
+ this.addOtherListeners();
+ else {
+ this.strand_.addEventListener('heightChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('widthChanged',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('sizeChanged',
+ goog.bind(this.sizeChangeHandler, this));
+ if (!isNaN(this.strand_.explicitWidth) &&
+ !isNaN(this.strand_.explicitHeight))
+ this.addOtherListeners();
+ }
+ this.strand_.element.style.display = 'block';
+ }
+ }
+ }
+});
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bb9e9a5/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
index fa05b7c..e27d77d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
@@ -40,80 +40,50 @@ org_apache_flex_html_beads_layouts_TileLayout.prototype.FLEXJS_CLASS_INFO =
interfaces: [org_apache_flex_core_IBeadLayout] };
-/**
- * @expose
- * @return {number} The number of columns wide for the layout.
- */
-org_apache_flex_html_beads_layouts_TileLayout.prototype.
- get_numColumns = function() {
- return this._numColumns;
-};
-
-
-/**
- * @expose
- * @param {number} value The number of columns wide for the layout.
- */
-org_apache_flex_html_beads_layouts_TileLayout.prototype.
- set_numColumns = function(value) {
- this._numColumns = value;
-};
-
-
-/**
- * @expose
- * @return {number} The width of each column in the layout.
- */
-org_apache_flex_html_beads_layouts_TileLayout.prototype.
- get_columnWidth = function() {
- return this._columnWidth;
-};
-
-
-/**
- * @expose
- * @param {number} value The width of each column in the layout.
- */
-org_apache_flex_html_beads_layouts_TileLayout.prototype.
- set_columnWidth = function(value) {
- this._columnWidth = value;
-};
-
-
-/**
- * @expose
- * @return {number} The height of each row of the layout.
- */
-org_apache_flex_html_beads_layouts_TileLayout.prototype.
- get_rowHeight = function() {
- return this._rowHeight;
-};
-
-
-/**
- * @expose
- * @param {number} value The height of each row of the Tile layout.
- */
-org_apache_flex_html_beads_layouts_TileLayout.prototype.
- set_rowHeight = function(value) {
- this._rowHeight = value;
-};
-
-
-/**
- * @expose
- * @param {Object} value The new host.
- */
-org_apache_flex_html_beads_layouts_TileLayout.prototype.
- set_strand = function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- this.strand_.addEventListener('childrenAdded',
- goog.bind(this.changeHandler, this));
- this.strand_.addEventListener('layoutNeeded',
- goog.bind(this.changeHandler, this));
- }
-};
+Object.defineProperties(org_apache_flex_html_beads_layouts_TileLayout.prototype, {
+ 'strand': {
+ /** @this {org_apache_flex_html_beads_layouts_TileLayout} */
+ set: function(value) {
+ if (this.strand_ !== value) {
+ this.strand_ = value;
+ this.strand_.addEventListener('childrenAdded',
+ goog.bind(this.changeHandler, this));
+ this.strand_.addEventListener('layoutNeeded',
+ goog.bind(this.changeHandler, this));
+ }
+ }
+ },
+ 'numColumns': {
+ /** @this {org_apache_flex_html_beads_layouts_TileLayout} */
+ get: function() {
+ return this._numColumns;
+ },
+ /** @this {org_apache_flex_html_beads_layouts_TileLayout} */
+ set: function(value) {
+ this._numColumns = value;
+ }
+ },
+ 'columnWidth': {
+ /** @this {org_apache_flex_html_beads_layouts_TileLayout} */
+ get: function() {
+ return this._columnWidth;
+ },
+ /** @this {org_apache_flex_html_beads_layouts_TileLayout} */
+ set: function(value) {
+ this._columnWidth = value;
+ }
+ },
+ 'rowHeight': {
+ /** @this {org_apache_flex_html_beads_layouts_TileLayout} */
+ get: function() {
+ return this._rowHeight;
+ },
+ /** @this {org_apache_flex_html_beads_layouts_TileLayout} */
+ set: function(value) {
+ this._rowHeight = value;
+ }
+ }
+});
/**
[22/47] git commit: [flex-asjs] [refs/heads/develop] - remove
hasProp/getProp/setProp
Posted by ah...@apache.org.
remove hasProp/getProp/setProp
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d9ebd922
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d9ebd922
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d9ebd922
Branch: refs/heads/develop
Commit: d9ebd92209a50b362c7937accf23fe1c039a6b9b
Parents: 6940d95
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 09:36:53 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 09:36:53 2015 -0700
----------------------------------------------------------------------
.../FlexJSStore/src/ProductJSONItemConverter.as | 2 +-
.../apache/flex/core/ApplicationDataBinding.as | 8 ++--
.../apache/flex/core/ContainerDataBinding.as | 14 +++----
.../flex/core/MXMLBeadViewBaseDataBinding.as | 8 ++--
.../flex/core/StatesWithTransitionsImpl.as | 20 +++++-----
.../src/org/apache/flex/effects/Fade.as | 2 +-
.../src/org/apache/flex/effects/Move.as | 6 +--
.../src/org/apache/flex/effects/Resize.as | 2 +-
.../src/org/apache/flex/effects/Wipe.as | 2 +-
.../src/org/apache/flex/core/DataBindingBase.as | 41 --------------------
.../org/apache/flex/events/EventDispatcher.as | 30 --------------
11 files changed, 32 insertions(+), 103 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/examples/FlexJSStore/src/ProductJSONItemConverter.as
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/ProductJSONItemConverter.as b/examples/FlexJSStore/src/ProductJSONItemConverter.as
index 6114b57..4d44ecf 100755
--- a/examples/FlexJSStore/src/ProductJSONItemConverter.as
+++ b/examples/FlexJSStore/src/ProductJSONItemConverter.as
@@ -34,7 +34,7 @@ package
var obj:Object = super.convertItem(data);
var product:Product = new Product();
for (var p:String in obj)
- setProperty(product, p, obj[p]);
+ product[p] = obj[p];
return product;
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as
index 27aef17..beeffd2 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ApplicationDataBinding.as
@@ -97,7 +97,7 @@ package org.apache.flex.core
binding = bindings[i];
if (binding.source is Array)
{
- if (hasProperty(_strand, binding.source[0]))
+ if (binding.source[0] in _strand)
{
if (binding.source.length == 2 && binding.destination.length == 2)
{
@@ -115,7 +115,7 @@ package org.apache.flex.core
sb.sourceID = binding.source[0];
sb.sourcePropertyName = binding.source[1];
sb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(sb);
@@ -140,7 +140,7 @@ package org.apache.flex.core
cb.sourceID = binding.source[0];
cb.sourcePropertyName = binding.source[1];
cb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(cb);
@@ -171,7 +171,7 @@ package org.apache.flex.core
sb.eventName = fieldWatcher.eventNames as String;
sb.sourcePropertyName = binding.source;
sb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(sb);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
index 12c46d9..72161a6 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as
@@ -99,7 +99,7 @@ package org.apache.flex.core
binding = bindings[i];
if (binding.source is Array)
{
- if (hasProperty(_strand, binding.source[0]))
+ if (binding.source[0] in _strand)
{
var destObject:Object;
var destination:IStrand;
@@ -118,7 +118,7 @@ package org.apache.flex.core
sb.sourceID = binding.source[0];
sb.sourcePropertyName = binding.source[1];
sb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(sb);
@@ -143,7 +143,7 @@ package org.apache.flex.core
cb.sourceID = binding.source[0];
cb.sourcePropertyName = binding.source[1];
cb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(cb);
@@ -183,7 +183,7 @@ package org.apache.flex.core
cb.destinationPropertyName = binding.destination[1];
cb.sourcePropertyName = binding.source;
cb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(cb);
@@ -208,7 +208,7 @@ package org.apache.flex.core
sb.eventName = fieldWatcher.eventNames as String;
sb.sourcePropertyName = binding.source;
sb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(sb);
@@ -365,9 +365,9 @@ package org.apache.flex.core
{
for (var p:String in deferredBindings)
{
- if (getProperty(_strand, p) != null)
+ if (_strand[p] != null)
{
- var destination:IStrand = getProperty(_strand, p) as IStrand;
+ var destination:IStrand = _strand[p] as IStrand;
destination.addBead(deferredBindings[p]);
delete deferredBindings[p];
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
index 741b7a9..bc3762f 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
@@ -97,7 +97,7 @@ package org.apache.flex.core
binding = bindings[i];
if (binding.source is Array)
{
- if (hasProperty(_strand, binding.source[0]))
+ if (binding.source[0] in _strand)
{
if (binding.source.length == 2 && binding.destination.length == 2)
{
@@ -114,7 +114,7 @@ package org.apache.flex.core
sb.sourceID = binding.source[0];
sb.sourcePropertyName = binding.source[1];
sb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(sb);
@@ -139,7 +139,7 @@ package org.apache.flex.core
cb.sourceID = binding.source[0];
cb.sourcePropertyName = binding.source[1];
cb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(cb);
@@ -170,7 +170,7 @@ package org.apache.flex.core
sb.eventName = fieldWatcher.eventNames as String;
sb.sourcePropertyName = binding.source;
sb.setDocument(_strand);
- destObject = getProperty(_strand, binding.destination[0]);
+ destObject = _strand[binding.destination[0]];
destination = destObject as IStrand;
if (destination)
destination.addBead(sb);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
index 7f23785..d0e9059 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/StatesWithTransitionsImpl.as
@@ -206,16 +206,16 @@ package org.apache.flex.core
{
var sp:SetProperty = SetProperty(o);
if (sp.target != null)
- setProperty(getProperty(sp.document, sp.target), sp.name, sp.previousValue);
+ sp.document[sp.target][sp.name] = sp.previousValue;
else
- setProperty(sp.document, sp.name, sp.previousValue);
+ sp.document[sp.name] = sp.previousValue;
}
else if (o is SetEventHandler)
{
var seh:SetEventHandler = SetEventHandler(o);
if (seh.target != null)
{
- getProperty(seh.document, seh.target).removeEventListener(seh.name, seh.handlerFunction);
+ seh.document[seh.target].removeEventListener(seh.name, seh.handlerFunction);
}
else
{
@@ -248,10 +248,10 @@ package org.apache.flex.core
{
var parent:IParent = ai.document as IParent;
if (ai.destination)
- parent = getProperty(parent, ai.destination) as IParent;
+ parent = parent[ai.destination] as IParent;
if (ai.relativeTo != null)
{
- var child:Object = getProperty(ai.document, ai.relativeTo);
+ var child:Object = ai.document[ai.relativeTo];
if (ai.destination)
parent = IChild(child).parent as IParent;
var index:int = parent.getElementIndex(child);
@@ -272,13 +272,13 @@ package org.apache.flex.core
var sp:SetProperty = SetProperty(o);
if (sp.target != null)
{
- sp.previousValue = getProperty(getProperty(sp.document, sp.target), sp.name);
- setProperty(getProperty(sp.document, sp.target), sp.name, sp.value);
+ sp.previousValue = sp.document[sp.target][sp.name];
+ sp.document[sp.target][sp.name] = sp.value;
}
else
{
- sp.previousValue = getProperty(sp.document, sp.name);
- setProperty(sp.document, sp.name, sp.value);
+ sp.previousValue = sp.document[sp.name];
+ sp.document[sp.name] = sp.value;
}
}
else if (o is SetEventHandler)
@@ -286,7 +286,7 @@ package org.apache.flex.core
var seh:SetEventHandler = SetEventHandler(o);
if (seh.target != null)
{
- getProperty(seh.document, seh.target).addEventListener(seh.name, seh.handlerFunction);
+ seh.document[seh.target].addEventListener(seh.name, seh.handlerFunction);
}
else
{
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as
index 90658ff..28f0d16 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Fade.as
@@ -134,7 +134,7 @@ public class Fade extends Tween implements IDocument
override public function play():void
{
if (target != null)
- actualTarget = getProperty(document, target);
+ actualTarget = document[target];
if (isNaN(alphaFrom))
start = actualTarget.alpha;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
index 68a9bcd..2a42b19 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
@@ -165,7 +165,7 @@ public class Move extends Tween implements IDocument
override public function play():void
{
if (target != null)
- actualTarget = getProperty(document, target);
+ actualTarget = document[target];
if (isNaN(xFrom))
xStart = actualTarget.x;
@@ -220,7 +220,7 @@ public class Move extends Tween implements IDocument
{
if (target != null)
{
- actualTarget = getProperty(document, target);
+ actualTarget = document[target];
xFrom = actualTarget.x;
yFrom = actualTarget.y;
}
@@ -230,7 +230,7 @@ public class Move extends Tween implements IDocument
{
if (target != null)
{
- actualTarget = getProperty(document, target);
+ actualTarget = document[target];
xTo = actualTarget.x;
yTo = actualTarget.y;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as
index eff8d6b..2ee1e15 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Resize.as
@@ -153,7 +153,7 @@ public class Resize extends Tween implements IDocument
override public function play():void
{
if (target != null)
- actualTarget = getProperty(document, target);
+ actualTarget = document[target];
if (isNaN(widthFrom))
widthStart = actualTarget.width;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
index 4877215..fe83935 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Wipe.as
@@ -117,7 +117,7 @@ public class Wipe extends Tween implements IDocument
override public function play():void
{
if (target != null)
- actualTarget = getProperty(document, target);
+ actualTarget = document[target];
wiper.target = actualTarget;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
index ff4ae9a..9d108e5 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
@@ -41,46 +41,5 @@ package org.apache.flex.core
{
}
- /**
- * True if property is defined on object.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- protected function hasProperty(obj:Object, propName:String):Boolean
- {
- return (propName in obj);
- }
-
- /**
- * Get a property from an object.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- protected function getProperty(obj:Object, propName:String):*
- {
- if (propName === 'this')
- return obj;
-
- return obj[propName];
- }
-
- /**
- * Set a property on an object.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- protected function setProperty(obj:Object, propName:String, value:*):void
- {
- obj[propName] = value;
- }
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d9ebd922/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/EventDispatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/EventDispatcher.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/EventDispatcher.as
index b5dbe2e..d0b268a 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/EventDispatcher.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/EventDispatcher.as
@@ -43,35 +43,5 @@ package org.apache.flex.events
{
super();
}
-
- /**
- * Get a property from an object.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- protected function getProperty(obj:Object, propName:String):*
- {
- if (propName === 'this')
- return obj;
-
- return obj[propName];
- }
-
- /**
- * Set a property on an object.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- protected function setProperty(obj:Object, propName:String, value:*):void
- {
- obj[propName] = value;
- }
-
}
}
\ No newline at end of file
[31/47] git commit: [flex-asjs] [refs/heads/develop] - fix backing
variables so they don't collide with defineprop'd properties
Posted by ah...@apache.org.
fix backing variables so they don't collide with defineprop'd properties
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5a26f7cd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5a26f7cd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5a26f7cd
Branch: refs/heads/develop
Commit: 5a26f7cd5b58a34a635642d1696413132cfca8dd
Parents: 827c281
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:07:25 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:07:25 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/net/HTTPService.js | 31 ++++++--------------
1 file changed, 9 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5a26f7cd/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index 2daa8b6..1a04e5a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -86,6 +86,12 @@ org_apache_flex_net_HTTPService = function() {
*/
this.contentType_ = 'application/x-www-form-urlencoded';
+ /**
+ * @private
+ * @type {?string}
+ */
+ this.id_ = null;
+
//try { // (erikdebruin) 'desperate' attempt to bypass XDR security in IE < 10
// this.contentType_ = 'text/plain';
// this.element = new XDomainRequest();
@@ -248,12 +254,12 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
'id': {
/** @this {org_apache_flex_net_HTTPService} */
get: function() {
- return this.id;
+ return this.id_;
},
/** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
- if (this.id !== value) {
- this.id = value;
+ if (this.id_ !== value) {
+ this.id_ = value;
this.dispatchEvent('idChanged');
}
}
@@ -269,18 +275,6 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
get: function() {
return null;
}
- },
- 'strand': {
- /** @this {org_apache_flex_net_HTTPService} */
- set: function(value) {
- if (this.strand_ !== value) {
- this.strand_ = value;
- }
- var n = this.beads_ ? this.beads_.length : 0;
- for (var i = 0; i < n; i++) {
- this.addBead(this.beads_[i]);
- }
- }
}
});
@@ -362,13 +356,6 @@ org_apache_flex_net_HTTPService.prototype.progressHandler = function() {
/**
- * @expose
- * @type {?string}
- */
-org_apache_flex_net_HTTPService.prototype.id = null;
-
-
-/**
* @param {Object} document The MXML object.
* @param {string} id The id for the instance.
*/
[30/47] git commit: [flex-asjs] [refs/heads/develop] - setting model
will add the bead. Really should pull model from CSS
Posted by ah...@apache.org.
setting model will add the bead. Really should pull model from CSS
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/827c2810
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/827c2810
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/827c2810
Branch: refs/heads/develop
Commit: 827c28108257701da233d40a9e760b92bb28f5e3
Parents: e44cc21
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:06:49 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:06:49 2015 -0700
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/html/Image.js | 2 --
1 file changed, 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/827c2810/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
index 234967e..bccade8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
@@ -57,8 +57,6 @@ org_apache_flex_html_Image.prototype.createElement =
this.model = new
org_apache_flex_html_beads_models_ImageModel();
- this.addBead(this.model);
-
this.addBead(new
org_apache_flex_html_beads_ImageView());
[03/47] git commit: [flex-asjs] [refs/heads/develop] - change more
set_ and get_ prefixes
Posted by ah...@apache.org.
change more set_ and get_ prefixes
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/31e50c86
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/31e50c86
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/31e50c86
Branch: refs/heads/develop
Commit: 31e50c8614fcd4e6a52402e05bb0113ad555ac5e
Parents: 9c7b2ef
Author: Alex Harui <ah...@apache.org>
Authored: Fri Jan 30 10:50:49 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Jan 30 10:50:49 2015 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/binding/BindingBase.js | 10 +--
.../src/org/apache/flex/binding/ChainBinding.js | 25 ++-----
.../org/apache/flex/binding/ConstantBinding.js | 7 +-
.../org/apache/flex/binding/GenericBinding.js | 25 +++----
.../org/apache/flex/binding/SimpleBinding.js | 10 +--
.../src/org/apache/flex/core/DataBindingBase.js | 49 --------------
.../src/org/apache/flex/core/FormatBase.js | 2 +-
.../org/apache/flex/core/SimpleStatesImpl.js | 63 +++---------------
.../org/apache/flex/core/ViewBaseDataBinding.js | 36 ++--------
.../org/apache/flex/events/EventDispatcher.js | 31 ---------
.../org/apache/flex/net/JSONItemConverter.js | 32 ---------
.../src/org/apache/flex/utils/Language.js | 16 ++---
.../apache/flex/utils/MXMLDataInterpreter.js | 69 +++++---------------
13 files changed, 60 insertions(+), 315 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
index aea3087..1854a18 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
@@ -83,10 +83,7 @@ org_apache_flex_binding_BindingBase.prototype.set_strand = function(value) {
if (this.destination == null)
this.destination = value;
if (this.sourceID != null) {
- if (typeof(this.document['get_' + this.sourceID]) === 'function')
- this.source = this.document['get_' + this.sourceID]();
- else
- this.source = this.document[this.sourceID];
+ this.source = this.document[this.sourceID];
if (this.source == null) {
this.document.addEventListener('valueChange',
goog.bind(this.sourceChangeHandler, this));
@@ -118,8 +115,5 @@ org_apache_flex_binding_BindingBase.prototype.sourceChangeHandler = function(eve
this.source.removeEventListener(this.eventName,
goog.bind(this.changeHandler, this));
- if (typeof(this.document['get_' + this.sourceID]) === 'function')
- this.source = this.document['get_' + this.sourceID]();
- else
- this.source = this.document[this.sourceID];
+ this.source = this.document[this.sourceID];
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
index 3730dbf..21dd2eb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
@@ -90,10 +90,7 @@ org_apache_flex_binding_ChainBinding.prototype.evaluateSourceChain = function()
for (var i = 0; i < n - 1; i++) {
propName = this.source[i];
var propObj;
- if (typeof(obj['get_' + propName]) === 'function')
- propObj = obj['get_' + propName]();
- else
- propObj = obj[propName];
+ propObj = obj[propName];
var watcher = new org_apache_flex_binding_ChainWatcher(propName, this.applyBinding);
obj.addEventListener('valueChange', watcher.handler);
if (propObj == null)
@@ -111,10 +108,7 @@ org_apache_flex_binding_ChainBinding.prototype.evaluateSourceChain = function()
obj.addEventListener('valueChange', valueChangeHandler);
// we have a complete chain, get the value
- if (typeof(obj['get_' + propName]) === 'function')
- this.value = obj['get_' + propName]();
- else
- this.value = obj[propName];
+ this.value = obj[propName];
return true;
};
@@ -132,10 +126,7 @@ org_apache_flex_binding_ChainBinding.prototype.applyValue = function() {
}
if (typeof(this.destination) === 'string') {
destinationName = this.destination;
- if (typeof(this.document['set_' + destinationName]) === 'function')
- this.document['set_' + destinationName](this.value);
- else
- this.document[destinationName] = this.value;
+ this.document[destinationName] = this.value;
return;
}
@@ -145,20 +136,14 @@ org_apache_flex_binding_ChainBinding.prototype.applyValue = function() {
for (var i = 0; i < n - 1; i++) {
var propName = this.destination[i];
var propObj;
- if (typeof(obj['get_' + propName]) === 'function')
- propObj = obj['get_' + propName]();
- else
- propObj = obj[propName];
+ propObj = obj[propName];
if (propObj == null) {
obj.addEventListener('valueChange', handler);
return;
}
obj = propObj;
}
- if (typeof(obj['set_' + this.destination[n - 1]]) === 'function')
- obj['set_' + this.destination[n - 1]](this.value);
- else
- obj[this.destination[n - 1]] = this.value;
+ obj[this.destination[n - 1]] = this.value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index a4bb0c5..36d22c3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -48,15 +48,12 @@ org_apache_flex_binding_ConstantBinding.prototype.set_strand = function(value) {
var val;
try {
- val = this.source['get_' + this.sourcePropertyName]();
+ val = this.source[this.sourcePropertyName];
} catch (e) {
try {
val = this.source.constructor[this.sourcePropertyName];
} catch (e2) {
}
}
- if (typeof(this.destination['set_' + this.destinationPropertyName]) === 'function')
- this.destination['set_' + this.destinationPropertyName](val);
- else
- this.destination[this.destinationPropertyName] = val;
+ this.destination[this.destinationPropertyName] = val;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
index 2fd6373..f162f9b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/GenericBinding.js
@@ -82,12 +82,12 @@ org_apache_flex_binding_GenericBinding.prototype.getValueFromSource =
{
var arr = this.source;
var n = arr.length;
- obj = this.document['get_' + arr[0]]();
+ obj = this.document[arr[0]];
if (obj == null)
return null;
for (var i = 1; i < n; i++)
{
- obj = obj['get_' + arr[i]]();
+ obj = obj[arr[i]];
if (obj == null)
return null;
}
@@ -101,7 +101,7 @@ org_apache_flex_binding_GenericBinding.prototype.getValueFromSource =
}
else if (typeof(this.source) == 'string')
{
- obj = this.document['get_' + this.source]();
+ obj = this.document[this.source];
return obj;
}
return null;
@@ -123,11 +123,8 @@ org_apache_flex_binding_GenericBinding.prototype.applyValue =
var arr = this.destinationData;
var n = arr.length;
var obj;
- var getter = 'get_' + arr[0];
- if (typeof(this.document[getter]) === 'function')
- obj = this.document[getter]();
- else
- obj = this.document[arr[0]];
+ var getter = arr[0];
+ obj = this.document[arr[0]];
if (obj == null) {
this.document.addEventListener(
org_apache_flex_events_ValueChangeEvent.VALUE_CHANGE,
@@ -136,18 +133,12 @@ org_apache_flex_binding_GenericBinding.prototype.applyValue =
}
for (var i = 1; i < n - 1; i++)
{
- getter = 'get_' + arr[i];
- if (typeof(this.document[getter]) === 'function')
- obj = obj[getter]();
- else
- obj = obj[arr[i]];
+ getter = arr[i];
+ obj = obj[arr[i]];
if (obj == null)
return;
}
- var setter = 'set_' + arr[n - 1];
- if (typeof(obj[setter]) === 'function')
- obj[setter](value);
- else
+ var setter = arr[n - 1];
obj[arr[n - 1]] = value;
}
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index f1b16e4..fca7e87 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -50,14 +50,8 @@ org_apache_flex_binding_SimpleBinding.prototype.eventName = '';
* @expose
*/
org_apache_flex_binding_SimpleBinding.prototype.changeHandler = function() {
- if (typeof(this.destination['set_' + this.destinationPropertyName]) === 'function')
- this.destination['set_' + this.destinationPropertyName](
- this.source['get_' + this.sourcePropertyName]()
- );
- else {
- this.destination[this.destinationPropertyName] =
- this.source['get_' + this.sourcePropertyName]();
- }
+ this.destination[this.destinationPropertyName] =
+ this.source[this.sourcePropertyName];
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
index 9e36a85..7445ffd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
@@ -32,52 +32,3 @@ org_apache_flex_core_DataBindingBase.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'DataBindingBase',
qName: 'org_apache_flex_core_DataBindingBase'}] };
-
-/**
- * @expose
- * @param {Object} obj The object.
- * @param {string} propName The name of the property.
- * @return {boolean} True if property exists.
- */
-org_apache_flex_core_DataBindingBase.prototype.hasProperty =
- function(obj, propName) {
- if (typeof obj['get_' + propName] === 'function') {
- return true;
- }
- return (propName in obj);
-};
-
-
-/**
- * @expose
- * @param {Object} obj The object.
- * @param {string} propName The name of the property.
- * @return {Object} value The value of the property.
- */
-org_apache_flex_core_DataBindingBase.prototype.getProperty =
- function(obj, propName) {
- if (propName == 'this')
- return obj;
-
- if (typeof obj['get_' + propName] === 'function') {
- return obj['get_' + propName]();
- }
- return obj[propName];
-};
-
-
-/**
- * @expose
- * @param {Object} obj The object.
- * @param {string} propName The name of the property.
- * @param {Object} value The value of the property.
- */
-org_apache_flex_core_DataBindingBase.prototype.setProperty =
-function(obj, propName, value) {
- if (typeof obj['set_' + propName] === 'function') {
- obj['set_' + propName](value);
- } else {
- obj[propName] = value;
- }
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index 19494fd..8b83cf8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -86,7 +86,7 @@ org_apache_flex_core_FormatBase.prototype._formattedResult = '';
* @return {Object}
*/
org_apache_flex_core_FormatBase.prototype.get_propertyValue = function() {
- var value = this.strand_['get_' + this.propertyName]();
+ var value = this.strand_[this.propertyName];
return value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/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 6b12d08..d95219c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleStatesImpl.js
@@ -138,11 +138,7 @@ org_apache_flex_core_SimpleStatesImpl.prototype.revert_ = function(s) {
parent = o.document;
if (o.destination) {
- if (typeof(o.document['get_' + o.destination]) === 'function') {
- parent = o.document['get_' + o.destination]();
- } else {
- parent = o.document[o.destination];
- }
+ parent = o.document[o.destination];
}
parent.removeElement(item);
@@ -150,23 +146,10 @@ org_apache_flex_core_SimpleStatesImpl.prototype.revert_ = function(s) {
new org_apache_flex_events_Event('childrenAdded'));
}
} else if (org_apache_flex_utils_Language.is(o, mx_states_SetProperty)) {
- if (typeof(o.document['get_' + o.target]) === 'function') {
- target = o.document['get_' + o.target]();
- } else {
- target = o.document[o.target];
- }
-
- if (typeof(target['set_' + o.name]) === 'function') {
- target['set_' + o.name](o.previousValue);
- } else {
- target[o.name] = o.previousValue;
- }
+ target = o.document[o.target];
+ target[o.name] = o.previousValue;
} else if (org_apache_flex_utils_Language.is(o, mx_states_SetEventHandler)) {
- if (typeof(o.document['get_' + o.target]) === 'function') {
- target = o.document['get_' + o.target]();
- } else {
- target = o.document[o.target];
- }
+ target = o.document[o.target];
target.removeEventListener(o.name, o.handlerFunction);
}
}
@@ -202,19 +185,11 @@ org_apache_flex_core_SimpleStatesImpl.prototype.apply_ = function(s) {
parent = o.document;
if (o.destination) {
- if (typeof(o.document['get_' + o.destination]) === 'function') {
- parent = o.document['get_' + o.destination]();
- } else {
- parent = o.document[o.destination];
- }
+ parent = o.document[o.destination];
}
if (o.relativeTo) {
- if (typeof(o.document['get_' + o.relativeTo]) === 'function') {
- child = o.document['get_' + o.relativeTo]();
- } else {
- child = o.document[o.relativeTo];
- }
+ child = o.document[o.relativeTo];
index = parent.getElementIndex(child);
if (o.position === 'after') {
@@ -232,29 +207,11 @@ org_apache_flex_core_SimpleStatesImpl.prototype.apply_ = function(s) {
}
else if (org_apache_flex_utils_Language.is(o, mx_states_SetProperty))
{
- if (typeof(o.document['get_' + o.target]) === 'function') {
- target = o.document['get_' + o.target]();
- } else {
- target = o.document[o.target];
- }
-
- if (typeof(target['get_' + o.name]) === 'function') {
- o.previousValue = target['get_' + o.name]();
- } else {
- o.previousValue = target[o.name];
- }
-
- if (typeof(target['set_' + o.name]) === 'function') {
- target['set_' + o.name](o.value);
- } else {
- target[o.name] = o.value;
- }
+ target = o.document[o.target];
+ o.previousValue = target[o.name];
+ target[o.name] = o.value;
} else if (org_apache_flex_utils_Language.is(o, mx_states_SetEventHandler)) {
- if (typeof(o.document['get_' + o.target]) === 'function') {
- target = o.document['get_' + o.target]();
- } else {
- target = o.document[o.target];
- }
+ target = o.document[o.target];
target.addEventListener(o.name, o.handlerFunction);
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
index 2380e40..7562f22 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
@@ -121,12 +121,7 @@ org_apache_flex_core_ViewBaseDataBinding.prototype.initCompleteHandler =
sb.setDocument(this.strand_);
prop = binding.destination[0];
- if (typeof(this.strand_['get_' +
- prop]) == 'function')
- destination = this.strand_[
- 'get_' + prop]();
- else
- destination = this.strand_[prop];
+ destination = this.strand_[prop];
if (destination)
destination.addBead(sb);
@@ -149,12 +144,7 @@ org_apache_flex_core_ViewBaseDataBinding.prototype.initCompleteHandler =
cb.sourcePropertyName = binding.source[1];
cb.setDocument(this.strand_);
prop = binding.destination[0];
- if (typeof(this.strand_['get_' +
- prop]) == 'function')
- destination = this.strand_[
- 'get_' + prop]();
- else
- destination = this.strand_[prop];
+ destination = this.strand_[prop];
if (destination)
destination.addBead(cb);
@@ -180,12 +170,7 @@ org_apache_flex_core_ViewBaseDataBinding.prototype.initCompleteHandler =
sb.sourcePropertyName = binding.source;
sb.setDocument(this.strand_);
prop = binding.destination[0];
- if (typeof(this.strand_['get_' +
- prop]) == 'function')
- destination = this.strand_[
- 'get_' + prop]();
- else
- destination = this.strand_[prop];
+ destination = this.strand_[prop];
if (destination)
destination.addBead(sb);
@@ -351,18 +336,9 @@ org_apache_flex_core_ViewBaseDataBinding.prototype.deferredBindingsHandler =
for (p in this.deferredBindings)
{
if (p != event.propertyName) continue;
- if (typeof(this.strand_['get_' + p]) == 'function')
- {
- destination = this.strand_['get_' + p]();
- destination.addBead(this.deferredBindings[p]);
- delete this.deferredBindings[p];
- }
- else if (this.strand_[p] != null)
- {
- destination = this.strand_[p];
- destination.addBead(this.deferredBindings[p]);
- delete this.deferredBindings[p];
- }
+ destination = this.strand_[p];
+ destination.addBead(this.deferredBindings[p]);
+ delete this.deferredBindings[p];
}
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js b/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
index e508d25..e1e2fb7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
@@ -69,37 +69,6 @@ org_apache_flex_events_EventDispatcher.prototype.addEventListener =
/**
- * @expose
- * @param {Object} obj The object.
- * @param {string} propName The name of the property.
- * @return {Object} value The value of the property.
- */
-org_apache_flex_events_EventDispatcher.prototype.getProperty =
- function(obj, propName) {
- if (typeof obj['get_' + propName] === 'function') {
- return obj['get_' + propName]();
- }
- return obj[propName];
-};
-
-
-/**
- * @expose
- * @param {Object} obj The object.
- * @param {string} propName The name of the property.
- * @param {Object} value The value of the property.
- */
-org_apache_flex_events_EventDispatcher.prototype.setProperty =
-function(obj, propName, value) {
- if (typeof obj['set_' + propName] === 'function') {
- obj['set_' + propName](value);
- } else {
- obj[propName] = value;
- }
-};
-
-
-/**
* @type {Object}
*/
org_apache_flex_events_EventDispatcher.elementEvents = {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/frameworks/js/FlexJS/src/org/apache/flex/net/JSONItemConverter.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/JSONItemConverter.js b/frameworks/js/FlexJS/src/org/apache/flex/net/JSONItemConverter.js
index 698b514..5434a15 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/JSONItemConverter.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/JSONItemConverter.js
@@ -46,35 +46,3 @@ org_apache_flex_net_JSONItemConverter.prototype.convertItem = function(s) {
s += '}';
return JSON.parse(s);
};
-
-
-/**
- * @expose
- * @param {Object} obj The object.
- * @param {string} propName The name of the property.
- * @return {Object} value The value of the property.
- */
-org_apache_flex_net_JSONItemConverter.prototype.getProperty =
- function(obj, propName) {
- if (typeof obj['get_' + propName] === 'function') {
- return obj['get_' + propName]();
- }
- return obj[propName];
-};
-
-
-/**
- * @expose
- * @param {Object} obj The object.
- * @param {string} propName The name of the property.
- * @param {Object} value The value of the property.
- */
-org_apache_flex_net_JSONItemConverter.prototype.setProperty =
-function(obj, propName, value) {
- if (typeof obj['set_' + propName] === 'function') {
- obj['set_' + propName](value);
- } else {
- obj[propName] = value;
- }
-};
-
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/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 d697751..fb3e893 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -198,8 +198,8 @@ org_apache_flex_utils_Language.uint = function(value) {
* @return {number}
*/
org_apache_flex_utils_Language.preincrement = function(obj, prop) {
- var value = obj['get_' + prop]() + 1;
- obj['set_' + prop](value);
+ var value = obj[prop] + 1;
+ obj[prop] = value;
return value;
};
@@ -213,8 +213,8 @@ org_apache_flex_utils_Language.preincrement = function(obj, prop) {
* @return {number}
*/
org_apache_flex_utils_Language.predecrement = function(obj, prop) {
- var value = obj['get_' + prop]() - 1;
- obj['set_' + prop](value);
+ var value = obj[prop] - 1;
+ obj[prop] = value;
return value;
};
@@ -228,8 +228,8 @@ org_apache_flex_utils_Language.predecrement = function(obj, prop) {
* @return {number}
*/
org_apache_flex_utils_Language.postincrement = function(obj, prop) {
- var value = obj['get_' + prop]();
- obj['set_' + prop](value + 1);
+ var value = obj[prop];
+ obj[prop] = value + 1;
return value;
};
@@ -243,7 +243,7 @@ org_apache_flex_utils_Language.postincrement = function(obj, prop) {
* @return {number}
*/
org_apache_flex_utils_Language.postdecrement = function(obj, prop) {
- var value = obj['get_' + prop]();
- obj['set_' + prop](value + 1);
+ var value = obj[prop];
+ obj[prop] = value + 1;
return value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/31e50c86/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 95f95da..eb9f090 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
@@ -68,7 +68,7 @@ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLObject =
}
if (name === 'id') {
- document['set_' + value](comp);
+ document[value] = comp;
id = value;
}
@@ -80,16 +80,12 @@ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLObject =
id = value;
}
else if (name === 'id') {
- if (typeof(comp['set_id']) === 'function') {
- comp['set_id'](value);
- }
+ try {
+ comp.id = value;
+ } catch (e) {};
}
else {
- if (typeof comp['set_' + name] === 'function') {
- comp['set_' + name](value);
- } else {
- comp[name] = value;
- }
+ comp[name] = value;
}
}
@@ -161,11 +157,7 @@ org_apache_flex_utils_MXMLDataInterpreter.initializeStrandBasedObject =
value = generateMXMLObject(document, value);
}
- if (typeof comp['set_' + name] === 'function') {
- comp['set_' + name](value);
- } else {
- comp[name] = value;
- }
+ comp[name] = value;
}
beadOffset = i + (m - 1) * 3;
@@ -188,7 +180,7 @@ org_apache_flex_utils_MXMLDataInterpreter.initializeStrandBasedObject =
if (name === 'id') {
id = value;
- document['set_' + value](comp);
+ document[value] = comp;
}
if (name === 'document' && !comp.document) {
@@ -196,15 +188,11 @@ org_apache_flex_utils_MXMLDataInterpreter.initializeStrandBasedObject =
} else if (name === '_id') {
id = value; // and don't assign to comp
} else if (name === 'id') {
- if (typeof(comp['set_id']) === 'function') {
- comp['set_id'](value);
- }
+ try {
+ comp.id = value;
+ } catch (e) {};
} else {
- if (typeof(comp['set_' + name]) === 'function') {
- comp['set_' + name](value);
- } else {
- comp[name] = value;
- }
+ comp[name] = value;
}
}
@@ -219,11 +207,7 @@ org_apache_flex_utils_MXMLDataInterpreter.initializeStrandBasedObject =
} else if (simple === false) {
value = generateMXMLObject(document, value);
}
- if (typeof(comp['set_' + name]) === 'function') {
- comp['set_' + name](value);
- } else {
- comp[name] = value;
- }
+ comp[name] = value;
}
m = data[i++]; // num styles
@@ -286,11 +270,7 @@ org_apache_flex_utils_MXMLDataInterpreter.initializeStrandBasedObject =
}
if (id) {
- if (typeof(document['set_' + id]) === 'function') {
- document['set_' + id](comp);
- } else {
- document[id] = comp;
- }
+ document[id] = comp;
}
if (typeof(comp.setDocument) === 'function') {
@@ -368,11 +348,7 @@ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties =
if (name === '_id') {
id = value; // and don't assign
} else {
- if (typeof(host['set_' + name]) === 'function') {
- host['set_' + name](value);
- } else {
- host[name] = value;
- }
+ host[name] = value;
}
}
@@ -385,12 +361,6 @@ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties =
value = generateMXMLArray(host, null, value);
} else if (simple === false) {
value = generateMXMLObject(host, value);
- } else {
- if (typeof(host['set_' + name]) === 'function') {
- host['set_' + name](value);
- } else {
- host[name] = value;
- }
}
beads = value;
@@ -413,11 +383,7 @@ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties =
value = generateMXMLObject(host, value);
}
- if (typeof(host['set_' + name]) === 'function') {
- host['set_' + name](value);
- } else {
- host[name] = value;
- }
+ host[name] = value;
}
/*
@@ -431,10 +397,7 @@ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLProperties =
value = generateMXMLArray(host, null, value, false);
else if (simple === false)
value = generateMXMLObject(host, value);
- if (typeof(host['set_' + name]) == 'function')
- host['set_' + name](value);
- else
- host[name] = value;
+ host[name] = value;
}
*/
[36/47] git commit: [flex-asjs] [refs/heads/develop] - sprinkle in
@expose to get release version to survive minification. @expose is deprecated
so we may need to re-work this some day
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
index 7a0d8f4..6db743e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
@@ -52,7 +52,8 @@ org_apache_flex_html_List.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_List.prototype, {
- 'itemRenderer': {
+ /** @expose */
+ itemRenderer: {
/** @this {org_apache_flex_html_List} */
get: function() {
return this.itemRenderer_;
@@ -62,7 +63,8 @@ Object.defineProperties(org_apache_flex_html_List.prototype, {
this.itemRenderer_ = value;
}
},
- 'labelField': {
+ /** @expose */
+ labelField: {
/** @this {org_apache_flex_html_List} */
get: function() {
return this.model.labelField;
@@ -72,7 +74,8 @@ Object.defineProperties(org_apache_flex_html_List.prototype, {
this.model.labelField = value;
}
},
- 'rowHeight': {
+ /** @expose */
+ rowHeight: {
/** @this {org_apache_flex_html_List} */
get: function() {
return this.presentationModel.rowHeight;
@@ -82,7 +85,8 @@ Object.defineProperties(org_apache_flex_html_List.prototype, {
this.presentationModel.rowHeight = value;
}
},
- 'presentationModel': {
+ /** @expose */
+ presentationModel: {
/** @this {org_apache_flex_html_List} */
get: function() {
var presModel = this.getBeadByType(org_apache_flex_core_IListPresentationModel);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
index ce51916..5962793 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
@@ -44,7 +44,8 @@ org_apache_flex_html_MultilineLabel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_MultilineLabel.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_MultilineLabel} */
get: function() {
return this.element.innerHTML;
@@ -54,7 +55,8 @@ Object.defineProperties(org_apache_flex_html_MultilineLabel.prototype, {
this.element.innerHTML = value;
}
},
- 'html': {
+ /** @expose */
+ html: {
/** @this {org_apache_flex_html_MultilineLabel} */
get: function() {
return this.element.innerHTML;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
index 846d0db..abdac91 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
@@ -101,7 +101,8 @@ org_apache_flex_html_NumericStepper.prototype.spinnerChange =
Object.defineProperties(org_apache_flex_html_NumericStepper.prototype, {
- 'minimum': {
+ /** @expose */
+ minimum: {
/** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.minimum;
@@ -111,7 +112,8 @@ Object.defineProperties(org_apache_flex_html_NumericStepper.prototype, {
this.model.minimum = value;
}
},
- 'maximum': {
+ /** @expose */
+ maximum: {
/** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.maximum;
@@ -121,7 +123,8 @@ Object.defineProperties(org_apache_flex_html_NumericStepper.prototype, {
this.model.maximum = value;
}
},
- 'value': {
+ /** @expose */
+ value: {
/** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.value;
@@ -132,7 +135,8 @@ Object.defineProperties(org_apache_flex_html_NumericStepper.prototype, {
this.spinner.value = newValue;
}
},
- 'snapInterval': {
+ /** @expose */
+ snapInterval: {
/** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.snapInterval;
@@ -142,7 +146,8 @@ Object.defineProperties(org_apache_flex_html_NumericStepper.prototype, {
this.model.snapInterval = value;
}
},
- 'stepSize': {
+ /** @expose */
+ stepSize: {
/** @this {org_apache_flex_html_NumericStepper} */
get: function() {
return this.model.stepSize;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
index 8778def..f0baa42 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
@@ -139,7 +139,8 @@ org_apache_flex_html_Panel.prototype.addedToParent =
Object.defineProperties(org_apache_flex_html_Panel.prototype, {
- 'showCloseButton': {
+ /** @expose */
+ showCloseButton: {
/** @this {org_apache_flex_html_Panel} */
get: function() {
return this.model.showCloseButton;
@@ -149,7 +150,8 @@ Object.defineProperties(org_apache_flex_html_Panel.prototype, {
this.model.showCloseButton = value;
}
},
- 'title': {
+ /** @expose */
+ title: {
/** @this {org_apache_flex_html_Panel} */
get: function() {
return this.model.title;
@@ -159,7 +161,8 @@ Object.defineProperties(org_apache_flex_html_Panel.prototype, {
this.model.title = value;
}
},
- 'controlBar': {
+ /** @expose */
+ controlBar: {
/** @this {org_apache_flex_html_Panel} */
get: function() {
return this.controlBarChildren;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
index 8514420..17d3a63 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
@@ -88,7 +88,8 @@ org_apache_flex_html_RadioButton.prototype.initSkin =
Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_html_RadioButton} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_html_RadioButton, this, 'id', value);
@@ -96,7 +97,8 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
this.input.id = value;
}
},
- 'groupName': {
+ /** @expose */
+ groupName: {
/** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.input.name;
@@ -106,7 +108,8 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
this.input.name = value;
}
},
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.textNode.nodeValue;
@@ -116,7 +119,8 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
this.textNode.nodeValue = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.input.checked;
@@ -126,7 +130,8 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
this.input.checked = value;
}
},
- 'value': {
+ /** @expose */
+ value: {
/** @this {org_apache_flex_html_RadioButton} */
get: function() {
return this.input.value;
@@ -136,7 +141,8 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
this.input.value = value;
}
},
- 'selectedValue': {
+ /** @expose */
+ selectedValue: {
/** @this {org_apache_flex_html_RadioButton} */
get: function() {
var buttons, groupName, i, n;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
index b393acd..560597b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
@@ -58,7 +58,8 @@ org_apache_flex_html_SimpleList.prototype.
Object.defineProperties(org_apache_flex_html_SimpleList.prototype, {
- 'dataProvider': {
+ /** @expose */
+ dataProvider: {
/** @this {org_apache_flex_html_SimpleList} */
get: function() {
return this.model.dataProvider;
@@ -83,7 +84,8 @@ Object.defineProperties(org_apache_flex_html_SimpleList.prototype, {
}
}
},
- 'selectedIndex': {
+ /** @expose */
+ selectedIndex: {
/** @this {org_apache_flex_html_SimpleList} */
get: function() {
return this.model.selectedIndex;
@@ -93,7 +95,8 @@ Object.defineProperties(org_apache_flex_html_SimpleList.prototype, {
this.model.selectedIndex = value;
}
},
- 'selectedItem': {
+ /** @expose */
+ selectedItem: {
/** @this {org_apache_flex_html_SimpleList} */
get: function() {
return this.model.selectedItem;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
index 1b1f315..6ba09d5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
@@ -74,7 +74,8 @@ org_apache_flex_html_Slider.prototype.createElement =
Object.defineProperties(org_apache_flex_html_Slider.prototype, {
- 'value': {
+ /** @expose */
+ value: {
/** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.value;
@@ -85,7 +86,8 @@ Object.defineProperties(org_apache_flex_html_Slider.prototype, {
this.setThumbFromValue(this.model.value);
}
},
- 'minimum': {
+ /** @expose */
+ minimum: {
/** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.minimum;
@@ -95,7 +97,8 @@ Object.defineProperties(org_apache_flex_html_Slider.prototype, {
this.model.minimum = value;
}
},
- 'maximum': {
+ /** @expose */
+ maximum: {
/** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.maximum;
@@ -105,7 +108,8 @@ Object.defineProperties(org_apache_flex_html_Slider.prototype, {
this.model.maximum = value;
}
},
- 'snapInterval': {
+ /** @expose */
+ snapInterval: {
/** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.snapInterval;
@@ -115,7 +119,8 @@ Object.defineProperties(org_apache_flex_html_Slider.prototype, {
this.model.snapInterval = value;
}
},
- 'stepSize': {
+ /** @expose */
+ stepSize: {
/** @this {org_apache_flex_html_Slider} */
get: function() {
return this.model.stepSize;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
index 4d5be82..8b0c6be 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
@@ -75,7 +75,8 @@ org_apache_flex_html_Spinner.prototype.createElement =
Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
- 'minimum': {
+ /** @expose */
+ minimum: {
/** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.minimum_;
@@ -88,7 +89,8 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
}
}
},
- 'maximum': {
+ /** @expose */
+ maximum: {
/** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.maximum_;
@@ -101,7 +103,8 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
}
}
},
- 'snapInterval': {
+ /** @expose */
+ snapInterval: {
/** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.snapInterval_;
@@ -114,7 +117,8 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
}
}
},
- 'stepSize': {
+ /** @expose */
+ stepSize: {
/** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.stepSize_;
@@ -127,7 +131,8 @@ Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
}
}
},
- 'value': {
+ /** @expose */
+ value: {
/** @this {org_apache_flex_html_Spinner} */
get: function() {
return this.value_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
index c38f700..fdcb810 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
@@ -54,7 +54,8 @@ org_apache_flex_html_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html_TextArea.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_TextArea} */
get: function() {
return this.element.value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
index 9eb5d21..8bc2a81 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
@@ -40,7 +40,8 @@ org_apache_flex_html_TextButton.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_TextButton} */
get: function() {
return this.element.innerHTML;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
index 1fa21e0..59e91cc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
@@ -59,7 +59,8 @@ org_apache_flex_html_TextInput.prototype.createElement = function() {
Object.defineProperties(org_apache_flex_html_TextInput.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_TextInput} */
get: function() {
return this.element.value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
index 0867b49..5a8b087 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
@@ -61,7 +61,8 @@ org_apache_flex_html_TitleBar.prototype.createElement =
Object.defineProperties(org_apache_flex_html_TitleBar.prototype, {
- 'title': {
+ /** @expose */
+ title: {
/** @this {org_apache_flex_html_TitleBar} */
get: function() {
return this.model.title;
@@ -71,7 +72,8 @@ Object.defineProperties(org_apache_flex_html_TitleBar.prototype, {
this.model.title = value;
}
},
- 'showCloseButton': {
+ /** @expose */
+ showCloseButton: {
/** @this {org_apache_flex_html_TitleBar} */
get: function() {
return this.model.showCloseButton;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
index c7bfaeb..6ef186f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
@@ -48,7 +48,8 @@ org_apache_flex_html_ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_ToggleTextButton.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_ToggleTextButton} */
get: function() {
return this.element.innerHTML;
@@ -58,7 +59,8 @@ Object.defineProperties(org_apache_flex_html_ToggleTextButton.prototype, {
this.element.innerHTML = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_html_ToggleTextButton} */
get: function() {
return this.selected_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
index 7375b36..8109d5a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
@@ -41,7 +41,8 @@ org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype.FLEXJS_CLASS
Object.defineProperties(org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_accessories_NumericOnlyTextInputBead} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
index bba9796..e606dd7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
@@ -41,7 +41,8 @@ org_apache_flex_html_accessories_PasswordInputBead.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_accessories_PasswordInputBead.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_accessories_PasswordInputBead} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
index 1cfacb3..0c9bce2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/TextPromptBead.js
@@ -40,7 +40,8 @@ org_apache_flex_html_accessories_TextPromptBead.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_accessories_TextPromptBead.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_accessories_TextPromptBead} */
set: function(value) {
if (this.strand_ !== value) {
@@ -49,7 +50,8 @@ Object.defineProperties(org_apache_flex_html_accessories_TextPromptBead.prototyp
}
}
},
- 'prompt': {
+ /** @expose */
+ prompt: {
/** @this {org_apache_flex_html_accessories_TextPromptBead} */
get: function() {
return this.prompt;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
index c9d0605..d3efd91 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ButtonBarView.js
@@ -45,7 +45,8 @@ org_apache_flex_html_beads_ButtonBarView.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_ButtonBarView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_ButtonBarView} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
index 3da4b06..91b8373 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ContainerView.js
@@ -47,13 +47,15 @@ org_apache_flex_html_beads_ContainerView.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_ContainerView.prototype, {
- 'contentView': {
+ /** @expose */
+ contentView: {
/** @this {org_apache_flex_html_beads_ContainerView} */
get: function() {
return this._strand;
}
},
- 'resizableView': {
+ /** @expose */
+ resizableView: {
/** @this {org_apache_flex_html_beads_ContainerView} */
get: function() {
return this._strand;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
index 451d209..4dd989a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
@@ -59,7 +59,8 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */
set: function(value) {
this.strand_ = value;
@@ -87,7 +88,8 @@ Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArr
this.dataProviderChangedHandler(null);
}
},
- 'itemRendererClass': {
+ /** @expose */
+ itemRendererClass: {
/** @this {org_apache_flex_html_beads_DataItemRendererFactoryForArrayData} */
get: function() {
if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
index a63a70d..629be37 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageButtonView.js
@@ -35,7 +35,8 @@ org_apache_flex_html_beads_ImageButtonView
Object.defineProperties(org_apache_flex_html_beads_ImageButtonView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_ImageButtonView} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
index e0acf17..8b49822 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ImageView.js
@@ -38,7 +38,8 @@ org_apache_flex_html_beads_ImageView
Object.defineProperties(org_apache_flex_html_beads_ImageView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_ImageView} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index 80b56c7..6f7cc65 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -51,7 +51,8 @@ org_apache_flex_html_beads_ListView.prototype.
Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_ListView} */
set: function(value) {
this.strand_ = value;
@@ -87,7 +88,8 @@ Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
this.handleSizeChange(null);
}
},
- 'dataGroup': {
+ /** @expose */
+ dataGroup: {
/** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return this.dataGroup_;
@@ -131,19 +133,22 @@ org_apache_flex_html_beads_ListView.prototype.
Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
- 'contentView': {
+ /** @expose */
+ contentView: {
/** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return this.dataGroup_;
}
},
- 'border': {
+ /** @expose */
+ border: {
/** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return null;
}
},
- 'vScrollBar': {
+ /** @expose */
+ vScrollBar: {
/** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return null;
@@ -152,7 +157,8 @@ Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
set: function(value) {
}
},
- 'resizeableView': {
+ /** @expose */
+ resizeableView: {
/** @this {org_apache_flex_html_beads_ListView} */
get: function() {
return this;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
index 9e57655..4042eec 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
@@ -49,7 +49,8 @@ org_apache_flex_html_beads_PanelView
Object.defineProperties(org_apache_flex_html_beads_PanelView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_PanelView} */
set: function(value) {
this.strand_ = value;
@@ -73,7 +74,8 @@ Object.defineProperties(org_apache_flex_html_beads_PanelView.prototype, {
goog.bind(this.changeHandler, this));
}
},
- 'titleBar': {
+ /** @expose */
+ titleBar: {
/** @this {org_apache_flex_html_beads_PanelView} */
get: function() {
return this.titleBar_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
index 2a6226d..2e32c98 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ScrollingContainerView.js
@@ -46,29 +46,33 @@ org_apache_flex_html_beads_ScrollingContainerView.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_ScrollingContainerView.prototype, {
- 'contentView': {
+ /** @expose */
+ contentView: {
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand;
}
},
- 'resizableView': {
+ /** @expose */
+ resizableView: {
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand;
}
},
- 'verticalScrollPosition': {
+ /** @expose */
+ verticalScrollPosition: {
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand.scrollTop;
},
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
- set: function(value) {
+ set: function(value) {
this._strand.scrollTop = value;
}
},
- 'maxVerticalScrollPosition': {
+ /** @expose */
+ maxVerticalScrollPosition: {
/** @this {org_apache_flex_html_beads_ScrollingContainerView} */
get: function() {
return this._strand.scrollHeight - this._strand.clientHeight;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
index 5344407..6588b42 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderThumbView.js
@@ -35,7 +35,8 @@ org_apache_flex_html_beads_SliderThumbView
Object.defineProperties(org_apache_flex_html_beads_SliderThumbView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_SliderThumbView} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
index eb47bc0..f23e3e9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/SliderTrackView.js
@@ -35,7 +35,8 @@ org_apache_flex_html_beads_SliderTrackView
Object.defineProperties(org_apache_flex_html_beads_SliderTrackView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_SliderTrackView} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
index 116bbde..51cb4e7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextInputWithBorderView.js
@@ -35,7 +35,8 @@ org_apache_flex_html_beads_TextInputWithBorderView
Object.defineProperties(org_apache_flex_html_beads_TextInputWithBorderView.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_TextInputWithBorderView} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
index 6161347..02da71c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
@@ -50,7 +50,8 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
Object.defineProperties(org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_TextItemRendererFactoryForArrayData} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
index 1a8a331..8068249 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
@@ -38,7 +38,8 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.FLE
Object.defineProperties(org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_controllers_ItemRendererMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
index d912483..0d3595c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
@@ -40,7 +40,8 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
Object.defineProperties(org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
index 33ae094..294efb2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
@@ -38,7 +38,8 @@ org_apache_flex_html_beads_controllers_SliderMouseController.prototype.FLEXJS_CL
Object.defineProperties(org_apache_flex_html_beads_controllers_SliderMouseController.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_controllers_SliderMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
index ec14063..e54acab 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
@@ -37,7 +37,8 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype.FLEXJS_C
Object.defineProperties(org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_controllers_SpinnerMouseController} */
set: function(value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
index c8468e5..4b78ae5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
@@ -44,7 +44,8 @@ org_apache_flex_html_beads_layouts_ButtonBarLayout
Object.defineProperties(org_apache_flex_html_beads_layouts_ButtonBarLayout.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
set: function(value) {
if (this.strand_ !== value) {
@@ -63,7 +64,8 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_ButtonBarLayout.proto
}
}
},
- 'buttonWidths': {
+ /** @expose */
+ buttonWidths: {
/** @this {org_apache_flex_html_beads_layouts_ButtonBarLayout} */
set: function(value) {
this.buttonWidths_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index b8dd72f..353bb93 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@ -44,7 +44,8 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype.FLEXJS_CLASS_
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_layouts_NonVirtualBasicLayout} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
index 9d5ac8f..5bbbf83 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
@@ -41,7 +41,8 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype.FLEX
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
index 090c6ee..846acec 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
@@ -42,7 +42,8 @@ org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout.
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_layouts_NonVirtualHorizontalLayout} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
index caf04cf..1991053 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
@@ -41,7 +41,8 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype.FLEXJS_CLA
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
index a0f1a16..0d9fbda 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
@@ -40,7 +40,8 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype.F
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout} */
set: function(value) {
if (this.strand_ !== value) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
index c08c35c..17f83ec 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
@@ -41,7 +41,8 @@ org_apache_flex_html_beads_layouts_TileLayout.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_layouts_TileLayout.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
set: function(value) {
if (this.strand_ !== value) {
@@ -53,7 +54,8 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_TileLayout.prototype,
}
}
},
- 'numColumns': {
+ /** @expose */
+ numColumns: {
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
get: function() {
return this._numColumns;
@@ -63,7 +65,8 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_TileLayout.prototype,
this._numColumns = value;
}
},
- 'columnWidth': {
+ /** @expose */
+ columnWidth: {
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
get: function() {
return this._columnWidth;
@@ -73,7 +76,8 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_TileLayout.prototype,
this._columnWidth = value;
}
},
- 'rowHeight': {
+ /** @expose */
+ rowHeight: {
/** @this {org_apache_flex_html_beads_layouts_TileLayout} */
get: function() {
return this._rowHeight;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
index e3863a8..b222cfd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ArraySelectionModel.js
@@ -46,13 +46,15 @@ org_apache_flex_html_beads_models_ArraySelectionModel.prototype.FLEXJS_CLASS_INF
Object.defineProperties(org_apache_flex_html_beads_models_ArraySelectionModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'dataProvider': {
+ /** @expose */
+ dataProvider: {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
get: function() {
return this.dataProvider_;
@@ -63,7 +65,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_ArraySelectionModel.pr
this.dispatchEvent('dataProviderChanged');
}
},
- 'selectedIndex': {
+ /** @expose */
+ selectedIndex: {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
get: function() {
return this.selectedIndex_;
@@ -74,7 +77,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_ArraySelectionModel.pr
this.dispatchEvent('selectedIndexChanged');
}
},
- 'selectedItem': {
+ /** @expose */
+ selectedItem: {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
get: function() {
var si;
@@ -106,7 +110,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_ArraySelectionModel.pr
this.dispatchEvent('selectedIndexChanged');
}
},
- 'labelField': {
+ /** @expose */
+ labelField: {
/** @this {org_apache_flex_html_beads_models_ArraySelectionModel} */
get: function() {
return this.labelField_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
index 9d2016f..a9e4579 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/DataGridModel.js
@@ -50,14 +50,16 @@ org_apache_flex_html_beads_models_DataGridModel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_models_DataGridModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_DataGridModel} */
set: function(value) {
org_apache_flex_utils_Language(org_apache_flex_html_beads_models_DataGridModel, this, 'strand', value);
this.strand_ = value;
}
},
- 'columns': {
+ /** @expose */
+ columns: {
/** @this {org_apache_flex_html_beads_models_DataGridModel} */
set: function(value) {
this.columns_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 188cc27..1b80a28 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
@@ -44,13 +44,15 @@ org_apache_flex_html_beads_models_ImageModel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_models_ImageModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_ImageModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'source': {
+ /** @expose */
+ source: {
/** @this {org_apache_flex_html_beads_models_ImageModel} */
get: function() {
return this.source_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
index 3f934e6..11167bf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/ListPresentationModel.js
@@ -53,13 +53,15 @@ org_apache_flex_html_beads_models_ListPresentationModel.prototype.FLEXJS_CLASS_I
Object.defineProperties(org_apache_flex_html_beads_models_ListPresentationModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'rowHeight': {
+ /** @expose */
+ rowHeight: {
/** @this {org_apache_flex_html_beads_models_ListPresentationModel} */
get: function() {
return this.rowHeight_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
index 6ccc83e..0f2c434 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/PanelModel.js
@@ -57,13 +57,15 @@ org_apache_flex_html_beads_models_PanelModel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_models_PanelModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_PanelModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'title': {
+ /** @expose */
+ title: {
/** @this {org_apache_flex_html_beads_models_PanelModel} */
get: function() {
return this.title_;
@@ -76,7 +78,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_PanelModel.prototype,
}
}
},
- 'htmlTitle': {
+ /** @expose */
+ htmlTitle: {
/** @this {org_apache_flex_html_beads_models_PanelModel} */
get: function() {
return this.htmlTitle_;
@@ -89,7 +92,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_PanelModel.prototype,
}
}
},
- 'showCloseButton': {
+ /** @expose */
+ showCloseButton: {
/** @this {org_apache_flex_html_beads_models_PanelModel} */
get: function() {
return this.showCloseButton_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 91ed062..030856b 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
@@ -48,13 +48,15 @@ org_apache_flex_html_beads_models_RangeModel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'minimum': {
+ /** @expose */
+ minimum: {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
get: function() {
return this.minimum_;
@@ -67,7 +69,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype,
}
}
},
- 'maximum': {
+ /** @expose */
+ maximum: {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
get: function() {
return this.maximum_;
@@ -80,7 +83,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype,
}
}
},
- 'value': {
+ /** @expose */
+ value: {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
get: function() {
return this.value_;
@@ -100,7 +104,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype,
}
}
},
- 'snapInterval': {
+ /** @expose */
+ snapInterval: {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
get: function() {
return this.snapInterval_;
@@ -113,7 +118,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype,
}
}
},
- 'stepSize': {
+ /** @expose */
+ stepSize: {
/** @this {org_apache_flex_html_beads_models_RangeModel} */
get: function() {
return this.stepSize_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
index 2072288..10ac1bc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TextModel.js
@@ -46,13 +46,15 @@ org_apache_flex_html_beads_models_TextModel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_models_TextModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_TextModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_beads_models_TextModel} */
get: function() {
return this.text_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
index 731963f..ae7b7a0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/models/TitleBarModel.js
@@ -60,13 +60,15 @@ org_apache_flex_html_beads_models_TitleBarModel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_beads_models_TitleBarModel.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
set: function(value) {
this.strand_ = value;
}
},
- 'title': {
+ /** @expose */
+ title: {
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
get: function() {
return this.title_;
@@ -79,7 +81,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_TitleBarModel.prototyp
}
}
},
- 'htmlTitle': {
+ /** @expose */
+ htmlTitle: {
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
get: function() {
return this.htmlTitle_;
@@ -92,7 +95,8 @@ Object.defineProperties(org_apache_flex_html_beads_models_TitleBarModel.prototyp
}
}
},
- 'showCloseButton': {
+ /** @expose */
+ showCloseButton: {
/** @this {org_apache_flex_html_beads_models_TitleBarModel} */
get: function() {
return this.showCloseButton_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
index 341972a..37df650 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
@@ -72,7 +72,8 @@ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
set: function(value) {
this.strand_ = value;
@@ -82,7 +83,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemR
return this.strand_;
}
},
- 'data': {
+ /** @expose */
+ data: {
/** @this {org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
index b916c6f..84959e7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataGridColumn.js
@@ -27,7 +27,8 @@ org_apache_flex_html_supportClasses_DataGridColumn =
Object.defineProperties(org_apache_flex_html_supportClasses_DataGridColumn.prototype, {
- 'itemRenderer': {
+ /** @expose */
+ itemRenderer: {
/** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
get: function() {
return this.itemRenderer_;
@@ -37,7 +38,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataGridColumn.proto
this.itemRenderer_ = value;
}
},
- 'columnWidth': {
+ /** @expose */
+ columnWidth: {
/** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
get: function() {
return this.columnWidth_;
@@ -47,7 +49,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataGridColumn.proto
this.columnWidth_ = value;
}
},
- 'label': {
+ /** @expose */
+ label: {
/** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
get: function() {
return this.label_;
@@ -57,7 +60,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataGridColumn.proto
this.label_ = value;
}
},
- 'dataField': {
+ /** @expose */
+ dataField: {
/** @this {org_apache_flex_html_supportClasses_DataGridColumn} */
get: function() {
return this.dataField_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
index 05c5e8a..625d4c3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
@@ -70,7 +70,8 @@ org_apache_flex_html_supportClasses_DataItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.prototype, {
- 'itemRendererParent': {
+ /** @expose */
+ itemRendererParent: {
/** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
get: function() {
return this.rendererParent_;
@@ -80,13 +81,15 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
this.rendererParent_ = value;
}
},
- 'index': {
+ /** @expose */
+ index: {
/** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.index_ = value;
}
},
- 'dataField': {
+ /** @expose */
+ dataField: {
/** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.dataField_ = value;
@@ -96,7 +99,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
return this.dataField_;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.selected_ = value;
@@ -108,7 +112,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
}
}
},
- 'hovered': {
+ /** @expose */
+ hovered: {
/** @this {org_apache_flex_html_supportClasses_DataItemRenderer} */
set: function(value) {
this.hovered_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
index a42c19d..5d9465d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
@@ -45,13 +45,15 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype.FLEXJS_CLASS_I
Object.defineProperties(org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
set: function(value) {
this.strand_ = value;
}
},
- 'numElements': {
+ /** @expose */
+ numElements: {
/** @this {org_apache_flex_html_supportClasses_NonVirtualDataGroup} */
get: function() {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
index 2e35047..3e977dc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -72,7 +72,8 @@ org_apache_flex_html_supportClasses_StringItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.prototype, {
- 'strand': {
+ /** @expose */
+ strand: {
/** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.strand_ = value;
@@ -82,7 +83,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.p
return this.strand_;
}
},
- 'itemRendererParent': {
+ /** @expose */
+ itemRendererParent: {
/** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
get: function() {
return this.rendererParent_;
@@ -92,13 +94,15 @@ Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.p
this.rendererParent_ = value;
}
},
- 'index': {
+ /** @expose */
+ index: {
/** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.index_ = value;
}
},
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
this.element.innerHTML = value;
@@ -108,7 +112,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.p
return this.element.innerHTML;
}
},
- 'data': {
+ /** @expose */
+ data: {
/** @this {org_apache_flex_html_supportClasses_StringItemRenderer} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
index 91876dd..6bda43f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/UIItemRendererBase.js
@@ -77,13 +77,15 @@ org_apache_flex_html_supportClasses_UIItemRendererBase.prototype.generateMXMLAtt
Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.prototype, {
- 'MXMLDescriptor': {
+ /** @expose */
+ MXMLDescriptor: {
/** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return null;
}
},
- 'data': {
+ /** @expose */
+ data: {
/** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.data_;
@@ -93,7 +95,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.p
this.data_ = value;
}
},
- 'labelField': {
+ /** @expose */
+ labelField: {
/** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.labelField_;
@@ -103,7 +106,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.p
this.labelField_ = value;
}
},
- 'index': {
+ /** @expose */
+ index: {
/** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.index_;
@@ -113,7 +117,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.p
this.index_ = value;
}
},
- 'hovered': {
+ /** @expose */
+ hovered: {
/** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.hovered_;
@@ -123,7 +128,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.p
this.hovered_ = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.selected_;
@@ -133,7 +139,8 @@ Object.defineProperties(org_apache_flex_html_supportClasses_UIItemRendererBase.p
this.selected_ = value;
}
},
- 'down': {
+ /** @expose */
+ down: {
/** @this {org_apache_flex_html_supportClasses_UIItemRendererBase} */
get: function() {
return this.down_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
index fed8ea6..1febffa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
@@ -50,7 +50,8 @@ org_apache_flex_html5_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_CheckBox.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html5_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
@@ -60,6 +61,7 @@ Object.defineProperties(org_apache_flex_html5_CheckBox.prototype, {
this.element.childNodes.item(1).nodeValue = value;
}
},
+ /** @expose */
selected: {
/** @this {org_apache_flex_html5_CheckBox} */
get: function() {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
index d884f01..96ec8af 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
@@ -167,13 +167,15 @@ org_apache_flex_html5_ComboBox.prototype.buttonClicked =
Object.defineProperties(org_apache_flex_html5_ComboBox.prototype, {
- 'dataProvider': {
+ /** @expose */
+ dataProvider: {
/** @this {org_apache_flex_html5_ComboBox} */
set: function(value) {
this.dataProvider = value;
}
},
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html5_ComboBox} */
get: function() {
return this.element.childNodes.item(0).value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
index a049e68..97c65a1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
@@ -43,7 +43,8 @@ org_apache_flex_html5_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_Label.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html5_Label} */
get: function() {
return this.element.innerHTML;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/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 8a49c59..3f9b3a5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/RadioButton.js
@@ -50,7 +50,8 @@ org_apache_flex_html5_RadioButton.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_RadioButton.prototype, {
- 'groupName': {
+ /** @expose */
+ groupName: {
/** @this {org_apache_flex_html5_RadioButton} */
get: function() {
return this.element.childNodes.item(0).name;
@@ -60,7 +61,8 @@ Object.defineProperties(org_apache_flex_html5_RadioButton.prototype, {
this.element.childNodes.item(0).name = value;
}
},
- 'text' : {
+ /** @expose */
+ text : {
/** @this {org_apache_flex_html5_RadioButton} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
@@ -70,7 +72,8 @@ Object.defineProperties(org_apache_flex_html5_RadioButton.prototype, {
this.element.childNodes.item(1).nodeValue = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_html5_RadioButton} */
get: function() {
return this.element.childNodes.item(0).checked;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
index a475688..6771ea5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
@@ -43,7 +43,8 @@ org_apache_flex_html5_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextArea.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html5_TextArea} */
get: function() {
return this.element.value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
index e3aa434..d95ecc7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextButton.js
@@ -44,7 +44,8 @@ org_apache_flex_html5_TextButton.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextButton.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html5_TextButton} */
get: function() {
return this.element.innerHTML;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
index d51ee0d..a9f9314 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
@@ -44,7 +44,8 @@ org_apache_flex_html5_TextInput.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextInput.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_html5_TextInput} */
get: function() {
return this.element.value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
index 5dc88ef..9b0ddbf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
@@ -62,7 +62,8 @@ org_apache_flex_jquery_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_jquery_CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
@@ -72,7 +73,8 @@ Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
this.element.childNodes.item(1).nodeValue = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_jquery_CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
index a134f9d..39b9639 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
@@ -101,7 +101,8 @@ org_apache_flex_jquery_RadioButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_jquery_RadioButton} */
set: function(value) {
org_apache_flex_utils_Language(org_apache_flex_jquery_RadioButton.base, this, 'id', value);
@@ -109,7 +110,8 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
this.labelFor.htmlFor = value;
}
},
- 'groupName': {
+ /** @expose */
+ groupName: {
/** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.radioGroupName;
@@ -120,7 +122,8 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
this.input.name = value;
}
},
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.labelFor.innerHTML;
@@ -130,7 +133,8 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
this.labelFor.innerHTML = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.input.checked;
@@ -140,7 +144,8 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
this.input.checked = value;
}
},
- 'value': {
+ /** @expose */
+ value: {
/** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
return this.input.value;
@@ -150,7 +155,8 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
this.input.value = value;
}
},
- 'selectedValue': {
+ /** @expose */
+ selectedValue: {
/** @this {org_apache_flex_jquery_RadioButton} */
get: function() {
var buttons, groupName, i, n;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
index 0f2a1be..01d660f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
@@ -54,7 +54,8 @@ org_apache_flex_jquery_TextButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_TextButton.prototype, {
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_jquery_TextButton} */
get: function() {
return this.element.innerHTML;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index f0b7ba0..2ff0908 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -94,7 +94,8 @@ org_apache_flex_jquery_ToggleTextButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
- 'id': {
+ /** @expose */
+ id: {
/** @this {org_apache_flex_jquery_ToggleTextButton} */
set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_jquery_ToggleTextButton.base, this, 'id', value);
@@ -102,7 +103,8 @@ Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
this.labelFor.htmlFor = value;
}
},
- 'text': {
+ /** @expose */
+ text: {
/** @this {org_apache_flex_jquery_ToggleTextButton} */
get: function() {
return this.labelFor.innerHTML;
@@ -112,7 +114,8 @@ Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
this.labelFor.innerHTML = value;
}
},
- 'selected': {
+ /** @expose */
+ selected: {
/** @this {org_apache_flex_jquery_ToggleTextButton} */
get: function() {
return this.input.selected_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5c486ee6/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
index e63facc..9a16e5d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
@@ -80,13 +80,15 @@ org_apache_flex_maps_google_Map.prototype.createElement =
Object.defineProperties(org_apache_flex_maps_google_Map.prototype, {
- 'token': {
+ /** @expose */
+ token: {
/** @this {org_apache_flex_maps_google_Map} */
set: function(value) {
this.token = value;
}
},
- 'selectedMarker': {
+ /** @expose */
+ selectedMarker: {
/** @this {org_apache_flex_maps_google_Map} */
get: function() {
return this._selectedMarker;
[27/47] git commit: [flex-asjs] [refs/heads/develop] - can't use
hasOwnProperty as much with defineProp'd properties. Use try/catch for now.
Maybe switch to interface test later
Posted by ah...@apache.org.
can't use hasOwnProperty as much with defineProp'd properties. Use try/catch for now. Maybe switch to interface test later
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/099334fb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/099334fb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/099334fb
Branch: refs/heads/develop
Commit: 099334fb26f0e48ce0bd2ff264c6a235f0f71ee8
Parents: cac36ed
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:03:35 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:03:35 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/core/SimpleCSSValuesImpl.js | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/099334fb/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 23c068d..97f020e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -74,21 +74,15 @@ org_apache_flex_core_SimpleCSSValuesImpl.prototype.getValue =
var cName;
var selectorName;
- if (typeof(thisObject.hasOwnProperty('style')) === 'function')
- {
+ try {
var style = thisObject.style;
- if (style != null)
- {
- try {
- value = style[valueName];
- }
- catch (e) {
- value = undefined;
- }
+ if (style != null) {
+ value = style[valueName];
if (value !== undefined)
return value;
}
}
+ catch(e) {};
if ('className' in thisObject)
{
[05/47] git commit: [flex-asjs] [refs/heads/develop] - manually
convert Timer to defineProp
Posted by ah...@apache.org.
manually convert Timer to defineProp
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f2e09a41
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f2e09a41
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f2e09a41
Branch: refs/heads/develop
Commit: f2e09a410b2afa6bd59dd8d1fc1c6bc23444e53b
Parents: f7f0f20
Author: Alex Harui <ah...@apache.org>
Authored: Tue Feb 17 14:55:26 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Feb 17 14:55:26 2015 -0800
----------------------------------------------------------------------
.../FlexJS/src/org/apache/flex/utils/Timer.js | 81 +++++++-------------
1 file changed, 28 insertions(+), 53 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2e09a41/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
index 57815c1..455020c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
@@ -107,56 +107,31 @@ org_apache_flex_utils_Timer.prototype.timerHandler =
};
-
-/**
- * @expose
- * @return {number} The currentCount.
- */
-org_apache_flex_utils_Timer.prototype.get_currentCount = function() {
- return this._currentCount;
-};
-
-
-/**
- * @expose
- * @return {boolean} True if the timer is running.
- */
-org_apache_flex_utils_Timer.prototype.get_running = function() {
- return this.timerInterval !== -1;
-};
-
-
-/**
- * @expose
- * @return {number} The number of milliseconds between events.
- */
-org_apache_flex_utils_Timer.prototype.get_delay = function() {
- return this._delay;
-};
-
-
-/**
- * @expose
- * @param {number} value The number of milliseconds between events.
- */
-org_apache_flex_utils_Timer.prototype.set_delay = function(value) {
- this._delay = value;
-};
-
-
-/**
- * @expose
- * @return {number} The repeat count.
- */
-org_apache_flex_utils_Timer.prototype.get_repeatCount = function() {
- return this._repeatCount;
-};
-
-
-/**
- * @expose
- * @param {number} value The repeat count.
- */
-org_apache_flex_utils_Timer.prototype.set_repeatCount = function(value) {
- this._repeatCount = value;
-};
+Object.defineProperties(org_apache_flex_utils_Timer.prototype, {
+ "currentCount": {
+ get: function() {
+ return this._currentCount;
+ }
+ },
+ "running": {
+ get: function() {
+ return this.timerInterval !== -1;
+ }
+ },
+ "delay": {
+ get: function() {
+ return this._delay;
+ },
+ set: function(value) {
+ this._delay = value;
+ }
+ },
+ "repeatCount": {
+ get: function() {
+ return this._repeatCount;
+ },
+ set: function(value) {
+ this._repeatCount = value;
+ }
+ }
+});
[29/47] git commit: [flex-asjs] [refs/heads/develop] - need to set
model after supercall otherwise GCL complains
Posted by ah...@apache.org.
need to set model after supercall otherwise GCL complains
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e44cc212
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e44cc212
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e44cc212
Branch: refs/heads/develop
Commit: e44cc21232f78f65f4edc7c92c0ef4d7ffcbc647
Parents: 49a546f
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:06:14 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:06:14 2015 -0700
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e44cc212/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
index 308a4bd..846d0db 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
@@ -26,9 +26,9 @@ goog.require('org_apache_flex_html_beads_models_RangeModel');
* @extends {org_apache_flex_core_UIBase}
*/
org_apache_flex_html_NumericStepper = function() {
+ org_apache_flex_html_NumericStepper.base(this, 'constructor');
this.model =
new org_apache_flex_html_beads_models_RangeModel();
- org_apache_flex_html_NumericStepper.base(this, 'constructor');
};
goog.inherits(org_apache_flex_html_NumericStepper,
org_apache_flex_core_UIBase);
[04/47] git commit: [flex-asjs] [refs/heads/develop] - superGetter &
superSetter
Posted by ah...@apache.org.
superGetter & superSetter
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f7f0f20e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f7f0f20e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f7f0f20e
Branch: refs/heads/develop
Commit: f7f0f20ef0e4644efbf67fd01786a1744cff261b
Parents: 31e50c8
Author: Alex Harui <ah...@apache.org>
Authored: Tue Feb 17 14:54:34 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Feb 17 14:54:34 2015 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/utils/Language.js | 31 ++++++++++++++++++++
1 file changed, 31 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f7f0f20e/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 fb3e893..6558657 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -247,3 +247,34 @@ org_apache_flex_utils_Language.postdecrement = function(obj, prop) {
obj[prop] = value + 1;
return value;
};
+
+
+/**
+ * superGetter calls the getter on the given class' superclass.
+ *
+ * @expose
+ * @param {Object} clazz The class.
+ * @param {Object} pThis The this pointer.
+ * @param {string} prop The name of the getter.
+ * @return {number}
+ */
+org_apache_flex_utils_Language.superGetter = function(clazz, pthis, prop) {
+ var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
+ return superdesc.get.call(pthis);
+};
+
+
+/**
+ * superSetter calls the setter on the given class' superclass.
+ *
+ * @expose
+ * @param {Object} clazz The class.
+ * @param {Object} pThis The this pointer.
+ * @param {string} prop The name of the getter.
+ * @param {Object} value The value.
+ * @return {number}
+ */
+org_apache_flex_utils_Language.superSetter = function(clazz, pthis, prop, value) {
+ var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
+ return superdesc.set.apply(pthis, [value]);
+};
[38/47] git commit: [flex-asjs] [refs/heads/develop] - lint
Posted by ah...@apache.org.
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 <ah...@apache.org>
Authored: Tue Apr 7 11:03:49 2015 -0700
Committer: Alex Harui <ah...@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;
[02/47] git commit: [flex-asjs] [refs/heads/develop] - replace
set_xxx(value) with xxx = value
Posted by ah...@apache.org.
replace set_xxx(value) with xxx = value
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9c7b2ef3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9c7b2ef3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9c7b2ef3
Branch: refs/heads/develop
Commit: 9c7b2ef33c1d930975617b6ba87fb1bbc7953fd1
Parents: 4aed23b
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jan 29 14:47:44 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jan 29 14:47:44 2015 -0800
----------------------------------------------------------------------
.../charts/supportClasses/ChartAxisGroup.js | 34 ++++++++++----------
.../charts/supportClasses/ChartDataGroup.js | 2 +-
.../src/org/apache/flex/core/FilledRectangle.js | 8 ++---
.../org/apache/flex/core/HTMLElementWrapper.js | 2 +-
.../js/FlexJS/src/org/apache/flex/core/IBead.js | 2 +-
.../FlexJS/src/org/apache/flex/core/ListBase.js | 6 ++--
.../FlexJS/src/org/apache/flex/core/UIBase.js | 6 ++--
.../src/org/apache/flex/createjs/CheckBox.js | 2 +-
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 18 +++++------
.../src/org/apache/flex/html/ButtonBar.js | 6 ++--
.../src/org/apache/flex/html/CloseButton.js | 4 +--
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 2 +-
.../src/org/apache/flex/html/DropDownList.js | 8 ++---
.../js/FlexJS/src/org/apache/flex/html/Image.js | 2 +-
.../js/FlexJS/src/org/apache/flex/html/List.js | 12 +++----
.../src/org/apache/flex/html/NumericStepper.js | 20 ++++++------
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 4 +--
.../src/org/apache/flex/html/SimpleList.js | 8 ++---
.../FlexJS/src/org/apache/flex/html/Slider.js | 12 +++----
.../FlexJS/src/org/apache/flex/html/Spinner.js | 4 +--
.../FlexJS/src/org/apache/flex/html/TitleBar.js | 6 ++--
.../org/apache/flex/html/ToggleTextButton.js | 4 +--
.../DataItemRendererFactoryForArrayData.js | 8 ++---
.../src/org/apache/flex/html/beads/ListView.js | 12 +++----
.../src/org/apache/flex/html/beads/PanelView.js | 6 ++--
.../TextItemRendererFactoryForArrayData.js | 2 +-
.../controllers/ItemRendererMouseController.js | 4 +--
.../ListSingleSelectionMouseController.js | 2 +-
.../beads/controllers/SliderMouseController.js | 4 +--
.../beads/controllers/SpinnerMouseController.js | 4 +--
.../flex/html/beads/layouts/ButtonBarLayout.js | 10 +++---
.../flex/html/beads/layouts/TileLayout.js | 8 ++---
.../ButtonBarButtonItemRenderer.js | 4 +--
.../html/supportClasses/DataItemRenderer.js | 4 +--
.../html/supportClasses/NonVirtualDataGroup.js | 6 ++--
.../html/supportClasses/StringItemRenderer.js | 4 +--
.../src/org/apache/flex/html5/ComboBox.js | 2 +-
.../org/apache/flex/jquery/ToggleTextButton.js | 4 +--
.../src/org/apache/flex/maps/google/Map.js | 4 +--
.../FlexJS/src/org/apache/flex/utils/UIUtils.js | 4 +--
40 files changed, 132 insertions(+), 132 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
index bf760e0..e12cb13 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartAxisGroup.js
@@ -53,7 +53,7 @@ org_apache_flex_charts_supportClasses_ChartAxisGroup.
prototype.createElement = function() {
this.element = document.createElement('div');
this.element.flexjs_wrapper = this;
- this.set_className('ChartAxisGroup');
+ this.className = 'ChartAxisGroup';
this.positioner = this.element;
@@ -74,9 +74,9 @@ org_apache_flex_charts_supportClasses_ChartAxisGroup.prototype.drawHorizontalTic
function(text, xpos, ypos, boxWidth, boxHeight, tickFill) {
var label = new org_apache_flex_html_Label();
this.addElement(label);
- label.set_text(text);
- label.set_x(xpos - label.width / 2);
- label.set_y(ypos);
+ label.text = text;
+ label.x = xpos - label.width / 2;
+ label.y = ypos;
};
@@ -93,9 +93,9 @@ org_apache_flex_charts_supportClasses_ChartAxisGroup.prototype.drawVerticalTickL
function(text, xpos, ypos, boxWidth, boxHeight, tickFill) {
var label = new org_apache_flex_html_Label();
this.addElement(label);
- label.set_text(text);
- label.set_x(xpos);
- label.set_y(ypos - label.height / 2);
+ label.text = text;
+ label.x = xpos;
+ label.y = ypos - label.height / 2;
};
@@ -111,12 +111,12 @@ function(text, xpos, ypos, boxWidth, boxHeight, tickFill) {
org_apache_flex_charts_supportClasses_ChartAxisGroup.prototype.drawTickMarks =
function(originX, originY, width, height, marks, tickStroke) {
var tickPath = new org_apache_flex_core_graphics_Path();
- tickPath.set_x(0);
- tickPath.set_y(0);
- tickPath.set_width(this.width);
- tickPath.set_height(this.height);
+ tickPath.x = 0;
+ tickPath.y = 0;
+ tickPath.width = this.width;
+ tickPath.height = this.height;
this.addElement(tickPath);
- tickPath.set_stroke(tickStroke);
+ tickPath.stroke = tickStroke;
tickPath.drawPath(0, 0, marks);
};
@@ -132,12 +132,12 @@ function(originX, originY, width, height, marks, tickStroke) {
org_apache_flex_charts_supportClasses_ChartAxisGroup.prototype.drawAxisLine =
function(originX, originY, width, height, lineStroke) {
var axisPath = new org_apache_flex_core_graphics_Path();
- axisPath.set_x(0);
- axisPath.set_y(0);
- axisPath.set_width(this.width);
- axisPath.set_height(this.height);
+ axisPath.x = 0;
+ axisPath.y = 0;
+ axisPath.width = this.width;
+ axisPath.height = this.height;
this.addElement(axisPath);
- axisPath.set_stroke(lineStroke);
+ axisPath.stroke = lineStroke;
var pathLine = 'M ' + String(originX) + ' ' + String(originY) + ' l ' + String(width) + ' ' + String(height);
axisPath.drawPath(0, 0, pathLine);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
index 960f1ea..14d03a4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/supportClasses/ChartDataGroup.js
@@ -51,7 +51,7 @@ org_apache_flex_charts_supportClasses_ChartDataGroup.
prototype.createElement = function() {
this.element = document.createElement('div');
this.element.flexjs_wrapper = this;
- this.set_className('ChartDataGroup');
+ this.className = 'ChartDataGroup';
this.positioner = this.element;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
index 85b67f9..a9719f3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
@@ -81,8 +81,8 @@ org_apache_flex_core_UIBase.prototype.set_fillColor = function(value) {
org_apache_flex_core_UIBase.prototype.drawRect = function(x, y, width, height) {
this.element.style.position = 'absolute';
this.element.style.backgroundColor = '#' + this.fillColor_.toString(16);
- if (!isNaN(x)) this.set_x(x);
- if (!isNaN(y)) this.set_y(y);
- if (!isNaN(width)) this.set_width(width);
- if (!isNaN(height)) this.set_height(height);
+ if (!isNaN(x)) this.x = x;
+ if (!isNaN(y)) this.y = y;
+ if (!isNaN(width)) this.width = width;
+ if (!isNaN(height)) this.height = height;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/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 08658b0..bd4367a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -72,7 +72,7 @@ org_apache_flex_core_HTMLElementWrapper.prototype.addBead = function(bead) {
this.model = bead;
}
- bead.set_strand(this);
+ bead.strand = this;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
index 3586a37..f599591 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
@@ -41,7 +41,7 @@ org_apache_flex_core_IBead.prototype.FLEXJS_CLASS_INFO =
/**
- * set_strand()
+ * strand
*
* @expose
* @param {org_apache_flex_core_IStrand} value The new host.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
index 375edba..e5af761 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ListBase.js
@@ -87,7 +87,7 @@ org_apache_flex_core_ListBase.prototype.get_dataProvider =
*/
org_apache_flex_core_ListBase.prototype.set_dataProvider =
function(value) {
- this.model.set_dataProvider(value);
+ this.model.dataProvider = value;
};
@@ -107,7 +107,7 @@ org_apache_flex_core_ListBase.prototype.get_selectedIndex =
*/
org_apache_flex_core_ListBase.prototype.set_selectedIndex =
function(value) {
- this.model.set_selectedIndex(value);
+ this.model.selectedIndex = value;
};
@@ -127,7 +127,7 @@ org_apache_flex_core_ListBase.prototype.get_selectedItem =
*/
org_apache_flex_core_ListBase.prototype.set_selectedItem =
function(value) {
- this.model.set_selectedItem(value);
+ this.model.selectedItem = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/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 cb7a536..0cd35f5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -320,7 +320,7 @@ org_apache_flex_core_UIBase.prototype.addBead = function(bead) {
this.dispatchEvent(new org_apache_flex_events_Event('viewChanged'));
}
- bead.set_strand(this);
+ bead.strand = this;
};
@@ -434,7 +434,7 @@ org_apache_flex_core_UIBase.prototype.get_y = function() {
* @param {number} pixels The pixel count from the left edge.
*/
org_apache_flex_core_UIBase.prototype.set_width = function(pixels) {
- this.set_explicitWidth(pixels);
+ this.explicitWidth = pixels;
this.setWidth(pixels);
};
@@ -507,7 +507,7 @@ org_apache_flex_core_UIBase.prototype.get_percentWidth = function() {
* @param {number} pixels The pixel count from the top edge.
*/
org_apache_flex_core_UIBase.prototype.set_height = function(pixels) {
- this.set_explicitHeight(pixels);
+ this.explicitHeight = pixels;
this.setHeight(pixels);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
index 2f95955..ff0c40d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
@@ -140,5 +140,5 @@ org_apache_flex_createjs_CheckBox.prototype.set_selected =
*/
org_apache_flex_createjs_CheckBox.prototype.clickHandler =
function(event) {
- this.set_selected(!this.selected);
+ this.selected = !this.selected;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index 3edca01..7154dc4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -105,9 +105,9 @@ org_apache_flex_html_Alert.show =
var a = new org_apache_flex_html_Alert();
host.addElement(a);
- a.set_title(title);
- a.set_text(message);
- a.set_flags(flags);
+ a.title = title;
+ a.text = message;
+ a.flags = flags;
a.positioner.style.position = 'relative';
a.positioner.style.width = '200px';
@@ -131,7 +131,7 @@ org_apache_flex_html_Alert.prototype.get_title = function()
org_apache_flex_html_Alert.prototype.set_title =
function(value)
{
- this.titleBar.set_title(value);
+ this.titleBar.title = value;
};
@@ -150,7 +150,7 @@ org_apache_flex_html_Alert.prototype.get_text = function()
org_apache_flex_html_Alert.prototype.set_text =
function(value)
{
- this.message.set_text(value);
+ this.message.text = value;
};
@@ -175,28 +175,28 @@ org_apache_flex_html_Alert.prototype.set_flags =
if (this.flags & org_apache_flex_html_Alert.OK) {
var ok = new org_apache_flex_html_TextButton();
this.buttonArea.addElement(ok);
- ok.set_text('OK');
+ ok.text = 'OK';
goog.events.listen(/** @type {EventTarget} */ (ok.element), 'click',
goog.bind(this.dismissAlert, this));
}
if (this.flags & org_apache_flex_html_Alert.CANCEL) {
var cancel = new org_apache_flex_html_TextButton();
this.buttonArea.addElement(cancel);
- cancel.set_text('Cancel');
+ cancel.text = 'Cancel';
goog.events.listen(/** @type {EventTarget} */ (cancel.element), 'click',
goog.bind(this.dismissAlert, this));
}
if (this.flags & org_apache_flex_html_Alert.YES) {
var yes = new org_apache_flex_html_TextButton();
this.buttonArea.addElement(yes);
- yes.set_text('YES');
+ yes.text = 'YES';
goog.events.listen(/** @type {EventTarget} */ (yes.element), 'click',
goog.bind(this.dismissAlert, this));
}
if (this.flags & org_apache_flex_html_Alert.NO) {
var nob = new org_apache_flex_html_TextButton();
this.buttonArea.addElement(nob);
- nob.set_text('NO');
+ nob.text = 'NO';
goog.events.listen(/** @type {EventTarget} */ (nob.element), 'click',
goog.bind(this.dismissAlert, this));
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/ButtonBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ButtonBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ButtonBar.js
index 88c8808..d01b39f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ButtonBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ButtonBar.js
@@ -43,8 +43,8 @@ org_apache_flex_html_ButtonBar = function() {
// this.itemRendererFactory = new
// org_apache_flex_html_beads_
// DataItemRendererFactoryForArrayData();
- // this.itemRendererFactory.set_itemRendererClass('org_apache_flex_html_' +
- // 'supportClasses.ButtonBarButtonItemRenderer');
+ // this.itemRendererFactory.itemRendererClass = 'org_apache_flex_html_' +
+ // 'supportClasses_ButtonBarButtonItemRenderer';
// this.addBead(this.itemRendererFactory);
// this.addBead(new
@@ -79,7 +79,7 @@ org_apache_flex_html_ButtonBar.prototype.createElement =
this.element.style.borderColor = '#333333';
this.positioner = this.element;
- this.set_className('ButtonBar');
+ this.className = 'ButtonBar';
this.element.flexjs_wrapper = this;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/CloseButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/CloseButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/CloseButton.js
index cad273d..54256da 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/CloseButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/CloseButton.js
@@ -48,8 +48,8 @@ org_apache_flex_html_CloseButton.prototype.createElement =
this.element.innerHTML = 'x';
this.element.style.padding = 0;
- this.set_height(11);
- this.set_width(11);
+ this.height = 11;
+ this.width = 11;
return this.element;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
index ed4f452..800f7c1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
@@ -90,7 +90,7 @@ org_apache_flex_html_ComboBox.prototype.selectChanged =
select = event.currentTarget;
- this.set_selectedItem(select.options[select.selectedIndex].value);
+ this.selectedItem = select.options[select.selectedIndex].value;
this.popup.parentNode.removeChild(this.popup);
this.popup = null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
index e76e5be..f7e7762 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
@@ -65,7 +65,7 @@ org_apache_flex_html_DropDownList.prototype.
set_dataProvider = function(value) {
var dp, i, n, opt;
- this.model.set_dataProvider(value);
+ this.model.dataProvider = value;
dp = this.element.options;
n = dp.length;
@@ -88,7 +88,7 @@ org_apache_flex_html_DropDownList.prototype.
*/
org_apache_flex_html_DropDownList.prototype.changeHandler =
function() {
- this.model.set_selectedIndex(this.element.selectedIndex);
+ this.model.selectedIndex = this.element.selectedIndex;
this.dispatchEvent('change');
};
@@ -99,7 +99,7 @@ org_apache_flex_html_DropDownList.prototype.changeHandler =
*/
org_apache_flex_html_DropDownList.prototype.
set_selectedIndex = function(value) {
- this.model.set_selectedIndex(value);
+ this.model.selectedIndex = value;
this.element.selectedIndex = value;
};
@@ -110,6 +110,6 @@ org_apache_flex_html_DropDownList.prototype.
*/
org_apache_flex_html_DropDownList.prototype.
set_selectedItem = function(value) {
- this.model.set_selectedItem(value);
+ this.model.selectedItem = value;
this.element.selectedIndex = this.selectedIndex;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
index 8498c8a..22f85df 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Image.js
@@ -82,5 +82,5 @@ org_apache_flex_html_Image.prototype.
*/
org_apache_flex_html_Image.prototype.
set_source = function(value) {
- this.model.set_source(value);
+ this.model.source = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
index d4786f8..953e5e2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/List.js
@@ -87,7 +87,7 @@ function() {
*/
org_apache_flex_html_List.prototype.set_labelField =
function(value) {
- this.model.set_labelField(value);
+ this.model.labelField = value;
};
@@ -107,7 +107,7 @@ function() {
*/
org_apache_flex_html_List.prototype.set_rowHeight =
function(value) {
- this.presentationModel.set_rowHeight(value);
+ this.presentationModel.rowHeight = value;
};
@@ -132,7 +132,7 @@ function() {
org_apache_flex_html_List.prototype.createElement =
function() {
org_apache_flex_html_List.base(this, 'createElement');
- this.set_className('List');
+ this.className = 'List';
return this.element;
};
@@ -192,11 +192,11 @@ org_apache_flex_html_List.prototype.selectedHandler =
for (i = 0; i < n; i++) {
var test = this.renderers[i];
if (test == itemRenderer) {
- this.model.set_selectedIndex(i);
- itemRenderer.set_selected(true);
+ this.model.selectedIndex = i;
+ itemRenderer.selected = true;
}
else {
- test.set_selected(false);
+ test.selected = false;
}
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
index 131e49d..49ea822 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js
@@ -79,9 +79,9 @@ org_apache_flex_html_NumericStepper.prototype.createElement =
goog.bind(this.spinnerChange, this));
this.element.flexjs_wrapper = this;
- this.set_className('NumericStepper');
+ this.className = 'NumericStepper';
- this.input.set_text(String(this.spinner.value));
+ this.input.text = String(this.spinner.value);
return this.element;
};
@@ -94,8 +94,8 @@ org_apache_flex_html_NumericStepper.prototype.spinnerChange =
function(event)
{
var newValue = this.spinner.value;
- this.set_value(newValue);
- this.input.set_text(String(this.spinner.value));
+ this.value = newValue;
+ this.input.text = String(this.spinner.value);
this.dispatchEvent(new org_apache_flex_events_Event('valueChange'));
};
@@ -116,7 +116,7 @@ org_apache_flex_html_NumericStepper.prototype.get_minimum =
*/
org_apache_flex_html_NumericStepper.prototype.set_minimum =
function(value) {
- this.model.set_minimum(value);
+ this.model.minimum = value;
};
@@ -136,7 +136,7 @@ org_apache_flex_html_NumericStepper.prototype.get_maximum =
*/
org_apache_flex_html_NumericStepper.prototype.set_maximum =
function(value) {
- this.model.set_maximum(value);
+ this.model.maximum = value;
};
@@ -156,8 +156,8 @@ org_apache_flex_html_NumericStepper.prototype.get_value =
*/
org_apache_flex_html_NumericStepper.prototype.set_value =
function(newValue) {
- this.model.set_value(newValue);
- this.spinner.set_value(newValue);
+ this.model.value = newValue;
+ this.spinner.value = newValue;
};
@@ -177,7 +177,7 @@ org_apache_flex_html_NumericStepper.prototype.get_snapInterval =
*/
org_apache_flex_html_NumericStepper.prototype.set_snapInterval =
function(value) {
- this.model.set_snapInterval(value);
+ this.model.snapInterval = value;
};
@@ -197,6 +197,6 @@ org_apache_flex_html_NumericStepper.prototype.get_stepSize =
*/
org_apache_flex_html_NumericStepper.prototype.set_stepSize =
function(value) {
- this.model.set_stepSize(value);
+ this.model.stepSize = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
index a94a477..6477ca5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
@@ -153,7 +153,7 @@ org_apache_flex_html_Panel.prototype.get_showCloseButton = function() {
*/
org_apache_flex_html_Panel.prototype.set_showCloseButton =
function(value) {
- this.model.set_showCloseButton(value);
+ this.model.showCloseButton = value;
};
@@ -172,7 +172,7 @@ org_apache_flex_html_Panel.prototype.get_title = function() {
*/
org_apache_flex_html_Panel.prototype.set_title =
function(value) {
- this.model.set_title(value);
+ this.model.title = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
index 4445476..ddeec61 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/SimpleList.js
@@ -51,7 +51,7 @@ org_apache_flex_html_SimpleList.prototype.
goog.events.listen(this.element, 'change',
goog.bind(this.changeHandler, this));
this.positioner = this.element;
- this.set_className('SimpleList');
+ this.className = 'SimpleList';
return this.element;
};
@@ -73,7 +73,7 @@ org_apache_flex_html_SimpleList.prototype.
set_dataProvider = function(value) {
var dp, i, n, opt;
- this.model.set_dataProvider(value);
+ this.model.dataProvider = value;
dp = this.element.options;
n = dp.length;
@@ -105,7 +105,7 @@ org_apache_flex_html_SimpleList.prototype.
*/
org_apache_flex_html_SimpleList.prototype.
set_selectedIndex = function(value) {
- this.model.set_selectedIndex(value);
+ this.model.selectedIndex = value;
};
@@ -123,6 +123,6 @@ org_apache_flex_html_SimpleList.prototype.
*/
org_apache_flex_html_SimpleList.prototype.
set_selectedItem = function(value) {
- this.model.set_selectedItem(value);
+ this.model.selectedItem = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
index c4752c2..8aa17b8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Slider.js
@@ -67,7 +67,7 @@ org_apache_flex_html_Slider.prototype.createElement =
this.positioner = this.element;
this.element.flexjs_wrapper = this;
- this.set_className('Slider');
+ this.className = 'Slider';
return this.element;
};
@@ -90,7 +90,7 @@ org_apache_flex_html_Slider.prototype.get_value =
*/
org_apache_flex_html_Slider.prototype.set_value =
function(newValue) {
- this.model.set_value(newValue);
+ this.model.value = newValue;
this.setThumbFromValue(this.model.value);
};
@@ -112,7 +112,7 @@ org_apache_flex_html_Slider.prototype.get_minimum =
*/
org_apache_flex_html_Slider.prototype.set_minimum =
function(value) {
- this.model.set_minimum(value);
+ this.model.minimum = value;
};
@@ -133,7 +133,7 @@ org_apache_flex_html_Slider.prototype.get_maximum =
*/
org_apache_flex_html_Slider.prototype.set_maximum =
function(value) {
- this.model.set_maximum(value);
+ this.model.maximum = value;
};
@@ -154,7 +154,7 @@ org_apache_flex_html_Slider.prototype.get_snapInterval =
*/
org_apache_flex_html_Slider.prototype.set_snapInterval =
function(value) {
- this.model.set_snapInterval(value);
+ this.model.snapInterval = value;
};
@@ -175,7 +175,7 @@ org_apache_flex_html_Slider.prototype.get_stepSize =
*/
org_apache_flex_html_Slider.prototype.set_stepSize =
function(value) {
- this.model.set_stepSize(value);
+ this.model.stepSize = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
index 61d532c..873d651 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
@@ -58,11 +58,11 @@ org_apache_flex_html_Spinner.prototype.createElement =
this.element.style.verticalAlign = 'middle';
this.incrementButton = new org_apache_flex_html_TextButton();
- this.incrementButton.set_text('\u25B2');
+ this.incrementButton.text = '\u25B2';
this.addElement(this.incrementButton);
this.decrementButton = new org_apache_flex_html_TextButton();
- this.decrementButton.set_text('\u25BC');
+ this.decrementButton.text = '\u25BC';
this.addElement(this.decrementButton);
this.controller = new org_apache_flex_html_beads_controllers_SpinnerMouseController();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
index 19e46a1..65d92f7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TitleBar.js
@@ -54,7 +54,7 @@ org_apache_flex_html_TitleBar.prototype.createElement =
this.positioner = this.element;
this.element.flexjs_wrapper = this;
- this.set_className('TitleBar');
+ this.className = 'TitleBar';
return this.element;
};
@@ -76,7 +76,7 @@ org_apache_flex_html_TitleBar.prototype.get_title =
*/
org_apache_flex_html_TitleBar.prototype.set_title =
function(value) {
- this.model.set_title(value);
+ this.model.title = value;
};
@@ -96,5 +96,5 @@ org_apache_flex_html_TitleBar.prototype.get_showCloseButton =
*/
org_apache_flex_html_TitleBar.prototype.set_showCloseButton =
function(value) {
- this.model.set_showCloseButton(value);
+ this.model.showCloseButton = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
index 4aace7a..22bfda7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
@@ -88,11 +88,11 @@ org_apache_flex_html_ToggleTextButton.prototype.set_selected =
var className = this.className;
if (value) {
if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
- this.set_className(className.substring(0, className.length - this.SELECTED.length));
+ this.className = className.substring(0, className.length - this.SELECTED.length);
}
else {
if (className.indexOf(this.SELECTED) == -1)
- this.set_className(className + this.SELECTED);
+ this.className = className + this.SELECTED;
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
index 7c35505..0bd17f2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
@@ -132,10 +132,10 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
n = dp.length;
for (i = 0; i < n; i++) {
var ir = this.itemRendererFactory_.createItemRenderer(this.dataGroup);
- ir.set_index(i);
- ir.set_labelField(this.model.labelField);
- ir.set_data(dp[i]);
- if (presModel) ir.set_height(presModel.rowHeight);
+ ir.index = i;
+ ir.labelField = this.model.labelField;
+ ir.data = dp[i];
+ if (presModel) ir.height = presModel.rowHeight;
}
var newEvent = new org_apache_flex_events_Event('itemsCreated');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index f7f9e6e..9f7dd4a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -77,14 +77,14 @@ org_apache_flex_html_beads_ListView.prototype.set_strand =
getValue(this.strand_, 'iDataGroup');
this.dataGroup_ = new m2();
}
- this.dataGroup_.set_strand(this);
+ this.dataGroup_.strand = this;
this.strand_.addElement(this.dataGroup_);
if (this.strand_.getBeadByType(org_apache_flex_core_IBeadLayout) == null) {
var m3 = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iBeadLayout');
this.layout_ = new m3();
this.strand_.addBead(this.layout_);
- //this.layout_.set_strand(this.strand_);
+ //this.layout_.strand = this.strand_;
}
this.handleSizeChange(null);
@@ -120,12 +120,12 @@ org_apache_flex_html_beads_ListView.prototype.
var ir;
if (this.lastSelectedIndex != -1) {
ir = this.dataGroup_.getItemRendererForIndex(this.lastSelectedIndex);
- if (ir) ir.set_selected(false);
+ if (ir) ir.selected = false;
}
if (this.model.selectedIndex != -1) {
ir = this.dataGroup_.getItemRendererForIndex(
this.model.selectedIndex);
- if (ir) ir.set_selected(true);
+ if (ir) ir.selected = true;
}
this.lastSelectedIndex = this.model.selectedIndex;
};
@@ -190,6 +190,6 @@ org_apache_flex_html_beads_ListView.prototype.get_resizeableView = function() {
* @param {Object} event The event that triggered the resize.
*/
org_apache_flex_html_beads_ListView.prototype.handleSizeChange = function(event) {
- this.dataGroup_.set_width(this.strand_.width);
- this.dataGroup_.set_height(this.strand_.height);
+ this.dataGroup_.width = this.strand_.width;
+ this.dataGroup_.height = this.strand_.height;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
index d7ffb4c..b921f67 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/PanelView.js
@@ -61,8 +61,8 @@ org_apache_flex_html_beads_PanelView.prototype.set_strand =
this.titleBar_ = new org_apache_flex_html_TitleBar();
this.strand_.titleBar = this.titleBar_;
- this.titleBar_.set_id('titleBar');
- this.titleBar_.set_model(this.strand_.model);
+ this.titleBar_.id = 'titleBar';
+ this.titleBar_.model = this.strand_.model;
this.strand_.controlBar =
new org_apache_flex_html_ControlBar();
@@ -93,7 +93,7 @@ org_apache_flex_html_beads_PanelView.prototype.changeHandler =
}
if (event.type == 'titleChange') {
- this.titleBar_.set_title(strand.model.title);
+ this.titleBar_.title = strand.model.title;
}
var p = this.strand_.positioner;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
index 33a8340..76c3544 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
@@ -83,7 +83,7 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
opt = new
org_apache_flex_html_supportClasses_StringItemRenderer();
this.dataGroup.addElement(opt);
- opt.set_text(dp[i]);
+ opt.text = dp[i];
}
var newEvent = new org_apache_flex_events_Event('itemsCreated');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
index 97282c9..fec6fad 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
@@ -64,7 +64,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.set
*/
org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.handleMouseOver = function(event) {
- this.strand_.set_hovered(true);
+ this.strand_.hovered = true;
var newEvent = new goog.events.Event('rollover');
newEvent.target = this.strand_;
@@ -78,7 +78,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.han
*/
org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.handleMouseOut = function(event) {
- this.strand_.set_hovered(false);
+ this.strand_.hovered = false;
var newEvent = new goog.events.Event('rollout');
newEvent.target = this.strand_;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
index 9d5e3c0..6ee9dc6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
@@ -67,7 +67,7 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
function(event) {
var index = event.target.index;
- this.model.set_selectedIndex(index);
+ this.model.selectedIndex = index;
var newEvent = new org_apache_flex_events_Event('change');
this.strand_.dispatchEvent(newEvent);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
index 29b3f1f..4493ddc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
@@ -73,7 +73,7 @@ org_apache_flex_html_beads_controllers_SliderMouseController.
var n = p * (this.strand_.maximum - this.strand_.minimum) +
this.strand_.minimum;
- this.strand_.set_value(n);
+ this.strand_.value = n;
this.origin = parseInt(this.thumb.element.style.left, 10);
this.position = parseInt(this.thumb.element.style.left, 10);
@@ -167,6 +167,6 @@ org_apache_flex_html_beads_controllers_SliderMouseController.
this.thumb.element.style.left = String(newX -
parseInt(this.thumb.element.style.width, 10) / 2) + 'px';
- this.strand_.set_value(n);
+ this.strand_.value = n;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
index 89d9375..5bce99c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
@@ -66,7 +66,7 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.
var newValue = this.strand_.snap(Math.min(this.strand_.maximum,
this.strand_.value +
this.strand_.stepSize));
- this.strand_.set_value(newValue);
+ this.strand_.value = newValue;
};
@@ -81,5 +81,5 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.
var newValue = this.strand_.snap(Math.max(this.strand_.minimum,
this.strand_.value -
this.strand_.stepSize));
- this.strand_.set_value(newValue);
+ this.strand_.value = newValue;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
index a4874ea..20e8977 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
@@ -105,16 +105,16 @@ org_apache_flex_html_beads_layouts_ButtonBarLayout.
for (var i = 0; i < n; i++)
{
var ir = itemRendererParent.getElementAt(i);
- ir.set_y(0);
- ir.set_height(useHeight);
- ir.set_x(xpos);
+ ir.y = 0;
+ ir.height = useHeight;
+ ir.x = xpos;
ir.element.style['vertical-align'] = 'middle';
ir.element.style['text-align'] = 'center';
ir.element.style['left-margin'] = 'auto';
ir.element.style['right-margin'] = 'auto';
- if (this.buttonWidths_ && !isNaN(this.buttonWidths_[i])) ir.set_width(this.buttonWidths_[i]);
- else ir.set_width(useWidth);
+ if (this.buttonWidths_ && !isNaN(this.buttonWidths_[i])) ir.width = this.buttonWidths_[i];
+ else ir.width = useWidth;
if (ir.element.style.display == 'none')
ir.lastDisplay_ = 'inline-block';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
index c9a2b9e..fa05b7c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
@@ -143,10 +143,10 @@ org_apache_flex_html_beads_layouts_TileLayout.
for (i = 0; i < n; i++)
{
var child = children[i].flexjs_wrapper;
- child.set_width(useWidth);
- child.set_height(useHeight);
- child.set_x(xpos);
- child.set_y(ypos);
+ child.width = useWidth;
+ child.height = useHeight;
+ child.x = xpos;
+ child.y = ypos;
xpos += useWidth;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
index 38b707f..bca880d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
@@ -57,14 +57,14 @@ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
this.element.appendChild(this.button);
this.element.flexjs_wrapper = this;
- this.set_className('ButtonBarButtonItemRenderer');
+ this.className = 'ButtonBarButtonItemRenderer';
// itemRenderers should provide something for the background to handle
// the selection and highlight
this.backgroundView = this.element;
this.controller = new org_apache_flex_html_beads_controllers_ItemRendererMouseController();
- this.controller.set_strand(this);
+ this.controller.strand = this;
return this.element;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
index d04d24d..0e4d912 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
@@ -56,14 +56,14 @@ org_apache_flex_html_supportClasses_DataItemRenderer.
this.positioner = this.element;
this.element.flexjs_wrapper = this;
- this.set_className('DataItemRenderer');
+ this.className = 'DataItemRenderer';
// itemRenderers should provide something for the background to handle
// the selection and highlight
this.backgroundView = this.element;
this.controller = new org_apache_flex_html_beads_controllers_ItemRendererMouseController();
- this.controller.set_strand(this);
+ this.controller.strand = this;
return this.element;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
index 07b29e3..970c693 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
@@ -64,7 +64,7 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.
this.element.style.display = 'inline-block';
this.element.style.position = 'inherit';
this.element.flexjs_wrapper = this;
- this.set_className('NonVirtualDataGroup');
+ this.className = 'NonVirtualDataGroup';
this.positioner = this.element;
@@ -82,8 +82,8 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.
var itemRenderer = org_apache_flex_utils_Language.as(value,
org_apache_flex_html_supportClasses_DataItemRenderer);
- itemRenderer.set_index(this.renderers.length);
- itemRenderer.set_itemRendererParent(this);
+ itemRenderer.index = this.renderers.length;
+ itemRenderer.itemRendererParent = this;
this.renderers.push(value);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
index cca3712..1d4a974 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -57,14 +57,14 @@ org_apache_flex_html_supportClasses_StringItemRenderer.
this.positioner = this.element;
this.element.flexjs_wrapper = this;
- this.set_className('StringItemRenderer');
+ this.className = 'StringItemRenderer';
// itemRenderers should provide something for the background to handle
// the selection and highlight
this.backgroundView = this.element;
this.controller = new org_apache_flex_html_beads_controllers_ItemRendererMouseController();
- this.controller.set_strand(this);
+ this.controller.strand = this;
return this.element;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
index 1e1f7e5..72dd41c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
@@ -77,7 +77,7 @@ org_apache_flex_html5_ComboBox.prototype.selectChanged =
var select;
select = event.currentTarget;
- this.set_selectedItem(select.value);
+ this.selectedItem = select.value;
this.popup.parentNode.removeChild(this.popup);
this.popup = null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index 769768d..cb94fd3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -143,11 +143,11 @@ org_apache_flex_jquery_ToggleTextButton.prototype.set_selected =
var className = this.className;
if (value) {
if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length)
- this.set_className(className.substring(0, className.length - this.SELECTED.length));
+ this.className = className.substring(0, className.length - this.SELECTED.length);
}
else {
if (className.indexOf(this.SELECTED) == -1)
- this.set_className(className + this.SELECTED);
+ this.className = className + this.SELECTED;
}
*/
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
index b2f49db..eb99fc6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
@@ -70,7 +70,7 @@ org_apache_flex_maps_google_Map.prototype.createElement =
this.addBead(model);
this.element = document.createElement('div');
- this.set_className('Map');
+ this.className = 'Map';
this.positioner = this.element;
this.element.flexjs_wrapper = this;
@@ -309,7 +309,7 @@ function(results, status) {
this.markers.push(marker);
}
var model = this.model;
- model.set_searchResults(this.searchResults);
+ model.searchResults = this.searchResults;
}
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9c7b2ef3/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
index dd51073..fe1eaaa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/UIUtils.js
@@ -51,8 +51,8 @@ org_apache_flex_utils_UIUtils.center =
var xpos = (rw - item.width) / 2;
var ypos = (rh - item.height) / 2;
- item.set_x(xpos);
- item.set_y(ypos);
+ item.x = xpos;
+ item.y = ypos;
};
[16/47] git commit: [flex-asjs] [refs/heads/develop] - remove object
property. It didn't seem to be used and was exposing a bug in Google Closure
Compiler
Posted by ah...@apache.org.
remove object property. It didn't seem to be used and was exposing a bug in Google Closure Compiler
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/276eb5e3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/276eb5e3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/276eb5e3
Branch: refs/heads/develop
Commit: 276eb5e3a1310627695a81314c7299c0ea0aa732
Parents: f226437
Author: Alex Harui <ah...@apache.org>
Authored: Mon Mar 23 16:47:02 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Mar 23 16:47:02 2015 -0700
----------------------------------------------------------------------
.../org/apache/flex/core/BindableCSSStyles.as | 26 --------------------
.../src/org/apache/flex/core/SimpleCSSStyles.as | 26 --------------------
2 files changed, 52 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/276eb5e3/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as
index b31ff3e..a75ee11 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/BindableCSSStyles.as
@@ -47,32 +47,6 @@ package org.apache.flex.core
}
- private var _object:IStyleableObject;
-
- /**
- * The object to which these styles apply.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get object():IStyleableObject
- {
- return _object;
- }
-
- /**
- * @private
- */
- public function set object(value:IStyleableObject):void
- {
- if (_object != value)
- {
- _object = value;
- }
- }
-
[Bindable]
public var top:*;
[Bindable]
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/276eb5e3/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/SimpleCSSStyles.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/SimpleCSSStyles.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/SimpleCSSStyles.as
index 3367bb5..abe05c3 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/SimpleCSSStyles.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/SimpleCSSStyles.as
@@ -46,32 +46,6 @@ package org.apache.flex.core
}
- private var _object:IStyleableObject;
-
- /**
- * The object to which these styles apply.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion FlexJS 0.0
- */
- public function get object():IStyleableObject
- {
- return _object;
- }
-
- /**
- * @private
- */
- public function set object(value:IStyleableObject):void
- {
- if (_object != value)
- {
- _object = value;
- }
- }
-
public var top:*;
public var bottom:*;
public var left:*;
[19/47] git commit: [flex-asjs] [refs/heads/develop] - lint
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
index 1642a6d..fd84f49 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
@@ -131,33 +131,33 @@ org_apache_flex_net_BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
'data': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.element.responseText;
}
},
'binaryData': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.binaryData_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.binaryData_ = value;
}
},
'contentType': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.contentType_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.contentType_ = value;
}
},
'headers': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
if (this.headers_ === 'undefined') {
this.headers_ = [];
@@ -165,23 +165,23 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
return this.headers_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.headers_ = value;
}
},
'method': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.method_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.method_ = value;
}
},
'responseHeaders': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -202,43 +202,43 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
}
},
'responseURL': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.responseURL_;
}
},
'status': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.status_;
}
},
'timeout': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.timeout_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.timeout_ = value;
}
},
'url': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.url_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
this.url_ = value;
}
},
'id': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return this.id;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
set: function(value) {
if (this.id !== value) {
this.id = value;
@@ -247,13 +247,13 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
}
},
'MXMLDescriptor': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return null;
}
},
'MXMLProperties': {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org_apache_flex_net_BinaryUploader} */
get: function() {
return null;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index 3fc2d43..2daa8b6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -137,39 +137,39 @@ org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
'beads': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.beads_ = value;
}
},
'data': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.element.responseText;
}
},
'contentData': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.contentData_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.contentData_ = value;
}
},
'contentType': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.contentType_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.contentType_ = value;
}
},
'headers': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
if (this.headers_ === undefined) {
this.headers_ = [];
@@ -177,23 +177,23 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
return this.headers_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.headers_ = value;
}
},
'method': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.method_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.method_ = value;
}
},
'responseHeaders': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -214,43 +214,43 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
}
},
'responseURL': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.responseURL_;
}
},
'status': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.status_;
}
},
'timeout': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.timeout_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.timeout_ = value;
}
},
'url': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.url_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
this.url_ = value;
}
},
'id': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return this.id;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
if (this.id !== value) {
this.id = value;
@@ -259,19 +259,19 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
}
},
'MXMLDescriptor': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return null;
}
},
'MXMLProperties': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
get: function() {
return null;
}
},
'strand': {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
index 715edaf..41efcbd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/dataConverters/LazyCollection.js
@@ -73,58 +73,58 @@ org_apache_flex_net_dataConverters_LazyCollection.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_net_dataConverters_LazyCollection.prototype, {
'strand': {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
this.strand_.addEventListener('complete',
goog.bind(this.completeHandler, this));
}
- }
- },
+ }
+ },
'length': {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.rawData_ ? this.rawData_.length : 0;
- }
- },
+ }
+ },
'inputParser': {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.inputParser_;
- },
+ },
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
- set: function(value) {
+ set: function(value) {
this.inputParser_ = value;
- }
- },
+ }
+ },
'itemConverter': {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.itemConverter_;
- },
+ },
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
- set: function(value) {
+ set: function(value) {
this.itemConverter_ = value;
- }
- },
+ }
+ },
'id': {
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
get: function() {
return this.id_;
- },
+ },
/** @this {org_apache_flex_net_dataConverters_LazyCollection} */
- set: function(value) {
+ set: function(value) {
if (this.id_ !== value) {
this.id_ = value;
// this.dispatchEvent(new Event('idChanged'));
}
- }
- }
+ }
+ }
});
/**
- * @expose
+ * @private
* @type {string}
*/
org_apache_flex_net_dataConverters_LazyCollection.prototype.id_ = '';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
index 807cdf5..e0b3b69 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
@@ -79,10 +79,10 @@ Object.defineProperties(org_apache_flex_svg_TextButton.prototype, {
/** @this {org_apache_flex_svg_TextButton} */
get: function() {
return this.element.getAttribute('label');
- },
+ },
/** @this {org_apache_flex_svg_TextButton} */
- set: function(value) {
+ set: function(value) {
this.element.setAttribute('label', value);
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
index ede0bfd..ec98f34 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
@@ -48,29 +48,29 @@ org_apache_flex_utils_BinaryData.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_utils_BinaryData.prototype, {
'data': {
- /** @this {org_apache_flex_utils_BinaryData} */
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_;
}
},
'position': {
- /** @this {org_apache_flex_utils_BinaryData} */
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.position_;
},
- /** @this {org_apache_flex_utils_BinaryData} */
+ /** @this {org_apache_flex_utils_BinaryData} */
set: function(value) {
this.position_ = value;
}
},
'length': {
- /** @this {org_apache_flex_utils_BinaryData} */
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_.byteLength;
}
},
'bytesAvailable': {
- /** @this {org_apache_flex_utils_BinaryData} */
+ /** @this {org_apache_flex_utils_BinaryData} */
get: function() {
return this.data_.byteLength - this.position_;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
index d33d64f..6edbc24 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/MixinManager.js
@@ -54,6 +54,6 @@ Object.defineProperties(org_apache_flex_utils_MixinManager.prototype, {
}
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
index 0bc2acd..a69b3bc 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
@@ -109,33 +109,33 @@ org_apache_flex_utils_Timer.prototype.timerHandler =
Object.defineProperties(org_apache_flex_utils_Timer.prototype, {
'currentCount': {
- /** @this {org_apache_flex_utils_Timer} */
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._currentCount;
}
},
'running': {
- /** @this {org_apache_flex_utils_Timer} */
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this.timerInterval !== -1;
}
},
'delay': {
- /** @this {org_apache_flex_utils_Timer} */
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._delay;
},
- /** @this {org_apache_flex_utils_Timer} */
+ /** @this {org_apache_flex_utils_Timer} */
set: function(value) {
this._delay = value;
}
},
'repeatCount': {
- /** @this {org_apache_flex_utils_Timer} */
+ /** @this {org_apache_flex_utils_Timer} */
get: function() {
return this._repeatCount;
},
- /** @this {org_apache_flex_utils_Timer} */
+ /** @this {org_apache_flex_utils_Timer} */
set: function(value) {
this._repeatCount = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6940d954/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
index 2cb3ffb..6ffe80d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
@@ -41,6 +41,6 @@ Object.defineProperties(org_apache_flex_utils_ViewSourceContextMenuOption.protot
'strand': {
/** @this {org_apache_flex_utils_ViewSourceContextMenuOption} */
set: function(value) {}
- }
+ }
});
[39/47] git commit: [flex-asjs] [refs/heads/develop] - merge
defineprop to develop. The merge broke some stuff so use later commits
Posted by ah...@apache.org.
merge defineprop to develop. The merge broke some stuff so use later commits
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1a5ba33d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1a5ba33d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1a5ba33d
Branch: refs/heads/develop
Commit: 1a5ba33d9ee4c544c1898047faaba504411fdc2b
Parents: 7f179c9 26e2667
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 10:14:01 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 10:14:01 2015 -0700
----------------------------------------------------------------------
.../FlexJSStore/src/ProductJSONItemConverter.as | 2 +-
.../apache/flex/core/ApplicationDataBinding.as | 8 +-
.../org/apache/flex/core/BindableCSSStyles.as | 26 -
.../apache/flex/core/ContainerDataBinding.as | 14 +-
.../flex/core/MXMLBeadViewBaseDataBinding.as | 8 +-
.../src/org/apache/flex/core/SimpleCSSStyles.as | 26 -
.../flex/core/StatesWithTransitionsImpl.as | 20 +-
.../src/org/apache/flex/effects/Fade.as | 2 +-
.../src/org/apache/flex/effects/Move.as | 6 +-
.../src/org/apache/flex/effects/Resize.as | 2 +-
.../src/org/apache/flex/effects/Wipe.as | 2 +-
.../src/org/apache/flex/core/DataBindingBase.as | 41 --
.../org/apache/flex/events/EventDispatcher.as | 30 -
.../js/FlexJS/src/org/apache/cordova/Weinre.js | 50 +-
.../src/org/apache/flex/binding/BindingBase.js | 50 +-
.../src/org/apache/flex/binding/ChainBinding.js | 45 +-
.../org/apache/flex/binding/ConstantBinding.js | 36 +-
.../org/apache/flex/binding/GenericBinding.js | 54 +-
.../org/apache/flex/binding/SimpleBinding.js | 49 +-
.../org/apache/flex/charts/core/ChartBase.js | 31 +-
.../org/apache/flex/charts/core/IAxisBead.js | 52 +-
.../src/org/apache/flex/charts/core/IChart.js | 17 +-
.../flex/charts/core/IChartItemRenderer.js | 91 +--
.../org/apache/flex/charts/core/IChartSeries.js | 68 +-
.../flex/charts/core/IHorizontalAxisBead.js | 37 +-
.../flex/charts/core/IVerticalAxisBead.js | 38 +-
.../charts/supportClasses/ChartAxisGroup.js | 34 +-
.../charts/supportClasses/ChartDataGroup.js | 6 +-
.../src/org/apache/flex/core/Application.js | 32 +-
.../src/org/apache/flex/core/BeadViewBase.js | 36 +-
.../src/org/apache/flex/core/CallLaterBead.js | 21 +-
.../src/org/apache/flex/core/ContainerBase.js | 136 ++--
.../src/org/apache/flex/core/DataBindingBase.js | 49 --
.../src/org/apache/flex/core/FilledRectangle.js | 38 +-
.../src/org/apache/flex/core/FormatBase.js | 121 ++--
.../org/apache/flex/core/HTMLElementWrapper.js | 136 +---
.../js/FlexJS/src/org/apache/flex/core/IBead.js | 15 +-
.../FlexJS/src/org/apache/flex/core/IChild.js | 10 +-
.../src/org/apache/flex/core/IContentView.js | 68 +-
.../src/org/apache/flex/core/IFormatBead.js | 44 +-
.../src/org/apache/flex/core/ILayoutParent.js | 52 +-
.../apache/flex/core/IListPresentationModel.js | 19 +-
.../apache/flex/core/ISelectableItemRenderer.js | 95 +--
.../src/org/apache/flex/core/ISelectionModel.js | 57 +-
.../src/org/apache/flex/core/ITextModel.js | 19 +-
.../flex/core/ItemRendererClassFactory.js | 51 +-
.../FlexJS/src/org/apache/flex/core/ListBase.js | 99 +--
.../org/apache/flex/core/SimpleCSSValuesImpl.js | 27 +-
.../org/apache/flex/core/SimpleStatesImpl.js | 98 +--
.../FlexJS/src/org/apache/flex/core/UIBase.js | 719 ++++++++-----------
.../src/org/apache/flex/core/ValuesManager.js | 31 +-
.../FlexJS/src/org/apache/flex/core/ViewBase.js | 169 ++---
.../org/apache/flex/core/ViewBaseDataBinding.js | 61 +-
.../src/org/apache/flex/core/graphics/Circle.js | 38 +-
.../org/apache/flex/core/graphics/Ellipse.js | 10 +-
.../apache/flex/core/graphics/GradientBase.js | 137 ++--
.../apache/flex/core/graphics/GradientEntry.js | 103 ++-
.../apache/flex/core/graphics/GraphicShape.js | 74 +-
.../flex/core/graphics/GraphicsContainer.js | 104 +--
.../src/org/apache/flex/core/graphics/Line.js | 2 +-
.../apache/flex/core/graphics/LinearGradient.js | 45 +-
.../src/org/apache/flex/core/graphics/Path.js | 35 +-
.../src/org/apache/flex/core/graphics/Rect.js | 10 +-
.../org/apache/flex/core/graphics/SolidColor.js | 60 +-
.../flex/core/graphics/SolidColorStroke.js | 88 +--
.../src/org/apache/flex/createjs/Application.js | 2 +-
.../src/org/apache/flex/createjs/CheckBox.js | 66 +-
.../src/org/apache/flex/createjs/Label.js | 32 +-
.../src/org/apache/flex/createjs/TextButton.js | 31 +-
.../src/org/apache/flex/createjs/core/UIBase.js | 147 ++--
.../org/apache/flex/createjs/core/ViewBase.js | 34 +-
.../org/apache/flex/effects/PlatformWiper.js | 72 +-
.../src/org/apache/flex/events/BrowserEvent.js | 152 ++++
.../src/org/apache/flex/events/DragEvent.js | 19 +-
.../src/org/apache/flex/events/ElementEvents.js | 47 ++
.../FlexJS/src/org/apache/flex/events/Event.js | 27 -
.../org/apache/flex/events/EventDispatcher.js | 47 +-
.../src/org/apache/flex/events/MouseEvent.js | 18 +-
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 156 ++--
.../src/org/apache/flex/html/ButtonBar.js | 6 +-
.../FlexJS/src/org/apache/flex/html/CheckBox.js | 61 +-
.../src/org/apache/flex/html/CloseButton.js | 4 +-
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 47 +-
.../src/org/apache/flex/html/DropDownList.js | 89 ++-
.../js/FlexJS/src/org/apache/flex/html/Image.js | 33 +-
.../org/apache/flex/html/ImageAndTextButton.js | 64 +-
.../js/FlexJS/src/org/apache/flex/html/Label.js | 58 +-
.../js/FlexJS/src/org/apache/flex/html/List.js | 130 ++--
.../src/org/apache/flex/html/MultilineLabel.js | 58 +-
.../src/org/apache/flex/html/NumericStepper.js | 169 ++---
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 101 ++-
.../src/org/apache/flex/html/RadioButton.js | 214 +++---
.../src/org/apache/flex/html/SimpleList.js | 120 ++--
.../FlexJS/src/org/apache/flex/html/Slider.js | 174 ++---
.../FlexJS/src/org/apache/flex/html/Spinner.js | 188 ++---
.../FlexJS/src/org/apache/flex/html/TextArea.js | 30 +-
.../src/org/apache/flex/html/TextButton.js | 30 +-
.../src/org/apache/flex/html/TextInput.js | 32 +-
.../FlexJS/src/org/apache/flex/html/TitleBar.js | 64 +-
.../org/apache/flex/html/ToggleTextButton.js | 84 +--
.../accessories/NumericOnlyTextInputBead.js | 23 +-
.../flex/html/accessories/PasswordInputBead.js | 23 +-
.../flex/html/accessories/TextPromptBead.js | 54 +-
.../org/apache/flex/html/beads/ButtonBarView.js | 22 +-
.../org/apache/flex/html/beads/ContainerView.js | 36 +-
.../DataItemRendererFactoryForArrayData.js | 112 ++-
.../apache/flex/html/beads/ImageButtonView.js | 18 +-
.../src/org/apache/flex/html/beads/ImageView.js | 30 +-
.../src/org/apache/flex/html/beads/ListView.js | 198 +++--
.../src/org/apache/flex/html/beads/PanelView.js | 96 ++-
.../flex/html/beads/ScrollingContainerView.js | 87 +--
.../apache/flex/html/beads/SliderThumbView.js | 51 +-
.../apache/flex/html/beads/SliderTrackView.js | 51 +-
.../flex/html/beads/TextInputWithBorderView.js | 17 +-
.../TextItemRendererFactoryForArrayData.js | 39 +-
.../controllers/ItemRendererMouseController.js | 42 +-
.../ListSingleSelectionMouseController.js | 35 +-
.../beads/controllers/SliderMouseController.js | 54 +-
.../beads/controllers/SpinnerMouseController.js | 46 +-
.../flex/html/beads/layouts/ButtonBarLayout.js | 95 ++-
.../html/beads/layouts/NonVirtualBasicLayout.js | 59 +-
.../layouts/NonVirtualBasicScrollingLayout.js | 37 +-
.../beads/layouts/NonVirtualHorizontalLayout.js | 51 +-
.../beads/layouts/NonVirtualVerticalLayout.js | 47 +-
.../NonVirtualVerticalScrollingLayout.js | 20 +-
.../flex/html/beads/layouts/TileLayout.js | 150 ++--
.../html/beads/models/ArraySelectionModel.js | 189 ++---
.../flex/html/beads/models/DataGridModel.js | 51 +-
.../apache/flex/html/beads/models/ImageModel.js | 54 +-
.../html/beads/models/ListPresentationModel.js | 50 +-
.../apache/flex/html/beads/models/PanelModel.js | 130 ++--
.../apache/flex/html/beads/models/RangeModel.js | 224 +++---
.../apache/flex/html/beads/models/TextModel.js | 50 +-
.../flex/html/beads/models/TitleBarModel.js | 130 ++--
.../ButtonBarButtonItemRenderer.js | 76 +-
.../flex/html/supportClasses/DataGridColumn.js | 124 ++--
.../html/supportClasses/DataItemRenderer.js | 149 ++--
.../html/supportClasses/NonVirtualDataGroup.js | 44 +-
.../html/supportClasses/StringItemRenderer.js | 176 ++---
.../html/supportClasses/UIItemRendererBase.js | 201 ++----
.../src/org/apache/flex/html5/CheckBox.js | 61 +-
.../src/org/apache/flex/html5/ComboBox.js | 54 +-
.../FlexJS/src/org/apache/flex/html5/Label.js | 30 +-
.../src/org/apache/flex/html5/RadioButton.js | 93 +--
.../src/org/apache/flex/html5/TextArea.js | 30 +-
.../src/org/apache/flex/html5/TextButton.js | 31 +-
.../src/org/apache/flex/html5/TextInput.js | 30 +-
.../src/org/apache/flex/jquery/CheckBox.js | 61 +-
.../src/org/apache/flex/jquery/RadioButton.js | 218 +++---
.../src/org/apache/flex/jquery/TextButton.js | 31 +-
.../org/apache/flex/jquery/ToggleTextButton.js | 105 ++-
.../src/org/apache/flex/maps/google/Map.js | 37 +-
.../apache/flex/maps/google/beads/MapView.js | 44 +-
.../apache/flex/maps/google/models/MapModel.js | 141 ++--
.../src/org/apache/flex/net/BinaryUploader.js | 347 ++++-----
.../src/org/apache/flex/net/HTTPService.js | 385 ++++------
.../org/apache/flex/net/JSONItemConverter.js | 32 -
.../flex/net/dataConverters/LazyCollection.js | 147 ++--
.../src/org/apache/flex/svg/TextButton.js | 31 +-
.../src/org/apache/flex/utils/BinaryData.js | 77 +-
.../src/org/apache/flex/utils/Language.js | 58 +-
.../apache/flex/utils/MXMLDataInterpreter.js | 69 +-
.../src/org/apache/flex/utils/MixinManager.js | 41 +-
.../src/org/apache/flex/utils/PointUtils.js | 8 +-
.../FlexJS/src/org/apache/flex/utils/Timer.js | 91 +--
.../FlexJS/src/org/apache/flex/utils/UIUtils.js | 16 +-
.../flex/utils/ViewSourceContextMenuOption.js | 15 +-
167 files changed, 4929 insertions(+), 6855 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
----------------------------------------------------------------------
diff --cc frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
index 778d61b,314d1c5..87758f3
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@@ -120,17 -119,8 +119,8 @@@ org_apache_flex_core_ContainerBase.prot
/**
* @expose
- * @return {Array} An array of descriptors.
- */
- org_apache_flex_core_ContainerBase.prototype.get_MXMLDescriptor = function() {
- return this.mxmlDescriptor;
- };
-
-
- /**
- * @expose
* @param {Object} doc The document.
- * @param {Array} desc The descriptor data;
+ * @param {Array} desc The descriptor data.
*/
org_apache_flex_core_ContainerBase.prototype.setMXMLDescriptor =
function(doc, desc) {
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --cc frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
index 24c9cb6,3be140a..61a0015
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@@ -363,216 -353,288 +353,289 @@@ org_apache_flex_core_UIBase.prototype.r
};
- /**
- * @expose
- * @param {number} alpha The alpha or opacity.
- */
- org_apache_flex_core_UIBase.prototype.set_alpha = function(alpha) {
- this.positioner.style.opacity = alpha;
- };
-
-
- /**
- * @expose
- * @return {number} The alpha or opacity.
- */
- org_apache_flex_core_UIBase.prototype.get_alpha = function() {
- var stralpha = this.positioner.style.opacity;
- var alpha = parseFloat(stralpha);
- return alpha;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
- org_apache_flex_core_UIBase.prototype.set_x = function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.left = pixels.toString() + 'px';
- };
-
-
- /**
- * @expose
- * @return {number} The pixel count from the left edge.
- */
- org_apache_flex_core_UIBase.prototype.get_x = function() {
- var strpixels = this.positioner.style.left;
- var pixels = parseFloat(strpixels);
- if (isNaN(pixels))
- pixels = this.positioner.offsetLeft;
- return pixels;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The pixel count from the top edge.
- */
- org_apache_flex_core_UIBase.prototype.set_y = function(pixels) {
- this.positioner.style.position = 'absolute';
- this.positioner.style.top = pixels.toString() + 'px';
- };
-
-
- /**
- * @expose
- * @return {number} The pixel count from the top edge.
- */
- org_apache_flex_core_UIBase.prototype.get_y = function() {
- var strpixels = this.positioner.style.top;
- var pixels = parseFloat(strpixels);
- if (isNaN(pixels))
- pixels = this.positioner.offsetTop;
- return pixels;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
- org_apache_flex_core_UIBase.prototype.set_width = function(pixels) {
- this.set_explicitWidth(pixels);
- this.setWidth(pixels);
- };
-
-
- /**
- * @expose
- * @return {number} The width of the object in pixels.
- */
- org_apache_flex_core_UIBase.prototype.get_width = function() {
- var pixels;
- var strpixels = this.positioner.style.width;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- if (isNaN(pixels)) {
- pixels = this.positioner.offsetWidth;
- if (pixels === 0 && this.positioner.scrollWidth !== 0) {
- // invisible child elements cause offsetWidth to be 0.
- pixels = this.positioner.scrollWidth;
+ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
+ /** @expose */
+ beads: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(value) {
+ this.mxmlBeads_ = value;
+ }
+ },
+ /** @expose */
+ numElements: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ var children = this.internalChildren();
+ return children.length;
+ }
+ },
+ /** @expose */
+ parent: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ var p = this.positioner.parentNode;
+ var wrapper = p.flexjs_wrapper;
+ return wrapper;
+ }
+ },
+ /** @expose */
+ alpha: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(alpha) {
+ this.positioner.style.opacity = alpha;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ var stralpha = this.positioner.style.opacity;
+ var alpha = parseFloat(stralpha);
+ return alpha;
+ }
+ },
+ /** @expose */
+ x: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.positioner.style.position = 'absolute';
+ this.positioner.style.left = pixels.toString() + 'px';
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ var strpixels = this.positioner.style.left;
+ var pixels = parseFloat(strpixels);
+ if (isNaN(pixels))
+ pixels = this.positioner.offsetLeft;
+ return pixels;
+ }
+ },
+ /** @expose */
+ y: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.positioner.style.position = 'absolute';
+ this.positioner.style.top = pixels.toString() + 'px';
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ var strpixels = this.positioner.style.top;
+ var pixels = parseFloat(strpixels);
+ if (isNaN(pixels))
+ pixels = this.positioner.offsetTop;
+ return pixels;
+ }
+ },
+ /** @expose */
+ width: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.explicitWidth = pixels;
+ this.setWidth(pixels);
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ var pixels;
+ var strpixels = this.positioner.style.width;
+ if (strpixels !== null && strpixels.indexOf('%') != -1)
+ pixels = NaN;
+ else
+ pixels = parseFloat(strpixels);
+ if (isNaN(pixels)) {
+ pixels = this.positioner.offsetWidth;
+ if (pixels === 0 && this.positioner.scrollWidth !== 0) {
+ // invisible child elements cause offsetWidth to be 0.
+ pixels = this.positioner.scrollWidth;
+ }
+ }
+ return pixels;
+ }
+ },
+ /** @expose */
+ explicitWidth: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.explicitWidth_ = pixels;
+ if (!isNaN(pixels))
+ this.percentWidth_ = NaN;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.explicitWidth_;
+ }
+ },
+ /** @expose */
+ percentWidth: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.percentWidth_ = pixels;
+ this.positioner.style.width = pixels.toString() + '%';
+ if (!isNaN(pixels))
+ this.explicitWidth_ = NaN;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.percentWidth_;
+ }
+ },
+ /** @expose */
+ height: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.explicitHeight = pixels;
+ this.setHeight(pixels);
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ var pixels;
+ var strpixels = this.positioner.style.height;
+ if (strpixels !== null && strpixels.indexOf('%') != -1)
+ pixels = NaN;
+ else
+ pixels = parseFloat(strpixels);
+ if (isNaN(pixels)) {
+ pixels = this.positioner.offsetHeight;
+ if (pixels === 0 && this.positioner.scrollHeight !== 0) {
+ // invisible child elements cause offsetHeight to be 0.
+ pixels = this.positioner.scrollHeight;
+ }
+ }
+ return pixels;
+ }
+ },
+ /** @expose */
+ explicitHeight: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.explicitHeight_ = pixels;
+ if (!isNaN(pixels))
+ this.percentHeight_ = NaN;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.explicitHeight_;
+ }
+ },
+ /** @expose */
+ percentHeight: {
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(pixels) {
+ this.percentHeight_ = pixels;
+ this.positioner.style.height = pixels.toString() + '%';
+ if (!isNaN(pixels))
+ this.explicitHeight_ = NaN;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.percentHeight_;
+ }
+ },
+ /** @expose */
+ id: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.id_;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(value) {
+ if (this.id_ !== value) {
+ this.element.id = value;
+ this.id_ = value;
+ this.dispatchEvent('idChanged');
+ }
+ }
+ },
+ /** @expose */
+ className: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.className_;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(value) {
+ if (this.className_ !== value) {
+ this.element.className = this.typeNames ? value + ' ' + this.typeNames : value;
+ this.className_ = value;
+ this.dispatchEvent('classNameChanged');
+ }
+ }
+ },
+ /** @expose */
+ model: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ if (this.model_ == null) {
+ // addbead will set _model
+ if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
+ /**
+ * @type {Function}
+ */
+ var m = /** @type {Function} */ (org_apache_flex_core_ValuesManager.valuesImpl.
+ getValue(this, 'iBeadModel'));
+ var b = new m();
+ this.addBead(b);
+ }
+ }
+ return this.model_;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(value) {
+ if (this.model_ !== value) {
+ this.addBead(value);
+ this.dispatchEvent('modelChanged');
+ }
+ }
+ },
+ /** @expose */
+ style: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.style_;
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(value) {
+ if (this.style_ !== value) {
+ if (typeof(value) == 'string')
+ value = org_apache_flex_core_ValuesManager.valuesImpl.parseStyles(value);
+ this.style_ = value;
+ if (value.addEventListener)
+ value.addEventListener(org_apache_flex_events_ValueChangeEvent.VALUE_CHANGE,
+ goog.bind(this.styleChangeHandler, this));
+ this.dispatchEvent('stylesChanged');
+ }
+ }
+ },
+ /** @expose */
+ visible: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return this.positioner.style.display !== 'none';
+ },
+ /** @this {org_apache_flex_core_UIBase} */
+ set: function(value) {
+ var oldValue = this.positioner.style.display !== 'none';
+ if (value !== oldValue) {
+ if (!value) {
+ this.lastDisplay_ = this.positioner.style.display;
+ this.positioner.style.display = 'none';
+ this.dispatchEvent(new org_apache_flex_events_Event('hide'));
+ } else {
+ if (this.lastDisplay_) {
+ this.positioner.style.display = this.lastDisplay_;
+ } else {
- this.positioner.style.display = 'block';
++ this.positioner.style.display = this.positioner.internalDisplay;
+ }
+ this.dispatchEvent(new org_apache_flex_events_Event('show'));
+ }
++ this.dispatchEvent(new org_apache_flex_events_Event('visibleChanged'));
+ }
+ }
+ },
+ /** @expose */
+ topMostEventDispatcher: {
+ /** @this {org_apache_flex_core_UIBase} */
+ get: function() {
+ return document.body.flexjs_wrapper;
+ }
}
- }
- return pixels;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The pixel count from the left edge.
- */
- org_apache_flex_core_UIBase.prototype.set_explicitWidth = function(pixels) {
- this.explicitWidth_ = pixels;
- if (!isNaN(pixels))
- this.percentWidth_ = NaN;
- };
-
-
- /**
- * @expose
- * @return {number} The width of the object in pixels.
- */
- org_apache_flex_core_UIBase.prototype.get_explicitWidth = function() {
- return this.explicitWidth_;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The percent width of the object.
- */
- org_apache_flex_core_UIBase.prototype.set_percentWidth = function(pixels) {
- this.percentWidth_ = pixels;
- this.positioner.style.width = pixels.toString() + '%';
- if (!isNaN(pixels))
- this.explicitWidth_ = NaN;
- };
-
-
- /**
- * @expose
- * @return {number} The percent width of the object.
- */
- org_apache_flex_core_UIBase.prototype.get_percentWidth = function() {
- return this.percentWidth_;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The pixel count from the top edge.
- */
- org_apache_flex_core_UIBase.prototype.set_height = function(pixels) {
- this.set_explicitHeight(pixels);
- this.setHeight(pixels);
- };
-
-
- /**
- * @expose
- * @return {number} The height of the object in pixels.
- */
- org_apache_flex_core_UIBase.prototype.get_height = function() {
- var pixels;
- var strpixels = this.positioner.style.height;
- if (strpixels !== null && strpixels.indexOf('%') != -1)
- pixels = NaN;
- else
- pixels = parseFloat(strpixels);
- if (isNaN(pixels)) {
- pixels = this.positioner.offsetHeight;
- if (pixels === 0 && this.positioner.scrollHeight !== 0) {
- // invisible child elements cause offsetHeight to be 0.
- pixels = this.positioner.scrollHeight;
- }
- }
- return pixels;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The height of the object in pixels.
- */
- org_apache_flex_core_UIBase.prototype.set_explicitHeight = function(pixels) {
- this.explicitHeight_ = pixels;
- if (!isNaN(pixels))
- this.percentHeight_ = NaN;
- };
-
-
- /**
- * @expose
- * @return {number} The height of the object in pixels.
- */
- org_apache_flex_core_UIBase.prototype.get_explicitHeight = function() {
- return this.explicitHeight_;
- };
-
-
- /**
- * @expose
- * @param {number} pixels The percentage height.
- */
- org_apache_flex_core_UIBase.prototype.set_percentHeight = function(pixels) {
- this.percentHeight_ = pixels;
- this.positioner.style.height = pixels.toString() + '%';
- if (!isNaN(pixels))
- this.explicitHeight_ = NaN;
- };
-
-
- /**
- * @expose
- * @return {number} The percentage height of the object.
- */
- org_apache_flex_core_UIBase.prototype.get_percentHeight = function() {
- return this.percentHeight_;
- };
+ });
/**
@@@ -805,45 -741,5 +742,3 @@@ org_apache_flex_core_UIBase.prototype.s
newStyle[value.propertyName] = value.newValue;
org_apache_flex_core_ValuesManager.valuesImpl.applyStyles(this, newStyle);
};
-
-
- /**
- * @expose
- * @return {boolean} True if visible.
- */
- org_apache_flex_core_UIBase.prototype.get_visible = function() {
- return this.positioner.style.display !== 'none';
- };
-
-
- /**
- * @expose
- * @param {boolean} value The new model.
- */
- org_apache_flex_core_UIBase.prototype.set_visible = function(value) {
- var oldValue = this.positioner.style.display !== 'none';
- if (value !== oldValue) {
- if (!value) {
- this.lastDisplay_ = this.positioner.style.display;
- this.positioner.style.display = 'none';
- this.dispatchEvent(new org_apache_flex_events_Event('hide'));
- } else {
- if (this.lastDisplay_) {
- this.positioner.style.display = this.lastDisplay_;
- } else {
- this.positioner.style.display = this.positioner.internalDisplay;
- }
- this.dispatchEvent(new org_apache_flex_events_Event('show'));
- }
- this.dispatchEvent(new org_apache_flex_events_Event('visibleChanged'));
- }
- };
--
--
- /**
- * @expose
- * @return {Object} The top most EventDispatcher.
- */
- org_apache_flex_core_UIBase.prototype.get_topMostEventDispatcher = function() {
- return document.body.flexjs_wrapper;
- };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
----------------------------------------------------------------------
diff --cc frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
index 5c6572c,4b78ae5..0a927d3
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.js
@@@ -105,10 -96,9 +96,10 @@@ org_apache_flex_html_beads_layouts_Butt
for (var i = 0; i < n; i++)
{
var ir = itemRendererParent.getElementAt(i);
- ir.set_y(0);
- ir.set_height(useHeight);
- ir.set_x(xpos);
+ ir.y = 0;
+ ir.height = useHeight;
+ ir.x = xpos;
+ ir.element.internalDisplay = 'inline-block';
ir.element.style['vertical-align'] = 'middle';
ir.element.style['text-align'] = 'center';
ir.element.style['left-margin'] = 'auto';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --cc frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index 52791ea,353bb93..3478374
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@@ -106,13 -101,12 +101,13 @@@ org_apache_flex_html_beads_layouts_NonV
var i, n, h, w;
var viewBead = this.strand_.getBeadByType(org_apache_flex_core_ILayoutParent);
- var contentView = viewBead.get_contentView();
- w = contentView.get_width();
- h = contentView.get_height();
- n = contentView.get_numElements();
+ var contentView = viewBead.contentView;
+ w = contentView.width;
+ h = contentView.height;
+ n = contentView.numElements;
for (i = 0; i < n; i++) {
var child = contentView.getElementAt(i);
+ child.positioner.internalDisplay = 'none';
var left = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'left');
var right = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'right');
var top = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'top');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
----------------------------------------------------------------------
diff --cc frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
index 7297f95,5bbbf83..dc6127b
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
@@@ -64,14 -65,13 +65,14 @@@ org_apache_flex_html_beads_layouts_NonV
var i, n, h, w;
var viewBead = this.strand_.getBeadByType(org_apache_flex_core_ILayoutParent);
- var contentView = viewBead.get_contentView();
+ var contentView = viewBead.contentView;
contentView.element.style.overflow = 'auto';
- w = contentView.get_width();
- h = contentView.get_height();
- n = contentView.get_numElements();
+ w = contentView.width;
+ h = contentView.height;
+ n = contentView.numElements;
for (i = 0; i < n; i++) {
var child = contentView.getElementAt(i);
+ child.positioner.internalDisplay = 'none';
var left = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'left');
var right = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'right');
var top = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'top');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualHorizontalLayout.js
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a5ba33d/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
----------------------------------------------------------------------
diff --cc frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
index f1aa9f9,17f83ec..72354b0
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/TileLayout.js
@@@ -121,41 -95,32 +95,41 @@@ Object.defineProperties(org_apache_flex
*/
org_apache_flex_html_beads_layouts_TileLayout.
prototype.changeHandler = function(event) {
-- var children, i, n;
++ var children, i, n, child;
var xpos, ypos, useWidth, useHeight;
children = this.strand_.internalChildren();
n = children.length;
if (n === 0) return;
+ var realN = n;
+ for (i = 0; i < n; i++)
+ {
- var child = children[i].flexjs_wrapper;
++ child = children[i].flexjs_wrapper;
+ if (!child.get_visible()) realN--;
+ }
+
xpos = 0;
ypos = 0;
- useWidth = this.get_columnWidth();
- useHeight = this.get_rowHeight();
+ useWidth = this.columnWidth;
+ useHeight = this.rowHeight;
- if (isNaN(useWidth)) useWidth = Math.floor(this.strand_.get_width() / this.get_numColumns()); // + gap
+ if (isNaN(useWidth)) useWidth = Math.floor(this.strand_.width / this.numColumns); // + gap
if (isNaN(useHeight)) {
// given the width and total number of items, how many rows?
- var numRows = Math.floor(realN / this.get_numColumns());
- useHeight = Math.floor(this.strand_.get_height() / numRows);
- var numRows = Math.floor(n / this.numColumns);
++ var numRows = Math.floor(realN / this.numColumns);
+ useHeight = Math.floor(this.strand_.height / numRows);
}
for (i = 0; i < n; i++)
{
-- var child = children[i].flexjs_wrapper;
- if (!child.get_visible()) continue;
++ child = children[i].flexjs_wrapper;
++ if (!child.visible) continue;
+ child.positioner.internalDisplay = 'inline-block';
- child.set_width(useWidth);
- child.set_height(useHeight);
- child.set_x(xpos);
- child.set_y(ypos);
+ child.width = useWidth;
+ child.height = useHeight;
+ child.x = xpos;
+ child.y = ypos;
xpos += useWidth;
[45/47] git commit: [flex-asjs] [refs/heads/develop] - tweak variable
names to avoid conflicts
Posted by ah...@apache.org.
tweak variable names to avoid conflicts
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/18355a5f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/18355a5f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/18355a5f
Branch: refs/heads/develop
Commit: 18355a5f1848ab45684927a334cdbf0e5ad248a1
Parents: 50e5ed8
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 15:25:15 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 15:25:15 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/net/HTTPService.js | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/18355a5f/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index 4b3344a..ff1f743 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -66,6 +66,12 @@ org_apache_flex_net_HTTPService = function() {
* @private
* @type {Array.<Object>}
*/
+ this.mxmlBeads_ = null;
+
+ /**
+ * @private
+ * @type {Array.<Object>}
+ */
this.beads_ = null;
/**
@@ -143,10 +149,15 @@ org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
/** @expose */
+ strand: {
+ /** @this {org_apache_flex_net_HTTPService} */
+ set: function(value) {}
+ },
+ /** @expose */
beads: {
/** @this {org_apache_flex_net_HTTPService} */
set: function(value) {
- this.beads_ = value;
+ this.mxmlBeads_ = value;
}
},
/** @expose */
@@ -299,10 +310,10 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
org_apache_flex_net_HTTPService.prototype.send = function() {
var contentData, header, i, n, sawContentType, url;
- if (this.strand == null && this.beads_) {
- var m = this.beads_.length;
+ if (this.beads_ == null && this.mxmlBeads_) {
+ var m = this.mxmlBeads_.length;
for (var j = 0; j < m; j++) {
- this.addBead(this.beads_[j]);
+ this.addBead(this.mxmlBeads_[j]);
}
}
[32/47] git commit: [flex-asjs] [refs/heads/develop] - fix backing
variables so the don't collide with defineprop'd properties
Posted by ah...@apache.org.
fix backing variables so the don't collide with defineprop'd properties
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f90fadf4
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f90fadf4
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f90fadf4
Branch: refs/heads/develop
Commit: f90fadf4fd8dcf28b665136530bc6dbe3fde3b42
Parents: 5a26f7c
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:07:54 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:07:54 2015 -0700
----------------------------------------------------------------------
.../FlexJS/src/org/apache/flex/core/UIBase.js | 59 ++++++++++----------
1 file changed, 28 insertions(+), 31 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f90fadf4/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 e27ba82..d623e64 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -82,6 +82,24 @@ org_apache_flex_core_UIBase = function() {
*/
this.style_ = null;
+ /**
+ * @private
+ * @type {?string}
+ */
+ this.id_ = null;
+
+ /**
+ * @private
+ * @type {?string}
+ */
+ this.className_ = '';
+
+ /**
+ * @private
+ * @type {Object}
+ */
+ this.model_ = null;
+
this.createElement();
};
goog.inherits(org_apache_flex_core_UIBase,
@@ -286,7 +304,7 @@ org_apache_flex_core_UIBase.prototype.addBead = function(bead) {
this.beads_.push(bead);
if (org_apache_flex_utils_Language.is(bead, org_apache_flex_core_IBeadModel))
- this.model = bead;
+ this.model_ = bead;
if (org_apache_flex_utils_Language.is(bead, org_apache_flex_core_IBeadView)) {
this.dispatchEvent(new org_apache_flex_events_Event('viewChanged'));
@@ -504,13 +522,13 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
'id': {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
- return this.id;
+ return this.id_;
},
/** @this {org_apache_flex_core_UIBase} */
set: function(value) {
- if (this.id !== value) {
+ if (this.id_ !== value) {
this.element.id = value;
- this.id = value;
+ this.id_ = value;
this.dispatchEvent('idChanged');
}
}
@@ -518,13 +536,13 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
'className': {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
- return this.className;
+ return this.className_;
},
/** @this {org_apache_flex_core_UIBase} */
set: function(value) {
- if (this.className !== value) {
+ if (this.className_ !== value) {
this.element.className = this.typeNames ? value + ' ' + this.typeNames : value;
- this.className = value;
+ this.className_ = value;
this.dispatchEvent('classNameChanged');
}
}
@@ -532,7 +550,7 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
'model': {
/** @this {org_apache_flex_core_UIBase} */
get: function() {
- if (this.model == null) {
+ if (this.model_ == null) {
// addbead will set _model
if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
/**
@@ -544,11 +562,11 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
this.addBead(b);
}
}
- return this.model;
+ return this.model_;
},
/** @this {org_apache_flex_core_UIBase} */
set: function(value) {
- if (this.model !== value) {
+ if (this.model_ !== value) {
this.addBead(value);
this.dispatchEvent('modelChanged');
}
@@ -697,32 +715,11 @@ org_apache_flex_core_UIBase.prototype.isHeightSizedToContent = function()
* @expose
* @type {string}
*/
-org_apache_flex_core_UIBase.prototype.id = '';
-
-
-/**
- * @expose
- * @type {string}
- */
org_apache_flex_core_UIBase.prototype.typeNames = '';
/**
* @expose
- * @type {string}
- */
-org_apache_flex_core_UIBase.prototype.className = '';
-
-
-/**
- * @expose
- * @type {Object}
- */
-org_apache_flex_core_UIBase.prototype.model = null;
-
-
-/**
- * @expose
* @param {org_apache_flex_events_ValueChangeEvent} value The new style properties.
*/
org_apache_flex_core_UIBase.prototype.styleChangeHandler = function(value) {
[42/47] git commit: [flex-asjs] [refs/heads/develop] - use block as
default. this might need revisiting
Posted by ah...@apache.org.
use block as default. this might need revisiting
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/fb59aab8
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fb59aab8
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fb59aab8
Branch: refs/heads/develop
Commit: fb59aab856d69e69b59f84aab0ac9873cb0eea09
Parents: f116426
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 12:13:16 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 12:13:16 2015 -0700
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js | 2 +-
.../org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js | 2 +-
.../flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb59aab8/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 49463ee..599aa61 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -62,7 +62,7 @@ org_apache_flex_core_HTMLElementWrapper.prototype.strand = null;
* @protected
* @type {boolean}
*/
-org_apache_flex_core_HTMLElementWrapper.prototype.internalDisplay = 'none';
+org_apache_flex_core_HTMLElementWrapper.prototype.internalDisplay = 'inline';
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb59aab8/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index 3478374..73ae4db 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@ -107,7 +107,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.
n = contentView.numElements;
for (i = 0; i < n; i++) {
var child = contentView.getElementAt(i);
- child.positioner.internalDisplay = 'none';
+ child.positioner.internalDisplay = 'block';
var left = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'left');
var right = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'right');
var top = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'top');
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb59aab8/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
index dc6127b..4cdf12f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
@@ -72,7 +72,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.
n = contentView.numElements;
for (i = 0; i < n; i++) {
var child = contentView.getElementAt(i);
- child.positioner.internalDisplay = 'none';
+ child.positioner.internalDisplay = 'block';
var left = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'left');
var right = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'right');
var top = org_apache_flex_core_ValuesManager.valuesImpl.getValue(child, 'top');
[17/47] git commit: [flex-asjs] [refs/heads/develop] - fix requires
Posted by ah...@apache.org.
fix requires
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/68c48754
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/68c48754
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/68c48754
Branch: refs/heads/develop
Commit: 68c487549b1ed16d3c0ca5a1a448759943eba775
Parents: 276eb5e
Author: Alex Harui <ah...@apache.org>
Authored: Wed Mar 25 09:54:15 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Mar 25 09:54:15 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/utils/ViewSourceContextMenuOption.js | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/68c48754/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
index efe2e3b..2cb3ffb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
@@ -14,6 +14,8 @@
goog.provide('org_apache_flex_utils_ViewSourceContextMenuOption');
+goog.require('org_apache_flex_events_EventDispatcher');
+
/**
[10/47] git commit: [flex-asjs] [refs/heads/develop] - lint
Posted by ah...@apache.org.
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/7ab51ec4
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7ab51ec4
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7ab51ec4
Branch: refs/heads/develop
Commit: 7ab51ec45069b6e12bc6aa8cd6032b9ab856f2f4
Parents: 5344e8b
Author: Alex Harui <ah...@apache.org>
Authored: Thu Mar 12 23:09:20 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Mar 12 23:09:20 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/binding/BindingBase.js | 1 -
.../src/org/apache/flex/binding/ChainBinding.js | 4 +-
.../org/apache/flex/binding/ConstantBinding.js | 28 ++---
.../org/apache/flex/binding/SimpleBinding.js | 4 +-
.../org/apache/flex/charts/core/ChartBase.js | 4 +-
.../org/apache/flex/charts/core/IAxisBead.js | 15 +--
.../src/org/apache/flex/charts/core/IChart.js | 6 +-
.../flex/charts/core/IChartItemRenderer.js | 32 +++---
.../org/apache/flex/charts/core/IChartSeries.js | 17 +--
.../flex/charts/core/IHorizontalAxisBead.js | 12 +--
.../flex/charts/core/IVerticalAxisBead.js | 12 +--
.../src/org/apache/flex/core/ContainerBase.js | 20 ++--
.../src/org/apache/flex/core/FilledRectangle.js | 5 +-
.../src/org/apache/flex/core/FormatBase.js | 20 ++--
.../org/apache/flex/core/HTMLElementWrapper.js | 16 +--
.../FlexJS/src/org/apache/flex/core/IChild.js | 4 +-
.../src/org/apache/flex/core/IContentView.js | 17 +--
.../src/org/apache/flex/core/IFormatBead.js | 12 +--
.../src/org/apache/flex/core/ILayoutParent.js | 16 +--
.../apache/flex/core/IListPresentationModel.js | 5 +-
.../apache/flex/core/ISelectableItemRenderer.js | 21 ++--
.../src/org/apache/flex/core/ISelectionModel.js | 15 +--
.../src/org/apache/flex/core/ITextModel.js | 4 +-
.../flex/core/ItemRendererClassFactory.js | 6 +-
.../FlexJS/src/org/apache/flex/core/UIBase.js | 94 ++++++++---------
.../src/org/apache/flex/core/ValuesManager.js | 6 +-
.../FlexJS/src/org/apache/flex/core/ViewBase.js | 28 ++---
.../src/org/apache/flex/core/graphics/Circle.js | 8 +-
.../apache/flex/core/graphics/GradientBase.js | 26 ++---
.../apache/flex/core/graphics/GradientEntry.js | 13 +--
.../apache/flex/core/graphics/GraphicShape.js | 2 +-
.../flex/core/graphics/GraphicsContainer.js | 38 ++++---
.../apache/flex/core/graphics/LinearGradient.js | 7 +-
.../src/org/apache/flex/core/graphics/Path.js | 6 +-
.../org/apache/flex/core/graphics/SolidColor.js | 14 +--
.../flex/core/graphics/SolidColorStroke.js | 18 ++--
.../src/org/apache/flex/createjs/Label.js | 6 +-
.../src/org/apache/flex/createjs/core/UIBase.js | 35 ++++---
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 22 ++--
.../FlexJS/src/org/apache/flex/html/CheckBox.js | 16 +--
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 8 +-
.../org/apache/flex/html/ImageAndTextButton.js | 16 +--
.../js/FlexJS/src/org/apache/flex/html/Label.js | 16 +--
.../src/org/apache/flex/html/MultilineLabel.js | 16 +--
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 22 ++--
.../src/org/apache/flex/html/RadioButton.js | 46 ++++----
.../FlexJS/src/org/apache/flex/html/Spinner.js | 28 ++---
.../FlexJS/src/org/apache/flex/html/TextArea.js | 8 +-
.../src/org/apache/flex/html/TextButton.js | 8 +-
.../src/org/apache/flex/html/TextInput.js | 8 +-
.../org/apache/flex/html/ToggleTextButton.js | 16 +--
.../accessories/NumericOnlyTextInputBead.js | 6 +-
.../flex/html/accessories/PasswordInputBead.js | 6 +-
.../DataItemRendererFactoryForArrayData.js | 14 +--
.../src/org/apache/flex/html/beads/ListView.js | 24 ++---
.../TextItemRendererFactoryForArrayData.js | 6 +-
.../controllers/ItemRendererMouseController.js | 6 +-
.../ListSingleSelectionMouseController.js | 6 +-
.../beads/controllers/SliderMouseController.js | 6 +-
.../beads/controllers/SpinnerMouseController.js | 6 +-
.../html/beads/layouts/NonVirtualBasicLayout.js | 6 +-
.../layouts/NonVirtualBasicScrollingLayout.js | 6 +-
.../beads/layouts/NonVirtualVerticalLayout.js | 6 +-
.../NonVirtualVerticalScrollingLayout.js | 6 +-
.../ButtonBarButtonItemRenderer.js | 14 +--
.../html/supportClasses/DataItemRenderer.js | 34 +++---
.../html/supportClasses/NonVirtualDataGroup.js | 12 +--
.../html/supportClasses/StringItemRenderer.js | 38 +++----
.../src/org/apache/flex/html5/CheckBox.js | 20 ++--
.../src/org/apache/flex/html5/ComboBox.js | 12 +--
.../FlexJS/src/org/apache/flex/html5/Label.js | 10 +-
.../src/org/apache/flex/html5/TextArea.js | 8 +-
.../src/org/apache/flex/html5/TextInput.js | 8 +-
.../src/org/apache/flex/jquery/CheckBox.js | 22 ++--
.../src/org/apache/flex/jquery/RadioButton.js | 54 +++++-----
.../org/apache/flex/jquery/ToggleTextButton.js | 28 ++---
.../src/org/apache/flex/maps/google/Map.js | 14 +--
.../src/org/apache/flex/net/BinaryUploader.js | 92 ++++++++--------
.../src/org/apache/flex/net/HTTPService.js | 104 +++++++++----------
.../src/org/apache/flex/utils/BinaryData.js | 26 ++---
.../src/org/apache/flex/utils/Language.js | 8 +-
.../apache/flex/utils/MXMLDataInterpreter.js | 6 +-
.../FlexJS/src/org/apache/flex/utils/Timer.js | 32 +++---
83 files changed, 742 insertions(+), 731 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
index bf6d886..1780dc3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
@@ -117,4 +117,3 @@ Object.defineProperties(org_apache_flex_binding_BindingBase.prototype, {
}
}
});
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
index c46c07b..ea40ea8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ChainBinding.js
@@ -198,8 +198,8 @@ org_apache_flex_binding_ChainWatcher.prototype.handler = function(event) {
Object.defineProperties(org_apache_flex_binding_ChainWatcher.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.applyBinding();
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index 99089af..6723bbf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -40,20 +40,20 @@ org_apache_flex_binding_ConstantBinding.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_binding_ConstantBinding.prototype, {
- 'strand': {
- set: function(value) {
+ 'strand': {
+ set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_binding_ConstantBinding, this, 'strand', value);
- var val;
- try {
- val = this.source[this.sourcePropertyName];
- } catch (e) {
- try {
- val = this.source.constructor[this.sourcePropertyName];
- } catch (e2) {
- }
- }
- this.destination[this.destinationPropertyName] = val;
- }
- }
+ var val;
+ try {
+ val = this.source[this.sourcePropertyName];
+ } catch (e) {
+ try {
+ val = this.source.constructor[this.sourcePropertyName];
+ } catch (e2) {
+ }
+ }
+ this.destination[this.destinationPropertyName] = val;
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index 9bc9da7..9602a63 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -80,8 +80,8 @@ Object.defineProperties(org_apache_flex_binding_SimpleBinding.prototype, {
goog.bind(this.changeHandler, this));
this.changeHandler();
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
index 43b6ca6..2f23281 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/ChartBase.js
@@ -71,12 +71,12 @@ org_apache_flex_charts_core_ChartBase.prototype.series_ = null;
Object.defineProperties(org_apache_flex_charts_core_ChartBase.prototype, {
'series': {
- get: function() {
+ get: function() {
return this.series_;
},
set: function(value) {
this.series_ = value;
this.dispatchEvent(new org_apache_flex_events_Event('seriesChanged'));
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
index dd3fa01..5409b71 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IAxisBead.js
@@ -33,21 +33,22 @@ org_apache_flex_charts_core_IAxisBead = function() {
Object.defineProperties(org_apache_flex_charts_core_IAxisBead.prototype, {
'placement': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'axisStroke': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
-
+ },
+
'tickStroke': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- }
+ }
});
+
/**
* Metadata
*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
index 045b983..e5cde6f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChart.js
@@ -30,10 +30,10 @@ org_apache_flex_charts_core_IChart = function() {
Object.defineProperties(org_apache_flex_charts_core_IChart.prototype, {
- 'series': {
- get: function() {},
+ 'series': {
+ get: function() {},
set: function(value) {}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
index 1ba3910..7d5f21a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartItemRenderer.js
@@ -34,29 +34,29 @@ org_apache_flex_charts_core_IChartItemRenderer = function() {
Object.defineProperties(org_apache_flex_charts_core_IChart.prototype, {
'xField': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'yField': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
- 'fillColor': {
- get: function() {},
- set: function(value) {}
- },
+ },
+ 'fillColor': {
+ get: function() {},
+ set: function(value) {}
+ },
'x': {
- set: function(value) {}
- },
+ set: function(value) {}
+ },
'y': {
- set: function(value) {}
- },
+ set: function(value) {}
+ },
'width': {
- set: function(value) {}
- },
+ set: function(value) {}
+ },
'height': {
- set: function(value) {}
- }
+ set: function(value) {}
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
index d2477e4..ebbccb5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IChartSeries.js
@@ -33,23 +33,24 @@ org_apache_flex_charts_core_IChartSeries = function() {
Object.defineProperties(org_apache_flex_charts_core_IChartSeries.prototype, {
'xField': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'yField': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'fillColor': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'itemRenderer': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- }
+ }
});
+
/**
* Metadata
*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
index 7b069c9..84913f0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IHorizontalAxisBead.js
@@ -45,13 +45,13 @@ org_apache_flex_charts_core_IHorizontalAxisBead.prototype.FLEXJS_CLASS_INFO = {
Object.defineProperties(org_apache_flex_charts_core_IHorizontalAxisBead.prototype, {
'axisHeight': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- },
+ },
'maximum': {
- get: function() {}
- },
+ get: function() {}
+ },
'minimum': {
- get: function() {}
- }
+ get: function() {}
+ }
});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
index 73c4c56..787b8f3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/charts/core/IVerticalAxisBead.js
@@ -44,13 +44,13 @@ org_apache_flex_charts_core_IVerticalAxisBead.prototype.FLEXJS_CLASS_INFO = {
Object.defineProperties(org_apache_flex_charts_core_IVerticalAxisBead.prototype, {
'axisWidth': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- },
+ },
'maximum': {
- get: function() {}
- },
+ get: function() {}
+ },
'minimum': {
- get: function() {}
- }
+ get: function() {}
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/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 5f9148d..39d7e12 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -132,12 +132,12 @@ org_apache_flex_core_ContainerBase.prototype.setMXMLDescriptor =
Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
'MXMLDescriptor': {
- get: function() {
+ get: function() {
return this.mxmlDescriptor;
}
- },
- 'states': {
- get: function() {
+ },
+ 'states': {
+ get: function() {
return this.states_;
},
set: function(s) {
@@ -154,9 +154,9 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
this.addBead(new impl());
}
}
- },
+ },
'currentState': {
- get: function() {
+ get: function() {
return this.currentState_;
},
set: function(s) {
@@ -164,14 +164,14 @@ Object.defineProperties(org_apache_flex_core_ContainerBase.prototype, {
'currentStateChange', false, false, this.currentState_, s);
this.currentState_ = s;
this.dispatchEvent(event);
- }
- },
+ }
+ },
'transitions': {
- get: function() {
+ get: function() {
return this.transitions_;
},
set: function(s) {
this.transitions_ = s;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
index ce19b08..2472258 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FilledRectangle.js
@@ -56,15 +56,16 @@ org_apache_flex_core_FilledRectangle.prototype.addedToParent = function() {
Object.defineProperties(org_apache_flex_core_FilledRectangle.prototype, {
'fillColor': {
- get: function() {
+ get: function() {
return this.fillColor_;
},
set: function(value) {
this.fillColor_ = value;
}
- }
+ }
});
+
/**
* @expose
* @param {number} x The left coordinate.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index 75d0e28..813e2ed 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -74,18 +74,18 @@ org_apache_flex_core_FormatBase.prototype._formattedResult = '';
Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
}
- },
+ },
'propertyValue': {
- get: function() {
+ get: function() {
var value = this.strand_[this.propertyName];
return value;
}
- },
+ },
'propertyName': {
- get: function() {
+ get: function() {
if (this._propertyName == null) {
this._propertyName = 'text';
}
@@ -94,9 +94,9 @@ Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
set: function(value) {
this._propertyName = value;
}
- },
+ },
'eventName': {
- get: function() {
+ get: function() {
if (this._eventName == null) {
return this._propertyName + 'Change';
}
@@ -105,10 +105,10 @@ Object.defineProperties(org_apache_flex_core_FormatBase.prototype, {
set: function(value) {
this._eventName = value;
}
- },
+ },
'formattedString': {
- get: function() {
+ get: function() {
return null;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/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 c17fdc5..4c0c680 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -138,22 +138,22 @@ Object.defineProperties(Event.prototype, {
* @return {Object} The wrapping object.
*/
'target': {
- get: function() {
+ get: function() {
var obj = this.target;
if (!obj)
return this.currentTarget;
return obj.flexjs_wrapper;
}
- },
+ },
/**
* Hack to allow event.currentTarget to work
* @return {Object} The wrapping object.
*/
'currentTarget': {
- get: function() {
+ get: function() {
return this.currentTarget.flexjs_wrapper;
}
- }
+ }
});
@@ -165,13 +165,13 @@ Object.defineProperties(goog.events.BrowserEvent.prototype, {
* @return {Object} The wrapping object.
*/
'target': {
- get: function() {
+ get: function() {
// if it is a faked event so just return the target
if (!this.event_) return this.target;
// for true browser events, get the embedded event's target
return this.event_.target;
}
- },
+ },
/**
* Hack to allow event.currentTarget expressions to work
*
@@ -179,11 +179,11 @@ Object.defineProperties(goog.events.BrowserEvent.prototype, {
* @return {?Node|Object} The wrapping object.
*/
'currentTarget': {
- get: function() {
+ get: function() {
// if it is a faked event so just return the currentTarget
if (!this.event_) return this.currentTarget;
// for true browser events, get the embedded event's currentTarget
return this.event_.currentTarget;
}
- }
+ }
});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
index e152f46..5ef42fd 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IChild.js
@@ -33,8 +33,8 @@ org_apache_flex_core_IChild = function() {
Object.defineProperties(org_apache_flex_core_IChild.prototype, {
'parent': {
- get: function() {}
- }
+ get: function() {}
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
index 5358231..a171812 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IContentView.js
@@ -33,23 +33,24 @@ org_apache_flex_core_IContentView = function() {
Object.defineProperties(org_apache_flex_core_IContentView.prototype, {
'x': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'y': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'width': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'height': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- }
+ }
});
+
/**
* Adds a new element to component.
* @param {Object} value The child element being added.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
index a76e7b5..745dcab 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IFormatBead.js
@@ -32,16 +32,16 @@ org_apache_flex_core_IFormatBead = function() {
Object.defineProperties(org_apache_flex_core_IFormatBead.prototype, {
'propertyName': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'eventName': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'formattedString': {
- get: function() {}
- }
+ get: function() {}
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
index 5f19893..91ba413 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ILayoutParent.js
@@ -40,16 +40,16 @@ org_apache_flex_core_ILayoutParent.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_ILayoutParent.prototype, {
'contentView': {
- get: function() {}
- },
+ get: function() {}
+ },
'border': {
- get: function() {}
- },
+ get: function() {}
+ },
'vScrollBar': {
- get: function() {},
+ get: function() {},
set: function(value) {}
- },
+ },
'resizeableView': {
- get: function() {}
- }
+ get: function() {}
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
index 795a66c..04f56c4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IListPresentationModel.js
@@ -37,11 +37,12 @@ org_apache_flex_core_IListPresentationModel = function() {
Object.defineProperties(org_apache_flex_core_IListPresentationModel.prototype, {
'rowHeight': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- }
+ }
});
+
/**
* Metadata
*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
index 6436927..2396799 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectableItemRenderer.js
@@ -37,27 +37,28 @@ org_apache_flex_core_ISelectableItemRenderer = function() {
Object.defineProperties(org_apache_flex_core_ISelectableItemRenderer.prototype, {
'labelField': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- },
+ },
'index': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- },
+ },
'selected': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- },
+ },
'hovered': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- },
+ },
'down': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- }
+ }
});
+
/**
* Metadata
*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
index 237e097..bb0e7f6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ISelectionModel.js
@@ -37,19 +37,20 @@ org_apache_flex_core_ISelectionModel = function() {
Object.defineProperties(org_apache_flex_core_ISelectionModel.prototype, {
'dataProvider': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- },
+ },
'selectedIndex': {
- set: function(value) {},
- get: function() {}
- },
+ set: function(value) {},
+ get: function() {}
+ },
'selectedItem': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- }
+ }
});
+
/**
* Metadata
*
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
index 579123e..503f813 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ITextModel.js
@@ -37,9 +37,9 @@ org_apache_flex_core_ITextModel = function() {
Object.defineProperties(org_apache_flex_core_ITextModel.prototype, {
'text': {
- set: function(value) {},
+ set: function(value) {},
get: function() {}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
index 827859f..e3d2405 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -46,7 +46,7 @@ org_apache_flex_core_ItemRendererClassFactory.
Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
// see if the _strand has an itemRenderer property that isn't empty. if that's
@@ -68,8 +68,8 @@ Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype,
this.createFunction = this.createFromClass;
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/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 9e7b1b7..85410fa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -341,35 +341,35 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
* @param {Array.<Object>} value The list of beads from MXML.
*/
'beads': {
- set: function(value) {
+ set: function(value) {
this.mxmlBeads_ = value;
}
- },
+ },
'numElements': {
- get: function() {
+ get: function() {
var children = this.internalChildren();
return children.length;
- }
- },
+ }
+ },
'parent': {
- get: function() {
+ get: function() {
var p = this.positioner.parentNode;
var wrapper = p.flexjs_wrapper;
return wrapper;
- }
- },
+ }
+ },
'alpha': {
- set: function(alpha) {
+ set: function(alpha) {
this.positioner.style.opacity = alpha;
},
get: function() {
var stralpha = this.positioner.style.opacity;
var alpha = parseFloat(stralpha);
return alpha;
- }
- },
+ }
+ },
'x': {
- set: function(pixels) {
+ set: function(pixels) {
this.positioner.style.position = 'absolute';
this.positioner.style.left = pixels.toString() + 'px';
},
@@ -379,10 +379,10 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
if (isNaN(pixels))
pixels = this.positioner.offsetLeft;
return pixels;
- }
- },
+ }
+ },
'y': {
- set: function(pixels) {
+ set: function(pixels) {
this.positioner.style.position = 'absolute';
this.positioner.style.top = pixels.toString() + 'px';
},
@@ -392,10 +392,10 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
if (isNaN(pixels))
pixels = this.positioner.offsetTop;
return pixels;
- }
- },
+ }
+ },
'width': {
- set: function(pixels) {
+ set: function(pixels) {
this.explicitWidth = pixels;
this.setWidth(pixels);
},
@@ -415,9 +415,9 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
return pixels;
}
- },
+ },
'explicitWidth': {
- set: function(pixels) {
+ set: function(pixels) {
this.explicitWidth_ = pixels;
if (!isNaN(pixels))
this.percentWidth_ = NaN;
@@ -425,9 +425,9 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
get: function() {
return this.explicitWidth_;
}
- },
+ },
'percentWidth': {
- set: function(pixels) {
+ set: function(pixels) {
this.percentWidth_ = pixels;
this.positioner.style.width = pixels.toString() + '%';
if (!isNaN(pixels))
@@ -436,9 +436,9 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
get: function() {
return this.percentWidth_;
}
- },
+ },
'height': {
- set: function(pixels) {
+ set: function(pixels) {
this.explicitHeight = pixels;
this.setHeight(pixels);
},
@@ -457,10 +457,10 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
}
return pixels;
- }
- },
+ }
+ },
'explicitHeight': {
- set: function(pixels) {
+ set: function(pixels) {
this.explicitHeight_ = pixels;
if (!isNaN(pixels))
this.percentHeight_ = NaN;
@@ -468,9 +468,9 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
get: function() {
return this.explicitHeight_;
}
- },
+ },
'percentHeight': {
- set: function(pixels) {
+ set: function(pixels) {
this.percentHeight_ = pixels;
this.positioner.style.height = pixels.toString() + '%';
if (!isNaN(pixels))
@@ -479,9 +479,9 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
get: function() {
return this.percentHeight_;
}
- },
+ },
'id': {
- get: function() {
+ get: function() {
return this.id;
},
set: function(value) {
@@ -491,9 +491,9 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
this.dispatchEvent('idChanged');
}
}
- },
+ },
'className': {
- get: function() {
+ get: function() {
return this.className;
},
set: function(value) {
@@ -502,10 +502,10 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
this.className = value;
this.dispatchEvent('classNameChanged');
}
- }
- },
+ }
+ },
'model': {
- get: function() {
+ get: function() {
if (this.model == null) {
// addbead will set _model
if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {
@@ -519,16 +519,16 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
}
}
return this.model;
- },
+ },
set: function(value) {
if (this.model !== value) {
this.addBead(value);
this.dispatchEvent('modelChanged');
}
- }
- },
+ }
+ },
'style': {
- get: function() {
+ get: function() {
return this.style_;
},
set: function(value) {
@@ -541,10 +541,10 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
goog.bind(this.styleChangeHandler, this));
this.dispatchEvent('stylesChanged');
}
- }
- },
+ }
+ },
'visible': {
- get: function() {
+ get: function() {
return this.positioner.style.display !== 'none';
},
set: function(value) {
@@ -563,13 +563,13 @@ Object.defineProperties(org_apache_flex_core_UIBase.prototype, {
this.dispatchEvent(new org_apache_flex_events_Event('show'));
}
}
- }
- },
+ }
+ },
'topMostEventDispatcher': {
- get: function() {
+ get: function() {
return document.body.flexjs_wrapper;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
index 279e409..92d2054 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ValuesManager.js
@@ -44,11 +44,11 @@ org_apache_flex_core_ValuesManager.prototype.valuesImpl = null;
Object.defineProperties(org_apache_flex_core_ValuesManager.prototype, {
'valuesImpl': {
- get: function() {
+ get: function() {
return org_apache_flex_core_ValuesManager.valuesImpl;
},
set: function(value) {
org_apache_flex_core_ValuesManager.valuesImpl = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/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 c05d0db..bb8cb96 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBase.js
@@ -160,22 +160,22 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
* @return {Array} An array of descriptors.
*/
'MXMLDescriptor': {
- get: function() {
+ get: function() {
return this.MXMLDescriptor;
- }
- },
+ }
+ },
/**
* @return {Object} The application model.
*/
'applicationModel': {
- get: function() {
+ get: function() {
return this.applicationModel;
}
- },
+ },
'states': {
- get: function() {
+ get: function() {
return this.states_;
- },
+ },
set: function(value) {
this.states_ = value;
this.currentState_ = value[0].name;
@@ -189,10 +189,10 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
// TODO: (aharui) check if bead already exists
this.addBead(new impl());
}
- }
- },
+ }
+ },
'currentState': {
- get: function() {
+ get: function() {
return this.currentState_;
},
set: function(value) {
@@ -200,14 +200,14 @@ Object.defineProperties(org_apache_flex_core_ViewBase.prototype, {
'currentStateChange', false, false, this.currentState_, value);
this.currentState_ = value;
this.dispatchEvent(event);
- }
- },
+ }
+ },
'transitions': {
- get: function() {
+ get: function() {
return this.transitions_;
},
set: function(value) {
this.transitions_ = value;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
index a3cbd7f..e1b0014 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Circle.js
@@ -48,13 +48,13 @@ org_apache_flex_core_graphics_Circle.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_Circle.prototype, {
'radius': {
- set: function(v) {
+ set: function(v) {
this.radius_ = v;
- },
+ },
get: function() {
return this.radius_;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
index 1331360..fa4b249 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientBase.js
@@ -66,13 +66,13 @@ org_apache_flex_core_graphics_GradientBase.prototype._rotation = 0.0;
Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
'entries': {
- get: function() {
+ get: function() {
return this._entries;
},
set: function(value) {
this._entries = value;
}
- },
+ },
/**
* By default, the LinearGradientStroke defines a transition
* from left to right across the control.
@@ -82,34 +82,34 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientBase.prototype, {
* @return {number}
*/
'rotation': {
- get: function() {
+ get: function() {
return this._rotation;
},
set: function(value) {
this._rotation = value;
}
- },
+ },
'x': {
- get: function() {
+ get: function() {
return this._x;
},
set: function(value) {
this._x = value;
}
- },
+ },
'y': {
- set: function(value) {
+ set: function(value) {
this._y = value;
- },
+ },
get: function() {
return this._y;
- }
- },
+ }
+ },
'newId': {
- get: function() {
+ get: function() {
return 'gradient' + String(Math.floor((Math.random() * 100000) + 1));
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
index 38458d0..318149d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GradientEntry.js
@@ -57,7 +57,7 @@ org_apache_flex_core_graphics_GradientEntry.prototype._ratio = 0x000000;
Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
'alpha': {
- get: function() {
+ get: function() {
return this._alpha;
},
set: function(value) {
@@ -66,9 +66,9 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
this._alpha = value;
}
}
- },
+ },
'color': {
- get: function() {
+ get: function() {
return this._color;
},
set: function(value) {
@@ -77,17 +77,18 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
this._color = value;
}
}
- },
+ },
'ratio': {
- get: function() {
+ get: function() {
return this._ratio;
},
set: function(value) {
this._ratio = value;
}
- }
+ }
});
+
/**
* @expose
* @param {org_apache_flex_core_graphics_GraphicShape} s
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
index 2fa4201..b442bc0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicShape.js
@@ -110,7 +110,7 @@ Object.defineProperties(org_apache_flex_core_graphics_GradientEntry.prototype, {
set: function(value) {
this.stroke_ = value;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
index ca67517..d3b2160 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
@@ -51,42 +51,46 @@ org_apache_flex_core_graphics_GraphicsContainer.prototype.removeAllElements = fu
Object.defineProperties(org_apache_flex_core_graphics_GraphicsContainer.prototype, {
'numChildren': {
- get: function() {
+ get: function() {
return this.internalChildren().length;
}
- },
+ },
'width': {
- set: function(value) {
- org_apache_flex_utils_Language.superSetter(org_apache_flex_core_graphics_GraphicsContainer, this, 'width', value);
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_core_graphics_GraphicsContainer, this, 'width', value);
this.element.setAttribute('width', String(value) + 'px');
this.element.style.width = String(value) + 'px';
}
- },
+ },
'height': {
- set: function(value) {
- org_apache_flex_utils_Language.superSetter(org_apache_flex_core_graphics_GraphicsContainer, this, 'height', value);
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_core_graphics_GraphicsContainer, this, 'height', value);
this.element.setAttribute('height', String(value) + 'px');
this.element.style.height = String(value) + 'px';
}
- },
+ },
'x': {
- set: function(value) {
- org_apache_flex_core_graphics_GraphicsContainer.base(org_apache_flex_core_graphics_GraphicsContainer, this, 'x', value);
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_core_graphics_GraphicsContainer, this, 'x', value);
this.element.setAttribute('x', String(value) + 'px');
this.element.style.position = 'absolute';
this.element.style.left = String(value) + 'px';
this.element.offsetLeft = value;
- }
- },
- 'y': {
- set: function(value) {
- org_apache_flex_core_graphics_GraphicsContainer.base(this, 'set_y', value);
+ }
+ },
+ 'y': {
+ set: function(value) {
+ org_apache_flex_utils_Language.superSetter(
+ org_apache_flex_core_graphics_GraphicsContainerthis, 'set_y', value);
this.element.setAttribute('y', String(value) + 'px');
this.element.style.position = 'absolute';
this.element.style.top = String(value) + 'px';
this.element.offsetTop = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
index e4472e4..8afd8fa 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/LinearGradient.js
@@ -44,15 +44,14 @@ org_apache_flex_core_graphics_LinearGradient.prototype._scaleX = 1.0;
Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
'scaleX': {
- get: function() {
+ get: function() {
return this._scaleX;
},
- set: function(value) {
+ set: function(value) {
this._scaleX = value;
}
- }
+ }
});
-
/**
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
index 9c8a239..5477a8d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/Path.js
@@ -47,13 +47,13 @@ org_apache_flex_core_graphics_Path.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_LinearGradient.prototype, {
'data': {
- set: function(v) {
+ set: function(v) {
this.data_ = v;
},
get: function() {
return this.data_;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
index d857a5b..cf20ff4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColor.js
@@ -51,21 +51,21 @@ org_apache_flex_core_graphics_SolidColor.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColor.prototype, {
'color': {
- get: function() {
+ get: function() {
return this.color_;
- },
+ },
set: function(value) {
this.color_ = value;
- }
- },
+ }
+ },
'alpha': {
- get: function() {
+ get: function() {
return this.alpha_;
- },
+ },
set: function(value) {
this.alpha_ = value;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
index 0a7e569..7f81326 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/SolidColorStroke.js
@@ -57,29 +57,29 @@ org_apache_flex_core_graphics_SolidColorStroke.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_core_graphics_SolidColorStroke.prototype, {
'color': {
- get: function() {
+ get: function() {
return this.color_;
- },
+ },
set: function(value) {
this.color_ = value;
- }
- },
+ }
+ },
'alpha': {
- get: function() {
+ get: function() {
return this.alpha_;
},
set: function(value) {
this.alpha_ = value;
}
- },
+ },
'weight': {
- get: function() {
+ get: function() {
return this.weight_;
- },
+ },
set: function(value) {
this.weight_ = value;
}
- }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
index 77139da..0e517de 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
@@ -49,12 +49,12 @@ org_apache_flex_createjs_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.text;
},
set: function(value) {
this.element.text = value;
this.element.getStage().update();
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
index 5e7c830..4113d9b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/UIBase.js
@@ -58,31 +58,31 @@ org_apache_flex_createjs_core_UIBase.prototype.createElement =
Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
'x': {
- set: function(pixels) {
+ set: function(pixels) {
this.positioner.x = pixels;
this.element.getStage().update();
- }
- },
+ }
+ },
'y': {
- set: function(pixels) {
+ set: function(pixels) {
this.positioner.y = pixels;
this.element.getStage().update();
- }
- },
+ }
+ },
'width': {
- set: function(pixels) {
+ set: function(pixels) {
this.positioner.width = pixels;
this.element.getStage().update();
- }
- },
+ }
+ },
'height': {
- set: function(pixels) {
+ set: function(pixels) {
this.positioner.height = pixels;
this.element.getStage().update();
- }
- },
+ }
+ },
'id': {
- get: function() {
+ get: function() {
return this.name;
},
set: function(value) {
@@ -91,10 +91,10 @@ Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
this.name = value;
this.dispatchEvent('idChanged');
}
- }
- },
+ }
+ },
'model': {
- get: function() {
+ get: function() {
return this.model;
},
set: function(value) {
@@ -103,7 +103,7 @@ Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
this.dispatchEvent('modelChanged');
}
}
- }
+ }
});
@@ -113,6 +113,7 @@ Object.defineProperties(org_apache_flex_createjs_Label.prototype, {
*/
org_apache_flex_createjs_core_UIBase.prototype.id = null;
+
/**
* @expose
* @type {object}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
index e954d99..6c6499f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Alert.js
@@ -118,26 +118,26 @@ org_apache_flex_html_Alert.show =
Object.defineProperties(org_apache_flex_html_Alert.prototype, {
'title': {
- get: function() {
+ get: function() {
return this.titleBar.title;
- },
+ },
set: function(value) {
this.titleBar.title = value;
- }
- },
+ }
+ },
'text': {
- get: function() {
+ get: function() {
return this.message.text;
- },
+ },
set: function(value) {
this.message.text = value;
- }
- },
+ }
+ },
'flags': {
- get: function() {
+ get: function() {
return this.flags;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
index 942c4bc..ca3fa21 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/CheckBox.js
@@ -63,19 +63,19 @@ org_apache_flex_html_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.childNodes.item(1).nodeValue;
- },
+ },
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
- }
- },
+ }
+ },
'selected': {
- get: function() {
+ get: function() {
return this.element.childNodes.item(0).checked;
- },
+ },
set: function(value) {
this.element.childNodes.item(0).checked = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
index 4c3d771..231e80b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ComboBox.js
@@ -195,9 +195,9 @@ Object.defineProperties(org_apache_flex_html_CheckBox.prototype, {
'text': {
get: function() {
return this.element.childNodes.item(0).value;
- },
- set: function(value) {
+ },
+ set: function(value) {
this.element.childNodes.item(0).value = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
index 37fea09..e630a12 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ImageAndTextButton.js
@@ -64,23 +64,23 @@ org_apache_flex_html_ImageAndTextButton.prototype.createElement =
Object.defineProperties(org_apache_flex_html_ImageAndTextButton.prototype, {
'text': {
- get: function() {
+ get: function() {
return this._text;
- },
+ },
set: function(value) {
this._text = value;
this.setInnerHTML();
- }
- },
+ }
+ },
'image': {
- get: function() {
+ get: function() {
return this._src;
- },
+ },
set: function(value) {
this._src = value;
this.setInnerHTML();
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
index f6b3a1d..7d8e049 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Label.js
@@ -45,19 +45,19 @@ org_apache_flex_html_Label.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_Label.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.innerHTML;
- },
+ },
set: function(value) {
this.element.innerHTML = value;
- }
- },
+ }
+ },
'html': {
- get: function() {
+ get: function() {
return this.element.innerHTML;
- },
+ },
set: function(value) {
this.element.innerHTML = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
index b4ba8da..4df1078 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/MultilineLabel.js
@@ -45,19 +45,19 @@ org_apache_flex_html_MultilineLabel.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_MultilineLabel.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.innerHTML;
- },
+ },
set: function(value) {
this.element.innerHTML = value;
- }
- },
+ }
+ },
'html': {
- get: function() {
+ get: function() {
return this.element.innerHTML;
- },
+ },
set: function(value) {
this.element.innerHTML = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
index d4d20b0..0ee904c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
@@ -140,25 +140,25 @@ org_apache_flex_html_Panel.prototype.addedToParent =
Object.defineProperties(org_apache_flex_html_Panel.prototype, {
'showCloseButton': {
- get: function() {
+ get: function() {
return this.model.showCloseButton;
- },
+ },
set: function(value) {
this.model.showCloseButton = value;
- }
- },
+ }
+ },
'title': {
- get: function() {
+ get: function() {
return this.model.title;
- },
+ },
set: function(value) {
this.model.title = value;
- }
- },
+ }
+ },
'controlBar': {
get: function() {
return this.controlBarChildren;
- },
+ },
set: function(value) {
this.controlBarChildren = value;
@@ -166,6 +166,6 @@ Object.defineProperties(org_apache_flex_html_Panel.prototype, {
var item = value[i];
this.controlBar.addElement(item);
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
index 9989df5..25f3b50 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/RadioButton.js
@@ -89,46 +89,46 @@ org_apache_flex_html_RadioButton.prototype.initSkin =
Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
'id': {
- set: function(value) {
+ set: function(value) {
org_apache_flex_utils_Language.superSetter(org_apache_flex_html_RadioButton, this, 'id', value);
this.labelFor.id = value;
this.input.id = value;
- }
- },
+ }
+ },
'groupName': {
- get: function() {
+ get: function() {
return this.input.name;
- },
+ },
set: function(value) {
this.input.name = value;
- }
- },
+ }
+ },
'text': {
- get: function() {
+ get: function() {
return this.textNode.nodeValue;
- },
+ },
set: function(value) {
this.textNode.nodeValue = value;
- }
- },
+ }
+ },
'selected': {
- get: function() {
+ get: function() {
return this.input.checked;
- },
+ },
set: function(value) {
this.input.checked = value;
- }
- },
+ }
+ },
'value': {
- get: function() {
+ get: function() {
return this.input.value;
- },
+ },
set: function(value) {
this.input.value = value;
- }
- },
+ }
+ },
'selectedValue': {
- get: function() {
+ get: function() {
var buttons, groupName, i, n;
groupName = this.input.name;
@@ -141,7 +141,7 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
}
}
return null;
- },
+ },
set: function(value) {
var buttons, groupName, i, n;
@@ -154,6 +154,6 @@ Object.defineProperties(org_apache_flex_html_RadioButton.prototype, {
break;
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
index cd53fcc..b5d3d59 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Spinner.js
@@ -99,49 +99,49 @@ org_apache_flex_html_Spinner.prototype.set_value =
Object.defineProperties(org_apache_flex_html_Spinner.prototype, {
'minimum': {
- get: function() {
+ get: function() {
return this.minimum_;
- },
+ },
set: function(value) {
if (value != this.minimum_) {
this.minimum_ = value;
this.dispatchEvent('minimumChanged');
}
- }
- },
+ }
+ },
'maximum': {
- get: function() {
+ get: function() {
return this.maximum_;
- },
+ },
set: function(value) {
if (value != this.maximum_) {
this.maximum_ = value;
this.dispatchEvent('maximumChanged');
}
- }
- },
+ }
+ },
'snapInterval': {
get: function() {
return this.snapInterval_;
- },
+ },
set: function(value) {
if (value != this.snapInterval_) {
this.snapInterval_ = value;
this.dispatchEvent('snapIntervalChanged');
}
- }
- },
+ }
+ },
'stepSize': {
get: function() {
return this.stepSize_;
- },
+ },
set: function(value) {
if (value != this.stepSize_) {
this.stepSize_ = value;
this.dispatchEvent('stepSizeChanged');
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
index 3accf39..8209a86 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextArea.js
@@ -55,11 +55,11 @@ org_apache_flex_html_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html_TextArea.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.value;
- },
+ },
set: function(value) {
this.element.value = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
index 0dce8f8..25d16a4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextButton.js
@@ -41,11 +41,11 @@ org_apache_flex_html_TextButton.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.innerHTML;
- },
+ },
set: function(value) {
this.element.innerHTML = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
index b86c315..7dde595 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/TextInput.js
@@ -59,14 +59,14 @@ org_apache_flex_html_TextInput.prototype.createElement = function() {
Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.value;
- },
+ },
set: function(value) {
this.element.value = value;
this.dispatchEvent(new org_apache_flex_events_Event('textChange'));
- }
- },
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
index 4373cef..5fd5cb8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/ToggleTextButton.js
@@ -49,17 +49,17 @@ org_apache_flex_html_ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.innerHTML;
- },
+ },
set: function(value) {
this.element.innerHTML = value;
- }
- },
+ }
+ },
'selected': {
- get: function() {
+ get: function() {
return this.selected_;
- },
+ },
set: function(value) {
if (this.selected_ != value) {
this.selected_ = value;
@@ -74,8 +74,8 @@ Object.defineProperties(org_apache_flex_html_TextButton.prototype, {
this.className = className + this.SELECTED;
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
index 0fa28a7..5efba76 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.js
@@ -46,13 +46,13 @@ org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype.FLEXJS_CLASS
*/
Object.defineProperties(org_apache_flex_html_accessories_NumericOnlyTextInputBead.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
value.addEventListener('keypress', goog.bind(this.validateInput, this));
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
index 6c30516..62dc9ac 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/accessories/PasswordInputBead.js
@@ -42,11 +42,11 @@ org_apache_flex_html_accessories_PasswordInputBead.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_html_accessories_PasswordInputBead.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
value.element.type = 'password';
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
index 5dcdd63..f64fab4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/DataItemRendererFactoryForArrayData.js
@@ -60,7 +60,7 @@ org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.
Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArrayData.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
this.model = value.getBeadByType(
@@ -84,10 +84,10 @@ Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArr
}
this.dataProviderChangedHandler(null);
- }
- },
+ }
+ },
'itemRendererClass': {
- get: function() {
+ get: function() {
if (org_apache_flex_core_ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) {
var c = org_apache_flex_core_ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRenderer');
if (c) {
@@ -95,11 +95,11 @@ Object.defineProperties(org_apache_flex_html_beads_DataItemRendererFactoryForArr
}
}
return this.itemRendererClass_;
- },
+ },
set: function(value) {
this.itemRendererClass_ = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
index 2428fdf..2dfc4d1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/ListView.js
@@ -143,27 +143,27 @@ org_apache_flex_html_beads_ListView.prototype.
Object.defineProperties(org_apache_flex_html_beads_ListView.prototype, {
'contentView': {
- get: function() {
+ get: function() {
return this.dataGroup_;
}
- },
+ },
'border': {
- get: function() {
+ get: function() {
return null;
- }
- },
+ }
+ },
'vScrollBar': {
- get: function() {
+ get: function() {
return null;
- },
+ },
set: function(value) {
- }
- },
+ }
+ },
'resizeableView': {
- get: function() {
+ get: function() {
return this;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
index 3033f6f..f021952 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/TextItemRendererFactoryForArrayData.js
@@ -49,7 +49,7 @@ org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.
Object.defineProperties(org_apache_flex_html_beads_TextItemRendererFactoryForArrayData.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
this.model = value.getBeadByType(
@@ -63,8 +63,8 @@ Object.defineProperties(org_apache_flex_html_beads_TextItemRendererFactoryForArr
goog.bind(this.dataProviderChangedHandler, this));
this.dataProviderChangedHandler(null);
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
index 617adeb..b376715 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ItemRendererMouseController.js
@@ -39,7 +39,7 @@ org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype.FLE
Object.defineProperties(org_apache_flex_html_beads_controllers_ItemRendererMouseController.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEOVER,
@@ -53,8 +53,8 @@ Object.defineProperties(org_apache_flex_html_beads_controllers_ItemRendererMouse
goog.events.listen(this.strand_.element, goog.events.EventType.MOUSEUP,
goog.bind(this.handleMouseUp, this));
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
index 8770bf6..81c8798 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.js
@@ -41,7 +41,7 @@ org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.protot
Object.defineProperties(org_apache_flex_html_beads_controllers_ListSingleSelectionMouseController.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
this.model = value.getBeadByType(
@@ -52,8 +52,8 @@ Object.defineProperties(org_apache_flex_html_beads_controllers_ListSingleSelecti
this.dataGroup = this.listView.dataGroup;
this.dataGroup.addEventListener('selected',
goog.bind(this.selectedHandler, this));
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
index eb58d58..258c34d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SliderMouseController.js
@@ -39,7 +39,7 @@ org_apache_flex_html_beads_controllers_SliderMouseController.prototype.FLEXJS_CL
Object.defineProperties(org_apache_flex_html_beads_controllers_SliderMouseController.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
this.track = this.strand_.getBeadByType(
@@ -52,8 +52,8 @@ Object.defineProperties(org_apache_flex_html_beads_controllers_SliderMouseContro
goog.events.listen(this.thumb.element, goog.events.EventType.MOUSEDOWN,
this.handleThumbDown, false, this);
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
index 340317a..17c9607 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/controllers/SpinnerMouseController.js
@@ -38,7 +38,7 @@ org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype.FLEXJS_C
Object.defineProperties(org_apache_flex_html_beads_controllers_SpinnerMouseController.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
this.incrementButton = this.strand_.incrementButton;
@@ -49,8 +49,8 @@ Object.defineProperties(org_apache_flex_html_beads_controllers_SpinnerMouseContr
goog.events.listen(this.decrementButton.element, goog.events.EventType.CLICK,
goog.bind(this.handleDecrementClick, this));
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
index f02734d..3fc659b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.js
@@ -45,7 +45,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype.FLEXJS_CLASS_
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicLayout.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
if (this.strand_.isWidthSizedToContent() &&
@@ -62,8 +62,8 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicLayout
this.addOtherListeners();
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
index 03359d6..4b0fe39 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualBasicScrollingLayout.js
@@ -42,7 +42,7 @@ org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype.FLEX
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicScrollingLayout.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
this.strand_.addEventListener('childrenAdded',
@@ -50,8 +50,8 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualBasicScroll
this.strand_.addEventListener('layoutNeeded',
goog.bind(this.changeHandler, this));
}
- }
- }
+ }
+ }
});
[46/47] git commit: [flex-asjs] [refs/heads/develop] - defineProps
won't let you just override the setter, you must override both if they exist
Posted by ah...@apache.org.
defineProps won't let you just override the setter, you must override both if they exist
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6008098e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6008098e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6008098e
Branch: refs/heads/develop
Commit: 6008098e895db40fc9084c3f1830bafdf1acda31
Parents: 18355a5
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 15:26:07 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 15:26:07 2015 -0700
----------------------------------------------------------------------
.../FlexJS/src/org/apache/flex/html/DropDownList.js | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6008098e/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
index a8b5ccb..d1f8d11 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/DropDownList.js
@@ -83,6 +83,13 @@ Object.defineProperties(org_apache_flex_html_DropDownList.prototype, {
},
/** @expose */
selectedIndex: {
+ // TODO: (aharui) copied from ListBase because you
+ // can't just override the setter in a defineProps
+ // structure.
+ /** @this {org_apache_flex_html_DropDownList} */
+ get: function() {
+ return this.model.selectedIndex;
+ },
/** @this {org_apache_flex_html_DropDownList} */
set: function(value) {
this.model.selectedIndex = value;
@@ -91,8 +98,15 @@ Object.defineProperties(org_apache_flex_html_DropDownList.prototype, {
},
/** @expose */
selectedItem: {
+ // TODO: (aharui) copied from ListBase because you
+ // can't just override the setter in a defineProps
+ // structure.
+ /** @this {org_apache_flex_html_DropDownList} */
+ get: function() {
+ return this.model.selectedItem;
+ },
/** @this {org_apache_flex_html_DropDownList} */
- get: function(value) {
+ set: function(value) {
this.model.selectedItem = value;
this.element.selectedIndex = this.selectedIndex;
}
[25/47] git commit: [flex-asjs] [refs/heads/develop] - models need to
be IBeadModel
Posted by ah...@apache.org.
models need to be IBeadModel
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ef847bf8
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ef847bf8
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ef847bf8
Branch: refs/heads/develop
Commit: ef847bf8d9b7b42cad3c41997d99533043ca7b47
Parents: 31e219f
Author: Alex Harui <ah...@apache.org>
Authored: Fri Apr 3 16:01:16 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 3 16:01:16 2015 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/html/beads/models/ImageModel.js | 8 +++++---
.../src/org/apache/flex/html/beads/models/RangeModel.js | 4 +++-
2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ef847bf8/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 e5fd9e5..188cc27 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
@@ -14,6 +14,7 @@
goog.provide('org_apache_flex_html_beads_models_ImageModel');
+goog.require('org_apache_flex_core_IBeadModel');
goog.require('org_apache_flex_events_EventDispatcher');
@@ -38,7 +39,8 @@ goog.inherits(
*/
org_apache_flex_html_beads_models_ImageModel.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'ImageModel',
- qName: 'org_apache_flex_html_beads_models_ImageModel'}] };
+ qName: 'org_apache_flex_html_beads_models_ImageModel'}],
+ interfaces: [ org_apache_flex_core_IBeadModel] };
Object.defineProperties(org_apache_flex_html_beads_models_ImageModel.prototype, {
@@ -51,11 +53,11 @@ Object.defineProperties(org_apache_flex_html_beads_models_ImageModel.prototype,
'source': {
/** @this {org_apache_flex_html_beads_models_ImageModel} */
get: function() {
- return this.source;
+ return this.source_;
},
/** @this {org_apache_flex_html_beads_models_ImageModel} */
set: function(value) {
- this.source = value;
+ this.source_ = value;
this.dispatchEvent('sourceChanged');
}
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ef847bf8/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 eb20880..91ed062 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
@@ -14,6 +14,7 @@
goog.provide('org_apache_flex_html_beads_models_RangeModel');
+goog.require('org_apache_flex_core_IBeadModel');
goog.require('org_apache_flex_events_EventDispatcher');
@@ -42,7 +43,8 @@ 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'}] };
+ qName: 'org_apache_flex_html_beads_models_RangeModel'}],
+ interfaces: [ org_apache_flex_core_IBeadModel] };
Object.defineProperties(org_apache_flex_html_beads_models_RangeModel.prototype, {
[41/47] git commit: [flex-asjs] [refs/heads/develop] - make trace
handle multiple args
Posted by ah...@apache.org.
make trace handle multiple args
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f1164264
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f1164264
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f1164264
Branch: refs/heads/develop
Commit: f1164264f6092e806479df8b832a35692894db94
Parents: 61fc278
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 12:12:58 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 12:12:58 2015 -0700
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/flex/utils/Language.js | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f1164264/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 3fdb371..b890dac 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -155,12 +155,16 @@ org_apache_flex_utils_Language.is = function(leftOperand, rightOperand) {
* trace()
*
* @expose
- * @param {string=} opt_value The message to be written to the console.
+ * @param {...Object} var_args The message(s) to be written to the console.
*/
-org_apache_flex_utils_Language.trace = function(opt_value) {
+org_apache_flex_utils_Language.trace = function(var_args) {
var theConsole;
- opt_value = (opt_value !== undefined) ? opt_value : '';
+ var msg = '';
+ for (var i = 0; i < arguments.length; i++) {
+ if (i > 0) msg += ' ';
+ msg += arguments[i];
+ }
theConsole = goog.global.console;
@@ -169,7 +173,7 @@ org_apache_flex_utils_Language.trace = function(opt_value) {
try {
if (theConsole && theConsole.log) {
- theConsole.log(opt_value);
+ theConsole.log(msg);
}
} catch (e) {
// ignore; at least we tried ;-)
[44/47] git commit: [flex-asjs] [refs/heads/develop] - can't use
strand as backing variable for the strand because some strands are also beads
Posted by ah...@apache.org.
can't use strand as backing variable for the strand because some strands are also beads
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/50e5ed84
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/50e5ed84
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/50e5ed84
Branch: refs/heads/develop
Commit: 50e5ed84c5a0f2ac0788af2c17c2bc62b13f1114
Parents: bf7bac3
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 15:24:36 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 15:24:36 2015 -0700
----------------------------------------------------------------------
.../org/apache/flex/core/HTMLElementWrapper.js | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50e5ed84/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 599aa61..85f6b71 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -52,10 +52,10 @@ org_apache_flex_core_HTMLElementWrapper.prototype.element = null;
/**
- * @protected
+ * @private
* @type {Array.<Object>}
*/
-org_apache_flex_core_HTMLElementWrapper.prototype.strand = null;
+org_apache_flex_core_HTMLElementWrapper.prototype.beads_ = null;
/**
@@ -70,11 +70,11 @@ org_apache_flex_core_HTMLElementWrapper.prototype.internalDisplay = 'inline';
* @param {Object} bead The new bead.
*/
org_apache_flex_core_HTMLElementWrapper.prototype.addBead = function(bead) {
- if (!this.strand) {
- this.strand = [];
+ if (!this.beads_) {
+ this.beads_ = [];
}
- this.strand.push(bead);
+ this.beads_.push(bead);
if (org_apache_flex_utils_Language.is(bead, org_apache_flex_core_IBeadModel)) {
this.model = bead;
@@ -93,9 +93,9 @@ org_apache_flex_core_HTMLElementWrapper.prototype.getBeadByType =
function(classOrInterface) {
var bead, i, n;
- n = this.strand.length;
+ n = this.beads_.length;
for (i = 0; i < n; i++) {
- bead = this.strand[i];
+ bead = this.beads_[i];
if (org_apache_flex_utils_Language.is(bead, classOrInterface)) {
return bead;
@@ -124,12 +124,12 @@ Object.defineProperties(org_apache_flex_core_HTMLElementWrapper.prototype, {
org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead) {
var i, n, value;
- n = this.strand.length;
+ n = this.beads_.length;
for (i = 0; i < n; i++) {
- value = this.strand[i];
+ value = this.beads_[i];
if (bead === value) {
- this.strand.splice(i, 1);
+ this.beads_.splice(i, 1);
return bead;
}
[09/47] git commit: [flex-asjs] [refs/heads/develop] - lint
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
index b15aa99..d7ecf91 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalLayout.js
@@ -42,7 +42,7 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype.FLEXJS_CLA
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
if (this.strand_.isWidthSizedToContent() &&
@@ -60,8 +60,8 @@ Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLay
this.addOtherListeners();
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
index 9a969e9..94a102c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
@@ -41,10 +41,10 @@ org_apache_flex_html_beads_layouts_NonVirtualVerticalScrollingLayout.prototype.F
Object.defineProperties(org_apache_flex_html_beads_layouts_NonVirtualVerticalLayout.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
index 0fc0bd6..b8c2be9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.js
@@ -72,15 +72,15 @@ org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
- },
+ },
get: function() {
return this.strand_;
- }
- },
+ }
+ },
'data': {
- set: function(value) {
+ set: function(value) {
org_apache_flex_html_supportClasses_ButtonBarButtonItemRenderer.base(this, 'set_data', value);
@@ -93,6 +93,6 @@ Object.defineProperties(org_apache_flex_html_supportClasses_ButtonBarButtonItemR
else {
this.button.innerHTML = value;
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
index bd9ecf7..e953520 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/DataItemRenderer.js
@@ -71,28 +71,28 @@ org_apache_flex_html_supportClasses_DataItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.prototype, {
'itemRendererParent': {
- get: function() {
+ get: function() {
return this.rendererParent_;
- },
+ },
set: function(value) {
this.rendererParent_ = value;
- }
- },
+ }
+ },
'index': {
- set: function(value) {
+ set: function(value) {
this.index_ = value;
- }
- },
+ }
+ },
'dataField': {
- set: function(value) {
+ set: function(value) {
this.dataField_ = value;
- },
+ },
get: function() {
return this.dataField_;
- }
- },
+ }
+ },
'selected': {
- set: function(value) {
+ set: function(value) {
this.selected_ = value;
if (value) {
@@ -100,10 +100,10 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
} else {
this.backgroundView.style.backgroundColor = null;
}
- }
- },
+ }
+ },
'hovered': {
- set: function(value) {
+ set: function(value) {
this.hovered_ = value;
if (value) {
@@ -115,6 +115,6 @@ Object.defineProperties(org_apache_flex_html_supportClasses_DataItemRenderer.pro
this.backgroundView.style.backgroundColor = null;
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
index a5de69b..3194a72 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/NonVirtualDataGroup.js
@@ -46,17 +46,17 @@ org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype.FLEXJS_CLASS_I
Object.defineProperties(org_apache_flex_html_supportClasses_NonVirtualDataGroup.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
}
- },
- 'numElements': {
- get: function() {
+ },
+ 'numElements': {
+ get: function() {
var n = this.element.childNodes.length;
return n;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
index 4377bad..906a70d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/supportClasses/StringItemRenderer.js
@@ -72,36 +72,36 @@ org_apache_flex_html_supportClasses_StringItemRenderer.
Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.prototype, {
'strand': {
- set: function(value) {
+ set: function(value) {
this.strand_ = value;
- },
+ },
get: function() {
return this.strand_;
- }
- },
+ }
+ },
'itemRendererParent': {
- get: function() {
+ get: function() {
return this.rendererParent_;
- },
+ },
set: function(value) {
this.rendererParent_ = value;
- }
- },
+ }
+ },
'index': {
- set: function(value) {
+ set: function(value) {
this.index_ = value;
- }
- },
+ }
+ },
'text': {
- set: function(value) {
+ set: function(value) {
this.element.innerHTML = value;
- },
+ },
get: function() {
return this.element.innerHTML;
- }
- },
+ }
+ },
'data': {
- set: function(value) {
+ set: function(value) {
org_apache_flex_html_supportClasses_StringItemRenderer.base(this, 'set_data', value);
if (this.labelField) {
@@ -115,9 +115,9 @@ Object.defineProperties(org_apache_flex_html_supportClasses_StringItemRenderer.p
} else {
this.element.innerHTML = String(value);
}
- },
+ },
get: function() {
return this.element.innerHTML;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
index 2e4ec8b..23afeb9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/CheckBox.js
@@ -51,19 +51,19 @@ org_apache_flex_html5_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_CheckBox.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.childNodes.item(1).nodeValue;
- },
+ },
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
- }
- },
- selected: {
- get: function() {
+ }
+ },
+ selected: {
+ get: function() {
return this.element.childNodes.item(0).checked;
- },
- set: function(value) {
+ },
+ set: function(value) {
this.element.childNodes.item(0).checked = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
index 4b36bbc..0075319 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/ComboBox.js
@@ -170,14 +170,14 @@ Object.defineProperties(org_apache_flex_html5_ComboBox.prototype, {
'dataProvider': {
set: function(value) {
this.dataProvider = value;
- }
- },
+ }
+ },
'text': {
- get: function() {
+ get: function() {
return this.element.childNodes.item(0).value;
- },
+ },
set: function(value) {
this.element.childNodes.item(0).value = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
index c4bf43d..1730bf0 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/Label.js
@@ -44,11 +44,11 @@ org_apache_flex_html5_Label.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_Label.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.innerHTML;
- },
- set: function(value) {
+ },
+ set: function(value) {
this.element.innerHTML = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
index de728ce..09e546c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextArea.js
@@ -44,11 +44,11 @@ org_apache_flex_html5_TextArea.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextArea.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.value;
- },
+ },
set: function(value) {
this.element.value = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
index e5226c8..f936ebe 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/TextInput.js
@@ -45,11 +45,11 @@ org_apache_flex_html5_TextInput.prototype.createElement =
Object.defineProperties(org_apache_flex_html5_TextInput.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.value;
- },
+ },
set: function(value) {
this.element.value = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
index cfd452c..6b56abf 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
@@ -63,19 +63,19 @@ org_apache_flex_jquery_CheckBox.prototype.createElement =
Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
'text': {
- get: function() {
+ get: function() {
return this.element.childNodes.item(1).nodeValue;
- },
- set: function(value) {
+ },
+ set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
- }
- },
- 'selected': {
- get: function() {
+ }
+ },
+ 'selected': {
+ get: function() {
return this.element.childNodes.item(0).checked;
- },
- set: function(value) {
+ },
+ set: function(value) {
this.element.childNodes.item(0).checked = value;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
index 648a895..1a2996a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
@@ -101,47 +101,47 @@ org_apache_flex_jquery_RadioButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
'id': {
- set: function(value) {
+ set: function(value) {
org_apache_flex_jquery_RadioButton.base(this, 'set_id', value);
this.labelFor.id = value;
this.labelFor.htmlFor = value;
- }
- },
+ }
+ },
'groupName': {
get: function() {
return this.radioGroupName;
- },
+ },
set: function(value) {
this.radioGroupName = value;
this.input.name = value;
- }
- },
+ }
+ },
'text': {
- get: function() {
+ get: function() {
return this.labelFor.innerHTML;
- },
+ },
set: function(value) {
this.labelFor.innerHTML = value;
- }
- },
- 'selected': {
+ }
+ },
+ 'selected': {
get: function() {
return this.input.checked;
- },
- set: function(value) {
+ },
+ set: function(value) {
this.input.checked = value;
- }
- },
- 'value': {
- get: function() {
+ }
+ },
+ 'value': {
+ get: function() {
return this.input.value;
- },
- set: function(value) {
+ },
+ set: function(value) {
this.input.value = value;
- }
- },
- 'selectedValue': {
- get: function() {
+ }
+ },
+ 'selectedValue': {
+ get: function() {
var buttons, groupName, i, n;
groupName = this.input.name;
@@ -154,8 +154,8 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
}
}
return null;
- },
- set: function(value) {
+ },
+ set: function(value) {
var buttons, groupName, i, n;
groupName = this.input.name;
@@ -167,6 +167,6 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
break;
}
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
index a6cc30c..6030b31 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -94,25 +94,25 @@ org_apache_flex_jquery_ToggleTextButton.prototype.addedToParent =
Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
'id': {
- set: function(value) {
+ set: function(value) {
org_apache_flex_jquery_ToggleTextButton.base(this, 'set_id', value);
this.labelFor.id = value;
this.labelFor.htmlFor = value;
- }
- },
+ }
+ },
'text': {
- get: function() {
+ get: function() {
return this.labelFor.innerHTML;
- },
+ },
set: function(value) {
this.labelFor.innerHTML = value;
- }
- },
- 'selected': {
- get: function() {
+ }
+ },
+ 'selected': {
+ get: function() {
return this.input.selected_;
- },
- set: function(value) {
+ },
+ set: function(value) {
if (this.input.selected_ != value) {
this.inputselected_ = value;
/*
@@ -126,9 +126,9 @@ Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
this.className = className + this.SELECTED;
}
*/
- }
- }
- }
+ }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
index 78972b5..976207c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/maps/google/Map.js
@@ -81,15 +81,15 @@ org_apache_flex_maps_google_Map.prototype.createElement =
Object.defineProperties(org_apache_flex_maps_google_Map.prototype, {
'token': {
- set: function(value) {
+ set: function(value) {
this.token = value;
- }
- },
- 'selectedMarker': {
- get: function() {
+ }
+ },
+ 'selectedMarker': {
+ get: function() {
return this._selectedMarker;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
index 496b681..1e000c3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/BinaryUploader.js
@@ -131,48 +131,48 @@ org_apache_flex_net_BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
'data': {
- get: function() {
+ get: function() {
return this.element.responseText;
- }
- },
+ }
+ },
'binaryData': {
- get: function() {
+ get: function() {
return this.binaryData_;
- },
+ },
set: function(value) {
this.binaryData_ = value;
- }
- },
+ }
+ },
'contentType': {
- get: function() {
+ get: function() {
return this.contentType_;
- },
+ },
set: function(value) {
this.contentType_ = value;
- }
- },
+ }
+ },
'headers': {
- get: function() {
+ get: function() {
if (this.headers_ === 'undefined') {
this.headers_ = [];
}
return this.headers_;
- },
+ },
set: function(value) {
this.headers_ = value;
- }
- },
+ }
+ },
'method': {
- get: function() {
+ get: function() {
return this.method_;
- },
+ },
set: function(value) {
this.method_ = value;
- }
- },
+ }
+ },
'responseHeaders': {
- get: function() {
+ get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
if (typeof this.responseHeaders_ === 'undefined') {
@@ -189,55 +189,55 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
}
}
return this.responseHeaders_;
- }
- },
+ }
+ },
'responseURL': {
- get: function() {
+ get: function() {
return this.responseURL_;
- }
- },
+ }
+ },
'status': {
- get: function() {
+ get: function() {
return this.status_;
- }
- },
+ }
+ },
'timeout': {
- get: function() {
+ get: function() {
return this.timeout_;
- },
+ },
set: function(value) {
this.timeout_ = value;
- }
- },
+ }
+ },
'url': {
- get: function() {
+ get: function() {
return this.url_;
- },
+ },
set: function(value) {
this.url_ = value;
- }
- },
+ }
+ },
'id': {
- get: function() {
+ get: function() {
return this.id;
- },
+ },
set: function(value) {
if (this.id !== value) {
this.id = value;
this.dispatchEvent('idChanged');
}
- }
- },
+ }
+ },
'MXMLDescriptor': {
- get: function() {
+ get: function() {
return null;
- }
- },
+ }
+ },
'MXMLProperties': {
- get: function() {
+ get: function() {
return null;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index 017b8ce..f6b6104 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -137,53 +137,53 @@ org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
'beads': {
- set: function(value) {
+ set: function(value) {
this.beads_ = value;
- }
- },
+ }
+ },
'data': {
- get: function() {
+ get: function() {
return this.element.responseText;
- }
- },
+ }
+ },
'contentData': {
- get: function() {
+ get: function() {
return this.contentData_;
- },
+ },
set: function(value) {
this.contentData_ = value;
- }
- },
+ }
+ },
'contentType': {
- get: function() {
+ get: function() {
return this.contentType_;
- },
+ },
set: function(value) {
this.contentType_ = value;
- }
- },
+ }
+ },
'headers': {
- get: function() {
+ get: function() {
if (this.headers_ === undefined) {
this.headers_ = [];
}
return this.headers_;
- },
+ },
set: function(value) {
this.headers_ = value;
- }
- },
+ }
+ },
'method': {
- get: function() {
+ get: function() {
return this.method_;
- },
+ },
set: function(value) {
this.method_ = value;
- }
- },
+ }
+ },
'responseHeaders': {
- get: function() {
+ get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
if (typeof this.responseHeaders_ === 'undefined') {
@@ -200,57 +200,57 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
}
}
return this.responseHeaders_;
- }
- },
+ }
+ },
'responseURL': {
- get: function() {
+ get: function() {
return this.responseURL_;
- }
- },
+ }
+ },
'status': {
- get: function() {
+ get: function() {
return this.status_;
- }
- },
+ }
+ },
'timeout': {
- get: function() {
+ get: function() {
return this.timeout_;
- },
+ },
set: function(value) {
this.timeout_ = value;
- }
- },
+ }
+ },
'url': {
- get: function() {
+ get: function() {
return this.url_;
- },
+ },
set: function(value) {
this.url_ = value;
- }
- },
+ }
+ },
'id': {
- get: function() {
+ get: function() {
return this.id;
- },
+ },
set: function(value) {
if (this.id !== value) {
this.id = value;
this.dispatchEvent('idChanged');
}
- }
- },
+ }
+ },
'MXMLDescriptor': {
- get: function() {
+ get: function() {
return null;
- }
- },
+ }
+ },
'MXMLProperties': {
- get: function() {
+ get: function() {
return null;
- }
- },
+ }
+ },
'strand': {
- set: function(value) {
+ set: function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
}
@@ -258,8 +258,8 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
for (var i = 0; i < n; i++) {
this.addBead(this.beads_[i]);
}
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
index 3f9acde..8c0ef74 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/BinaryData.js
@@ -48,28 +48,28 @@ org_apache_flex_utils_BinaryData.prototype.FLEXJS_CLASS_INFO =
Object.defineProperties(org_apache_flex_utils_BinaryData.prototype, {
'data': {
- get: function() {
+ get: function() {
return this.data_;
- }
- },
+ }
+ },
'position': {
- get: function() {
+ get: function() {
return this.position_;
- },
+ },
set: function(value) {
this.position_ = value;
- }
- },
+ }
+ },
'length': {
- get: function() {
+ get: function() {
return this.data_.byteLength;
- }
- },
+ }
+ },
'bytesAvailable': {
- get: function() {
+ get: function() {
return this.data_.byteLength - this.position_;
- }
- }
+ }
+ }
});
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/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 6558657..d96a6f8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -254,13 +254,13 @@ org_apache_flex_utils_Language.postdecrement = function(obj, prop) {
*
* @expose
* @param {Object} clazz The class.
- * @param {Object} pThis The this pointer.
+ * @param {Object} pthis The this pointer.
* @param {string} prop The name of the getter.
* @return {number}
*/
org_apache_flex_utils_Language.superGetter = function(clazz, pthis, prop) {
var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
- return superdesc.get.call(pthis);
+ return superdesc.get.call(pthis);
};
@@ -269,12 +269,12 @@ org_apache_flex_utils_Language.superGetter = function(clazz, pthis, prop) {
*
* @expose
* @param {Object} clazz The class.
- * @param {Object} pThis The this pointer.
+ * @param {Object} pthis The this pointer.
* @param {string} prop The name of the getter.
* @param {Object} value The value.
* @return {number}
*/
org_apache_flex_utils_Language.superSetter = function(clazz, pthis, prop, value) {
var superdesc = Object.getOwnPropertyDescriptor(clazz.superClass_, prop);
- return superdesc.set.apply(pthis, [value]);
+ return superdesc.set.apply(pthis, [value]);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/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 eb9f090..a254a35 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/MXMLDataInterpreter.js
@@ -80,9 +80,9 @@ org_apache_flex_utils_MXMLDataInterpreter.generateMXMLObject =
id = value;
}
else if (name === 'id') {
- try {
+ try {
comp.id = value;
- } catch (e) {};
+ } catch (e) {}
}
else {
comp[name] = value;
@@ -190,7 +190,7 @@ org_apache_flex_utils_MXMLDataInterpreter.initializeStrandBasedObject =
} else if (name === 'id') {
try {
comp.id = value;
- } catch (e) {};
+ } catch (e) {}
} else {
comp[name] = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7ab51ec4/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
index 455020c..be43517 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Timer.js
@@ -108,30 +108,30 @@ org_apache_flex_utils_Timer.prototype.timerHandler =
};
Object.defineProperties(org_apache_flex_utils_Timer.prototype, {
- "currentCount": {
+ 'currentCount': {
get: function() {
return this._currentCount;
- }
- },
- "running": {
+ }
+ },
+ 'running': {
get: function() {
return this.timerInterval !== -1;
- }
- },
- "delay": {
- get: function() {
+ }
+ },
+ 'delay': {
+ get: function() {
return this._delay;
- },
+ },
set: function(value) {
this._delay = value;
- }
- },
- "repeatCount": {
- get: function() {
+ }
+ },
+ 'repeatCount': {
+ get: function() {
return this._repeatCount;
- },
+ },
set: function(value) {
this._repeatCount = value;
- }
- }
+ }
+ }
});