You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/09/25 18:04:05 UTC
[23/50] git commit: [flex-asjs] [refs/heads/develop] - don't assume
model and view
don't assume model and view
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7d679ef0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7d679ef0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7d679ef0
Branch: refs/heads/develop
Commit: 7d679ef0eb6bdd541cc48b6128deacc40d6cac0b
Parents: 7dfcd3d
Author: Alex Harui <ah...@apache.org>
Authored: Tue Sep 23 09:41:17 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 23 15:01:16 2014 -0700
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 30 ++++++++++++++------
1 file changed, 22 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7d679ef0/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 001eddc..e5b3c61 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/Panel.js
@@ -27,8 +27,6 @@ goog.require('org.apache.flex.html.beads.models.PanelModel');
* @extends {org.apache.flex.html.Container}
*/
org.apache.flex.html.Panel = function() {
- this.model =
- new org.apache.flex.html.beads.models.PanelModel();
org.apache.flex.html.Panel.base(this, 'constructor');
};
goog.inherits(org.apache.flex.html.Panel,
@@ -123,9 +121,6 @@ org.apache.flex.html.Panel.prototype.createElement =
this.contentArea.flexjs_wrapper = this;
this.element.appendChild(this.contentArea);
- this.panelView = new org.apache.flex.html.beads.PanelView();
- this.panelView.set_strand(this);
-
this.positioner = this.element;
this.element.flexjs_wrapper = this;
@@ -144,10 +139,29 @@ org.apache.flex.html.Panel.prototype.addedToParent =
/**
* @expose
+ * @return {boolean} The showCloseButton getter.
+ */
+org.apache.flex.html.Panel.prototype.get_showCloseButton = function() {
+ return this.model.get_showCloseButton();
+};
+
+
+/**
+ * @expose
+ * @param {boolean} value The showCloseButton setter.
+ */
+org.apache.flex.html.Panel.prototype.set_showCloseButton =
+ function(value) {
+ this.model.set_showCloseButton(value);
+};
+
+
+/**
+ * @expose
* @return {string} The title getter.
*/
org.apache.flex.html.Panel.prototype.get_title = function() {
- return this.model.get_title();
+ return this.model.get_title();
};
@@ -156,8 +170,8 @@ org.apache.flex.html.Panel.prototype.get_title = function() {
* @param {string} value The title setter.
*/
org.apache.flex.html.Panel.prototype.set_title =
- function(value) {
- this.model.set_title(value);
+function(value) {
+ this.model.set_title(value);
};