flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Created SimpleAlert.js and modified ActionScript version to expose only the public static show() function to match the JavaScript version.
Date Wed, 05 Jun 2013 17:47:04 GMT
Updated Branches:
  refs/heads/develop 03b797f6e -> e9451a237


Created SimpleAlert.js and modified ActionScript version to expose only the public static
show() function to match the JavaScript version.


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

Branch: refs/heads/develop
Commit: e9451a237be0dc6125bfdda03ca0119a087b705c
Parents: 03b797f
Author: Peter Ent <pent@apache.org>
Authored: Wed Jun 5 13:46:52 2013 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Wed Jun 5 13:46:52 2013 -0400

----------------------------------------------------------------------
 .../apache/flex/html/staticControls/SimpleAlert.as |    8 ++--
 .../apache/flex/html/staticControls/SimpleAlert.js |   35 +++++++++++++++
 2 files changed, 39 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e9451a23/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as b/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
index 444253a..4482e2c 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/SimpleAlert.as
@@ -42,20 +42,20 @@ package org.apache.flex.html.staticControls
 				addBead(new (ValuesManager.valuesImpl.getValue(this, "iAlertModel")) as IBead);
 		}
 		
-		public function get message():String
+		private function get message():String
 		{
 			return IAlertModel(model).message;
 		}
-		public function set message(value:String):void
+		private function set message(value:String):void
 		{
 			IAlertModel(model).message = value;
 		}
 		
-		public function get htmlMessage():String
+		private function get htmlMessage():String
 		{
 			return IAlertModel(model).htmlMessage;
 		}
-		public function set htmlMessage(value:String):void
+		private function set htmlMessage(value:String):void
 		{
 			IAlertModel(model).htmlMessage = value;
 		}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e9451a23/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js
new file mode 100644
index 0000000..885d059
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js
@@ -0,0 +1,35 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+goog.provide('org.apache.flex.html.staticControls.SimpleAlert');
+
+goog.require('org.apache.flex.core.UIBase');
+
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.UIBase}
+ */
+org.apache.flex.html.staticControls.SimpleAlert = function() {
+  goog.base(this);
+  
+};
+goog.inherits(org.apache.flex.html.staticControls.SimpleAlert,
+    org.apache.flex.core.UIBase);
+
+
+org.apache.flex.html.staticControls.SimpleAlert.show = function( message, host ) {
+
+	alert(message);
+}
\ No newline at end of file


Mime
View raw message