Skip to content
Browse files

reorganize

  • Loading branch information...
1 parent b48111b commit 26a3893fd536eca6a443532d3394795fa02e00f4 kangax committed Jun 9, 2008
View
1 README.rdoc
@@ -10,6 +10,7 @@ Protolicious is a set of javascript snippets based on prototype.js
* <tt>Element#swapClassName</tt>
* <tt>Element#enableClassName</tt>
* <tt>Element#contains</tt>
+* <tt>Element#indexOf</tt>
== Function extensions
View
5 element.methods.js
@@ -205,7 +205,8 @@ Element.extendIframe = function(element) {
copy(Element.Methods, proto);
copy(Element.Methods.Simulated, proto, true);
return element;
-}
+};
+
/**
* Element.indexOf(@element) -> Number|undefined
* returns index of element in its parent or undefined if parent does not exist
@@ -218,6 +219,6 @@ Element.Methods.indexOf = function(element) {
var parent = $(element.parentNode);
if (!parent) return;
return parent.childElements().indexOf(element);
-}
+};
Element.addMethods();
View
0 __getClass.js → experimental/__getClass.js
File renamed without changes.
View
9 experimental/capability_tests.js
@@ -0,0 +1,9 @@
+// IE and Opera are missing .innerHTML support for TABLE-related and SELECT elements
+var selectCanBeUpdated = (function(){
+ var select = document.createElement('select');
+ select.innerHTML = '<option>test<\/option>';
+ var firstChild = select.childNodes[0];
+ return !!(firstChild &&
+ firstChild.tagName &&
+ firstChild.tagName.toUpperCase() == 'OPTION');
+})();
View
0 enumerable.js → experimental/enumerable.js
File renamed without changes.
View
0 event.wrapper.js → experimental/event.wrapper.js
File renamed without changes.
View
0 object.for_in.js → experimental/object.for_in.js
File renamed without changes.
View
0 misc.js → experimental/string_enumerable.js
File renamed without changes.
View
0 coverage.rb → lib/coverage.rb
File renamed without changes.
View
0 prototype_faq_markdown.txt → misc/prototype_faq_markdown.txt
File renamed without changes.

0 comments on commit 26a3893

Please sign in to comment.
Something went wrong with that request. Please try again.