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; }
