|
@@ -2,11 +2,11 @@
|
|
* @author mrdoob / http://mrdoob.com/
|
|
* @author mrdoob / http://mrdoob.com/
|
|
*/
|
|
*/
|
|
|
|
|
|
-var UIElement = function ( dom ) {
|
|
|
|
|
|
+function UIElement( dom ) {
|
|
|
|
|
|
this.dom = dom;
|
|
this.dom = dom;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIElement.prototype = {
|
|
UIElement.prototype = {
|
|
|
|
|
|
@@ -172,7 +172,7 @@ events.forEach( function ( event ) {
|
|
|
|
|
|
// UISpan
|
|
// UISpan
|
|
|
|
|
|
-var UISpan = function () {
|
|
|
|
|
|
+function UISpan() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -180,14 +180,14 @@ var UISpan = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UISpan.prototype = Object.create( UIElement.prototype );
|
|
UISpan.prototype = Object.create( UIElement.prototype );
|
|
UISpan.prototype.constructor = UISpan;
|
|
UISpan.prototype.constructor = UISpan;
|
|
|
|
|
|
// UIDiv
|
|
// UIDiv
|
|
|
|
|
|
-var UIDiv = function () {
|
|
|
|
|
|
+function UIDiv() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -195,14 +195,14 @@ var UIDiv = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIDiv.prototype = Object.create( UIElement.prototype );
|
|
UIDiv.prototype = Object.create( UIElement.prototype );
|
|
UIDiv.prototype.constructor = UIDiv;
|
|
UIDiv.prototype.constructor = UIDiv;
|
|
|
|
|
|
// UIRow
|
|
// UIRow
|
|
|
|
|
|
-var UIRow = function () {
|
|
|
|
|
|
+function UIRow() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -213,14 +213,14 @@ var UIRow = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIRow.prototype = Object.create( UIElement.prototype );
|
|
UIRow.prototype = Object.create( UIElement.prototype );
|
|
UIRow.prototype.constructor = UIRow;
|
|
UIRow.prototype.constructor = UIRow;
|
|
|
|
|
|
// UIPanel
|
|
// UIPanel
|
|
|
|
|
|
-var UIPanel = function () {
|
|
|
|
|
|
+function UIPanel() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -231,14 +231,14 @@ var UIPanel = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIPanel.prototype = Object.create( UIElement.prototype );
|
|
UIPanel.prototype = Object.create( UIElement.prototype );
|
|
UIPanel.prototype.constructor = UIPanel;
|
|
UIPanel.prototype.constructor = UIPanel;
|
|
|
|
|
|
// UIText
|
|
// UIText
|
|
|
|
|
|
-var UIText = function ( text ) {
|
|
|
|
|
|
+function UIText( text ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -253,7 +253,7 @@ var UIText = function ( text ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIText.prototype = Object.create( UIElement.prototype );
|
|
UIText.prototype = Object.create( UIElement.prototype );
|
|
UIText.prototype.constructor = UIText;
|
|
UIText.prototype.constructor = UIText;
|
|
@@ -279,7 +279,7 @@ UIText.prototype.setValue = function ( value ) {
|
|
|
|
|
|
// UIInput
|
|
// UIInput
|
|
|
|
|
|
-var UIInput = function ( text ) {
|
|
|
|
|
|
+function UIInput( text ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -299,7 +299,7 @@ var UIInput = function ( text ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIInput.prototype = Object.create( UIElement.prototype );
|
|
UIInput.prototype = Object.create( UIElement.prototype );
|
|
UIInput.prototype.constructor = UIInput;
|
|
UIInput.prototype.constructor = UIInput;
|
|
@@ -321,7 +321,7 @@ UIInput.prototype.setValue = function ( value ) {
|
|
|
|
|
|
// UITextArea
|
|
// UITextArea
|
|
|
|
|
|
-var UITextArea = function () {
|
|
|
|
|
|
+function UITextArea() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -352,7 +352,7 @@ var UITextArea = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UITextArea.prototype = Object.create( UIElement.prototype );
|
|
UITextArea.prototype = Object.create( UIElement.prototype );
|
|
UITextArea.prototype.constructor = UITextArea;
|
|
UITextArea.prototype.constructor = UITextArea;
|
|
@@ -374,7 +374,7 @@ UITextArea.prototype.setValue = function ( value ) {
|
|
|
|
|
|
// UISelect
|
|
// UISelect
|
|
|
|
|
|
-var UISelect = function () {
|
|
|
|
|
|
+function UISelect() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -386,7 +386,7 @@ var UISelect = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UISelect.prototype = Object.create( UIElement.prototype );
|
|
UISelect.prototype = Object.create( UIElement.prototype );
|
|
UISelect.prototype.constructor = UISelect;
|
|
UISelect.prototype.constructor = UISelect;
|
|
@@ -446,7 +446,7 @@ UISelect.prototype.setValue = function ( value ) {
|
|
|
|
|
|
// UICheckbox
|
|
// UICheckbox
|
|
|
|
|
|
-var UICheckbox = function ( boolean ) {
|
|
|
|
|
|
+function UICheckbox( boolean ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -459,7 +459,7 @@ var UICheckbox = function ( boolean ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UICheckbox.prototype = Object.create( UIElement.prototype );
|
|
UICheckbox.prototype = Object.create( UIElement.prototype );
|
|
UICheckbox.prototype.constructor = UICheckbox;
|
|
UICheckbox.prototype.constructor = UICheckbox;
|
|
@@ -485,7 +485,7 @@ UICheckbox.prototype.setValue = function ( value ) {
|
|
|
|
|
|
// UIColor
|
|
// UIColor
|
|
|
|
|
|
-var UIColor = function () {
|
|
|
|
|
|
+function UIColor() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -508,7 +508,7 @@ var UIColor = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIColor.prototype = Object.create( UIElement.prototype );
|
|
UIColor.prototype = Object.create( UIElement.prototype );
|
|
UIColor.prototype.constructor = UIColor;
|
|
UIColor.prototype.constructor = UIColor;
|
|
@@ -544,7 +544,7 @@ UIColor.prototype.setHexValue = function ( hex ) {
|
|
|
|
|
|
// UINumber
|
|
// UINumber
|
|
|
|
|
|
-var UINumber = function ( number ) {
|
|
|
|
|
|
+function UINumber( number ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -735,7 +735,7 @@ var UINumber = function ( number ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UINumber.prototype = Object.create( UIElement.prototype );
|
|
UINumber.prototype = Object.create( UIElement.prototype );
|
|
UINumber.prototype.constructor = UINumber;
|
|
UINumber.prototype.constructor = UINumber;
|
|
@@ -809,7 +809,7 @@ UINumber.prototype.setUnit = function ( unit ) {
|
|
|
|
|
|
// UIInteger
|
|
// UIInteger
|
|
|
|
|
|
-var UIInteger = function ( number ) {
|
|
|
|
|
|
+function UIInteger( number ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -947,7 +947,7 @@ var UIInteger = function ( number ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIInteger.prototype = Object.create( UIElement.prototype );
|
|
UIInteger.prototype = Object.create( UIElement.prototype );
|
|
UIInteger.prototype.constructor = UIInteger;
|
|
UIInteger.prototype.constructor = UIInteger;
|
|
@@ -1001,7 +1001,7 @@ UIInteger.prototype.setRange = function ( min, max ) {
|
|
|
|
|
|
// UIBreak
|
|
// UIBreak
|
|
|
|
|
|
-var UIBreak = function () {
|
|
|
|
|
|
+function UIBreak() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -1012,7 +1012,7 @@ var UIBreak = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIBreak.prototype = Object.create( UIElement.prototype );
|
|
UIBreak.prototype = Object.create( UIElement.prototype );
|
|
UIBreak.prototype.constructor = UIBreak;
|
|
UIBreak.prototype.constructor = UIBreak;
|
|
@@ -1020,7 +1020,7 @@ UIBreak.prototype.constructor = UIBreak;
|
|
|
|
|
|
// UIHorizontalRule
|
|
// UIHorizontalRule
|
|
|
|
|
|
-var UIHorizontalRule = function () {
|
|
|
|
|
|
+function UIHorizontalRule() {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -1031,7 +1031,7 @@ var UIHorizontalRule = function () {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIHorizontalRule.prototype = Object.create( UIElement.prototype );
|
|
UIHorizontalRule.prototype = Object.create( UIElement.prototype );
|
|
UIHorizontalRule.prototype.constructor = UIHorizontalRule;
|
|
UIHorizontalRule.prototype.constructor = UIHorizontalRule;
|
|
@@ -1039,7 +1039,7 @@ UIHorizontalRule.prototype.constructor = UIHorizontalRule;
|
|
|
|
|
|
// UIButton
|
|
// UIButton
|
|
|
|
|
|
-var UIButton = function ( value ) {
|
|
|
|
|
|
+function UIButton( value ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -1051,7 +1051,7 @@ var UIButton = function ( value ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIButton.prototype = Object.create( UIElement.prototype );
|
|
UIButton.prototype = Object.create( UIElement.prototype );
|
|
UIButton.prototype.constructor = UIButton;
|
|
UIButton.prototype.constructor = UIButton;
|
|
@@ -1067,7 +1067,7 @@ UIButton.prototype.setLabel = function ( value ) {
|
|
|
|
|
|
// UITabbedPanel
|
|
// UITabbedPanel
|
|
|
|
|
|
-var UITabbedPanel = function ( ) {
|
|
|
|
|
|
+function UITabbedPanel( ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -1093,7 +1093,7 @@ var UITabbedPanel = function ( ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UITabbedPanel.prototype = Object.create( UIElement.prototype );
|
|
UITabbedPanel.prototype = Object.create( UIElement.prototype );
|
|
UITabbedPanel.prototype.constructor = UITabbedPanel;
|
|
UITabbedPanel.prototype.constructor = UITabbedPanel;
|
|
@@ -1202,7 +1202,7 @@ UITabbedPanel.Tab.prototype = Object.create( UIText.prototype );
|
|
UITabbedPanel.Tab.prototype.constructor = UITabbedPanel.Tab;
|
|
UITabbedPanel.Tab.prototype.constructor = UITabbedPanel.Tab;
|
|
|
|
|
|
// UIListbox
|
|
// UIListbox
|
|
-var UIListbox = function ( ) {
|
|
|
|
|
|
+function UIListbox( ) {
|
|
|
|
|
|
UIElement.call( this );
|
|
UIElement.call( this );
|
|
|
|
|
|
@@ -1218,7 +1218,7 @@ var UIListbox = function ( ) {
|
|
|
|
|
|
return this;
|
|
return this;
|
|
|
|
|
|
-};
|
|
|
|
|
|
+}
|
|
|
|
|
|
UIListbox.prototype = Object.create( UIElement.prototype );
|
|
UIListbox.prototype = Object.create( UIElement.prototype );
|
|
UIListbox.prototype.constructor = UIListbox;
|
|
UIListbox.prototype.constructor = UIListbox;
|