flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [02/17] git commit: [flex-asjs] [refs/heads/develop] - Fixed 'tabs instead of spaces'.
Date Thu, 07 Nov 2013 13:58:21 GMT
Fixed 'tabs instead of spaces'.

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/9f8fbbf7
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9f8fbbf7
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9f8fbbf7

Branch: refs/heads/develop
Commit: 9f8fbbf7468eb8157b75d28ecd7ad24df5d2f984
Parents: 02e1d15
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Thu Nov 7 13:01:44 2013 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Thu Nov 7 13:01:44 2013 +0100

----------------------------------------------------------------------
 .../flex/jquery/staticControls/RadioButton.js   | 32 ++++-----
 .../flex/svg/staticControls/TextButton.js       |  2 +-
 .../src/org/apache/flex/utils/Language.js       | 76 ++++++++++----------
 3 files changed, 55 insertions(+), 55 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f8fbbf7/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
b/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
index aa9726a..e699a95 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
@@ -138,27 +138,27 @@ function(value) {
  * application has finished initializing, the groups are given their buttonset().
  */
 
-	this.radioGroupName = value;
+  this.radioGroupName = value;
 
-	this.element.name = value;
+  this.element.name = value;
 
-	var div;
+  var div;
 
-	if (org.apache.flex.jquery.staticControls.RadioButton.groups[value]) {
-		div = org.apache.flex.jquery.staticControls.RadioButton.groups[value];
-		div.appendChild(this.element);
-		div.appendChild(this.labelFor);
-	}
-	else {
-		div = document.createElement('div');
-		div.id = value;
-		div.appendChild(this.element);
-		div.appendChild(this.labelFor);
+  if (org.apache.flex.jquery.staticControls.RadioButton.groups[value]) {
+    div = org.apache.flex.jquery.staticControls.RadioButton.groups[value];
+    div.appendChild(this.element);
+    div.appendChild(this.labelFor);
+  }
+  else {
+    div = document.createElement('div');
+    div.id = value;
+    div.appendChild(this.element);
+    div.appendChild(this.labelFor);
 
-		org.apache.flex.jquery.staticControls.RadioButton.groups[String(value)] = div;
-	}
+    org.apache.flex.jquery.staticControls.RadioButton.groups[String(value)] = div;
+  }
 
-	this.positioner = div;
+  this.positioner = div;
 };
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f8fbbf7/frameworks/js/FlexJS/src/org/apache/flex/svg/staticControls/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/svg/staticControls/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/svg/staticControls/TextButton.js
index e8c6f92..6b447fe 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/svg/staticControls/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/svg/staticControls/TextButton.js
@@ -36,7 +36,7 @@ org.apache.flex.svg.staticControls.TextButton.prototype.addToParent =
     function(p) {
     this.element = document.createElement('embed');
     this.element.setAttribute('src', 'skins/TextButtonSkin.svg');
-	this.element.setAttribute('type', 'button');
+  this.element.setAttribute('type', 'button');
 
     p.appendChild(this.element);
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f8fbbf7/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
index 2d46c7c..41112b2 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -35,8 +35,8 @@ org.apache.flex.utils.Language = function() {
  *     of the type of the righthand operand, otherwise null.
  */
 org.apache.flex.utils.Language.as = function(leftOperand, rightOperand) {
-	return (org.apache.flex.utils.Language.is(leftOperand, rightOperand)) ?
-	    leftOperand : null;
+  return (org.apache.flex.utils.Language.is(leftOperand, rightOperand)) ?
+      leftOperand : null;
 };
 
 
@@ -48,7 +48,7 @@ org.apache.flex.utils.Language.as = function(leftOperand, rightOperand)
{
  * @return {number}
  */
 org.apache.flex.utils.Language._int = function(value) {
-	return value >> 0;
+  return value >> 0;
 };
 
 
@@ -63,35 +63,35 @@ org.apache.flex.utils.Language._int = function(value) {
  * @return {boolean}
  */
 org.apache.flex.utils.Language.is = function(leftOperand, rightOperand) {
-	var checkInterfaces;
-
-	checkInterfaces = function(left) {
-		var i, interfaces;
-
-		interfaces = left.FLEXJS_CLASS_INFO.interfaces;
-		for (i = interfaces.length - 1; i > -1; i--) {
-			if (interfaces[i] === rightOperand) {
-				return true;
-			}
-
-			if (interfaces[i].prototype.FLEXJS_CLASS_INFO &&
-			    interfaces[i].prototype.FLEXJS_CLASS_INFO.interfaces) {
-				return checkInterfaces(new interfaces[i]());
-			}
-		}
-
-		return false;
-	};
-
-	if (leftOperand instanceof rightOperand) {
-		return true;
-	} else if (leftOperand.FLEXJS_CLASS_INFO &&
-	    leftOperand.FLEXJS_CLASS_INFO.interfaces) {
-		return checkInterfaces(leftOperand);
-	} else if (rightOperand === String && typeof leftOperand === 'string')
+  var checkInterfaces;
+
+  checkInterfaces = function(left) {
+    var i, interfaces;
+
+    interfaces = left.FLEXJS_CLASS_INFO.interfaces;
+    for (i = interfaces.length - 1; i > -1; i--) {
+      if (interfaces[i] === rightOperand) {
+        return true;
+      }
+
+      if (interfaces[i].prototype.FLEXJS_CLASS_INFO &&
+          interfaces[i].prototype.FLEXJS_CLASS_INFO.interfaces) {
+        return checkInterfaces(new interfaces[i]());
+      }
+    }
+
+    return false;
+  };
+
+  if (leftOperand instanceof rightOperand) {
+    return true;
+  } else if (leftOperand.FLEXJS_CLASS_INFO &&
+      leftOperand.FLEXJS_CLASS_INFO.interfaces) {
+    return checkInterfaces(leftOperand);
+  } else if (rightOperand === String && typeof leftOperand === 'string')
         return true;
 
-	return false;
+  return false;
 };
 
 
@@ -102,13 +102,13 @@ org.apache.flex.utils.Language.is = function(leftOperand, rightOperand)
{
  * @param {string} value The message to be written to the console.
  */
 org.apache.flex.utils.Language.trace = function(value) {
-	try {
-		if (console && console.log) {
-			console.log(value);
-		}
-	} catch (e) {
-		// ignore; at least we tried ;-)
-	}
+  try {
+    if (console && console.log) {
+      console.log(value);
+    }
+  } catch (e) {
+    // ignore; at least we tried ;-)
+  }
 };
 
 
@@ -120,5 +120,5 @@ org.apache.flex.utils.Language.trace = function(value) {
  * @return {number}
  */
 org.apache.flex.utils.Language.uint = function(value) {
-	return value >>> 0;
+  return value >>> 0;
 };


Mime
View raw message