You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/01/22 14:07:05 UTC

svn commit: r1436890 - in /flex/asjs/branches/develop/frameworks/js/VanillaSDK: flash/ flash/events/ flash/events/MouseEvent.js spark/ spark/components/ spark/components/Button.js spark/components/Group.js spark/components/Label.js

Author: erikdebruin
Date: Tue Jan 22 13:07:04 2013
New Revision: 1436890

URL: http://svn.apache.org/viewvc?rev=1436890&view=rev
Log:
- initial commit of VanillaSDK (very much alpha-ware ;-))

Added:
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/events/
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/events/MouseEvent.js   (with props)
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Button.js   (with props)
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Group.js   (with props)
    flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Label.js   (with props)

Added: flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/events/MouseEvent.js
URL: http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/events/MouseEvent.js?rev=1436890&view=auto
==============================================================================
--- flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/events/MouseEvent.js (added)
+++ flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/events/MouseEvent.js Tue Jan 22 13:07:04 2013
@@ -0,0 +1,7 @@
+goog.provide('flash.events.MouseEvent');
+
+/**
+ * @constructor
+ */
+flash.events.MouseEvent = function() {
+}

Propchange: flex/asjs/branches/develop/frameworks/js/VanillaSDK/flash/events/MouseEvent.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Button.js
URL: http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Button.js?rev=1436890&view=auto
==============================================================================
--- flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Button.js (added)
+++ flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Button.js Tue Jan 22 13:07:04 2013
@@ -0,0 +1,18 @@
+goog.provide('spark.components.Button');
+
+goog.require("goog.events");
+
+/**
+ * @constructor
+ */
+spark.components.Button = function() {
+	this.element = document.createElement('input');
+	this.element.type = "button";
+	this.element.value = "Click me";
+	
+	document.body.appendChild(this.element);
+}
+
+spark.components.Button.prototype.addEventListener = function(type, handler) {
+	goog.events.listen(this.element, goog.events.EventType.CLICK, handler, false, this);
+};
\ No newline at end of file

Propchange: flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Button.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Group.js
URL: http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Group.js?rev=1436890&view=auto
==============================================================================
--- flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Group.js (added)
+++ flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Group.js Tue Jan 22 13:07:04 2013
@@ -0,0 +1,11 @@
+goog.provide('spark.components.Group');
+
+/**
+ * @constructor
+ */
+spark.components.Group = function() {
+}
+
+spark.components.Group.prototype.addElement = function(object) {
+	console.log(object);
+};
\ No newline at end of file

Propchange: flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Group.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Label.js
URL: http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Label.js?rev=1436890&view=auto
==============================================================================
--- flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Label.js (added)
+++ flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Label.js Tue Jan 22 13:07:04 2013
@@ -0,0 +1,11 @@
+goog.provide('spark.components.Label');
+
+/**
+ * @constructor
+ */
+spark.components.Label = function() {
+	this.element = document.createElement('div');
+	this.element.innerHTML = "Hello World";
+	
+	document.body.appendChild(this.element);
+}

Propchange: flex/asjs/branches/develop/frameworks/js/VanillaSDK/spark/components/Label.js
------------------------------------------------------------------------------
    svn:eol-style = native