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 <[email protected]> Authored: Thu Mar 12 23:09:20 2015 -0700 Committer: Alex Harui <[email protected]> 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)); } - } - } + } + } });
