flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [1/5] git commit: [flex-asjs] [refs/heads/develop] - FlexJS interface support is now implemented. Changing the framework in order to make the 'asjs' examples work again.
Date Wed, 06 Nov 2013 09:05:26 GMT
Updated Branches:
  refs/heads/develop bbba578de -> 9250591b6


FlexJS interface support is now implemented. Changing the framework in order to make the 'asjs'
examples work again.

These changes are for the 'DataBindingTest' example.

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 50ee92e772f95c590392cde24235aa8c1abb1769
Parents: bbba578
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Wed Nov 6 06:40:13 2013 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Wed Nov 6 06:40:13 2013 +0100

----------------------------------------------------------------------
 .../js/FlexJS/src/org/apache/flex/core/IBead.js | 41 +++++++++++++++++++
 .../src/org/apache/flex/core/IBeadLayout.js     | 25 ++++++++----
 .../src/org/apache/flex/core/IDocument.js       | 42 ++++++++++++++++++++
 .../beads/layouts/NonVirtualVerticalLayout.js   | 17 +++++---
 4 files changed, 112 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50ee92e7/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
new file mode 100644
index 0000000..6b9e016
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IBead.js
@@ -0,0 +1,41 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*jshint globalstrict: true, indent: 2, maxlen: 80, strict: true,
+    white: false */
+/*global goog, org */
+
+'use strict';
+
+goog.provide('org.apache.flex.core.IBead');
+
+
+
+/**
+ * IBead
+ *
+ * @interface
+ */
+org.apache.flex.core.IBead = function() {
+};
+
+
+/**
+ * set_strand()
+ *
+ * @expose
+ * @param {Object} value The new host.
+ */
+org.apache.flex.core.IBead.prototype.set_strand =
+    function(value) {};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50ee92e7/frameworks/js/FlexJS/src/org/apache/flex/core/IBeadLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IBeadLayout.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IBeadLayout.js
index 8c990a3..0e27fb5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/IBeadLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IBeadLayout.js
@@ -12,17 +12,28 @@
  * limitations under the License.
  */
 
+/*jshint globalstrict: true, indent: 2, maxlen: 80, strict: true,
+    white: false */
+/*global goog, org */
+
+'use strict';
+
 goog.provide('org.apache.flex.core.IBeadLayout');
 
-goog.require('org.apache.flex.events.EventDispatcher');
+goog.require('org.apache.flex.core.IBead');
+
+
 
 /**
- * @constructor
- * @extends {org.apache.flex.events.EventDispatcher}
+ * @interface
+ * @implements {org.apache.flex.core.IBead}
  */
 org.apache.flex.core.IBeadLayout = function() {
-  goog.base(this);
 };
-goog.inherits(
-  org.apache.flex.core.IBeadLayout,
-  org.apache.flex.events.EventDispatcher);
+
+
+/**
+ * @const
+ */
+org.apache.flex.core.IBeadLayout.prototype.AFJS_INTERFACES =
+    [org.apache.flex.core.IBead];

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50ee92e7/frameworks/js/FlexJS/src/org/apache/flex/core/IDocument.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/IDocument.js b/frameworks/js/FlexJS/src/org/apache/flex/core/IDocument.js
new file mode 100644
index 0000000..9f44ef2
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/IDocument.js
@@ -0,0 +1,42 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*jshint globalstrict: true, indent: 2, maxlen: 80, strict: true,
+    white: false */
+/*global goog, org */
+
+'use strict';
+
+goog.provide('org.apache.flex.core.IDocument');
+
+
+
+/**
+ * IDocument
+ *
+ * @interface
+ */
+org.apache.flex.core.IDocument = function() {
+};
+
+
+/**
+ * setDocument()
+ *
+ * @expose
+ * @param {Object} document The DOM document element.
+ * @param {string=} opt_id The id (optional).
+ */
+org.apache.flex.core.IDocument.prototype.setDocument =
+    function(document, opt_id) {};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50ee92e7/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/layouts/NonVirtualVerticalLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/layouts/NonVirtualVerticalLayout.js
b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/layouts/NonVirtualVerticalLayout.js
index 42dd052..46ea9ac 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/layouts/NonVirtualVerticalLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/layouts/NonVirtualVerticalLayout.js
@@ -12,22 +12,26 @@
  * limitations under the License.
  */
 
+/*jshint globalstrict: true, indent: 2, maxlen: 80, strict: true,
+    white: false */
+/*global goog, org */
+
+'use strict';
+
 goog.provide('org.apache.flex.html.staticControls.beads.layouts.NonVirtualVerticalLayout');
 
 goog.require('org.apache.flex.core.IBeadLayout');
 
 /**
  * @constructor
- * @extends {org.apache.flex.core.IBeadLayout}
+ * @implements {org.apache.flex.core.IBeadLayout}
  */
 org.apache.flex.html.staticControls.beads.layouts.NonVirtualVerticalLayout =
     function() {
-  goog.base(this);
   this.strand_ = null;
   this.className = 'NonVirtualVerticalLayout';
 };
-goog.inherits(org.apache.flex.html.staticControls.beads.layouts.ButtonBarLayout,
-org.apache.flex.core.IBeadLayout);
+
 
 /**
  * @expose
@@ -55,10 +59,11 @@ org.apache.flex.html.staticControls.beads.layouts.NonVirtualVerticalLayout.proto
   n = children.length;
   for (i = 0; i < n; i++)
   {
-    if (children[i].style.display == 'none')
+    if (children[i].style.display === 'none') {
       children[i].lastDisplay_ = 'block';
-    else
+    } else {
       children[i].style.display = 'block';
+    }
   }
 };
 


Mime
View raw message