public
Description: script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
Homepage: http://script.aculo.us/
Clone URL: git://github.com/madrobby/scriptaculous.git
Click here to lend your support to: scriptaculous and make a donation at www.pledgie.com !
Fix that Builder.node did not return extended elements on IE. [#71 
state:resolved] [#77 state:resolved]
madrobby (author)
Thu Aug 28 11:07:31 -0700 2008
commit  9d30ad9ad7d7ebdaa6e6d5f3bd331b47c356070b
tree    74321b620733e5fd01fb8a90fc501e1b213e8ef5
parent  a714120f4f2c477640008f04688d391cf85bf9a4
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Fix that Builder.node did not return extended elements on IE.  Closes #71 and #77. 
0
+
0
 * Fix a bug in Sortable.destroy to make sure it's called on the referenced Sortable only, which allows for the correct intialization of nested Sortables. Closes Trac #8615.  [Leon Chevalier]
0
 
0
 * Change Effect.Base#render not to use eval(), so certain JavaScript runtime environments (like Adobe AIR) that do not support eval() work.  [King Maxemilian, John-David Dalton]
...
72
73
74
75
 
76
77
78
...
72
73
74
 
75
76
77
78
0
@@ -72,7 +72,7 @@ var Builder = {
0
     if(arguments[2])
0
       this._children(element, arguments[2]);
0
 
0
-     return element;
0
+     return $(element);
0
   },
0
   _text: function(text) {
0
      return document.createTextNode(text);
...
116
117
118
 
 
 
 
119
120
121
...
116
117
118
119
120
121
122
123
124
125
0
@@ -116,6 +116,10 @@
0
       assertEqual('mydiv', elt.htmlFor);
0
     }},
0
     
0
+    testBuilderExtendsElement: function() { with(this) {
0
+      assertRespondsTo('hide', Builder.node('div'));
0
+    }},
0
+    
0
     testBuilderAllXHTMLTags: function() { with(this) {
0
       var XHTML_TAGS = [
0
         'a','abbr','acronym','address','applet','area',

Comments