[fusion-commits] r2360 - branches/fusion-2.2/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Apr 7 14:41:10 EDT 2011


Author: madair
Date: 2011-04-07 11:41:10 -0700 (Thu, 07 Apr 2011)
New Revision: 2360

Modified:
   branches/fusion-2.2/lib/jxlib.uncompressed.js
Log:
closes #408: fix createElement for IE9

Modified: branches/fusion-2.2/lib/jxlib.uncompressed.js
===================================================================
--- branches/fusion-2.2/lib/jxlib.uncompressed.js	2011-04-04 20:25:47 UTC (rev 2359)
+++ branches/fusion-2.2/lib/jxlib.uncompressed.js	2011-04-07 18:41:10 UTC (rev 2360)
@@ -1405,27 +1405,26 @@
 
 Document.implement({
 
-        newElement: function(tag, props) {
-            var createdElement;
-            if (Browser.Engine.trident && props) {
-                ['name', 'type', 'checked'].each(function(attribute) {
-                    if (!props[attribute]) return;
-                    tag += ' ' + attribute + '="' + props[attribute] + '"';
-                    if (attribute != 'checked') delete props[attribute];
-                });
-                var replaceTag = '<' + tag + '>';
-                try {
-                    createdElement = this.createElement(replaceTag);
-                }
-                catch (e) {
-                    createdElement = this.createElement(tag);
-                }
+    newElement: function(tag, props) {
+        var createdElement;
+        if (Browser.Engine.trident && props) {
+            ['name', 'type', 'checked'].each(function(attribute) {
+                if (!props[attribute]) return;
+                tag += ' ' + attribute + '="' + props[attribute] + '"';
+                if (attribute != 'checked') delete props[attribute];
+            });
+            var replaceTag = '<' + tag + '>';
+            try {
+                createdElement = this.createElement(replaceTag);
             }
-            else {
+            catch (e) {
                 createdElement = this.createElement(tag);
             }
-            return $.element(createdElement).set(props);
-        },
+        } else {
+            createdElement = this.createElement(tag);
+        }
+        return $.element(createdElement).set(props);
+    },
 
 	newTextNode: function(text){
 		return this.createTextNode(text);



More information about the fusion-commits mailing list