]> source.dussan.org Git - jquery.git/commitdiff
Moved some more files around.
authorJohn Resig <jeresig@gmail.com>
Sun, 13 Aug 2006 15:22:02 +0000 (15:22 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 13 Aug 2006 15:22:02 +0000 (15:22 +0000)
build/docs.js
build/docs/gen-events.pl [new file with mode: 0644]
docs/events/gen-events.pl [deleted file]

index 4ed6cc79c91af77eb46daa3f65aaca9933e2015b..e17e64d95ac7a03bf54e42bee6c3cf80976f7836 100644 (file)
@@ -1,6 +1,6 @@
-load("build/js/json.js");
-load("build/js/xml.js");
-load("build/js/writeFile.js");
+load("js/json.js");
+load("js/xml.js");
+load("js/writeFile.js");
 
 var types = {
        jQuery: "A jQuery object.",
@@ -14,7 +14,7 @@ var types = {
        Function: "A reference to a Javascript function."
 };
 
-var f = readFile("../jquery-svn.js");
+var f = readFile(arguments[0]);
 
 var c = [], bm, m;
 var blockMatch = /\/\*\*\s*((.|\n)*?)\s*\*\//g;
@@ -82,17 +82,17 @@ while ( bm = blockMatch.exec(f) ) {
 
 var json = Object.toJSON( c );
 
-writeFile( "data/jquery-docs-json.js", json );
-writeFile( "data/jquery-docs-jsonp.js", "docsLoaded(" + json + ")" );
+writeFile( arguments[1] + "/data/jquery-docs-json.js", json );
+writeFile( arguments[1] + "/data/jquery-docs-jsonp.js", "docsLoaded(" + json + ")" );
 
 Object.toXML.force = { desc: 1, code: 1, before: 1, result: 1 };
 
 var xml = Object.toXML( { method: c }, "docs" );
 
-writeFile( "data/jquery-docs-xml.xml", 
+writeFile( arguments[1] + "/data/jquery-docs-xml.xml", 
        "<?xml version='1.0' encoding='ISO-8859-1'?>\n" + xml );
 
-writeFile( "index.xml",
+writeFile( arguments[1] + "/index.xml",
        "<?xml version='1.0' encoding='ISO-8859-1'?>\n" +
        "<?xml-stylesheet type='text/xsl' href='style/docs.xsl'?>\n" + xml
 );
diff --git a/build/docs/gen-events.pl b/build/docs/gen-events.pl
new file mode 100644 (file)
index 0000000..5e92df9
--- /dev/null
@@ -0,0 +1,80 @@
+#!/usr/bin/perl
+
+my @stuff = split(",", "blur,focus,load,resize,scroll,unload,click,dblclick," .
+               "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," .
+               "submit,keydown,keypress,keyup,error");
+
+foreach (@stuff) {
+
+print qq~
+               /**
+                * Bind a function to the $_ event of each matched element.
+                *
+                * \@example \$("p").$_( function() { alert("Hello"); } );
+                * \@before <p>Hello</p>
+                * \@result <p on$_="alert('Hello');">Hello</p>
+                *
+                * \@name $_
+                * \@type jQuery
+                * \@param Function fn A function to bind to the $_ event on each of the matched elements.
+                * \@cat Events
+                */
+
+               /**
+                * Trigger the $_ event of each matched element. This causes all of the functions
+                * that have been bound to thet $_ event to be executed.
+                *
+                * \@example \$("p").$_();
+                * \@before <p on$_="alert('Hello');">Hello</p>
+                * \@result alert('Hello');
+                *
+                * \@name $_
+                * \@type jQuery
+                * \@cat Events
+                */
+
+               /**
+                * Bind a function to the $_ event of each matched element, which will only be executed once.
+                * Unlike a call to the normal .$_() method, calling .one$_() causes the bound function to be
+                * only executed the first time it is triggered, and never again (unless it is re-bound).
+                *
+                * \@example \$("p").one$_( function() { alert("Hello"); } );
+                * \@before <p on$_="alert('Hello');">Hello</p>
+                * \@result alert('Hello'); // Only executed for the first $_
+                *
+                * \@name one$_
+                * \@type jQuery
+                * \@param Function fn A function to bind to the $_ event on each of the matched elements.
+                * \@cat Events
+                */
+
+               /**
+                * Removes a bound $_ event from each of the matched
+                * elements. You must pass the identical function that was used in the original 
+                * bind method.
+                *
+                * \@example \$("p").un$_( myFunction );
+                * \@before <p on$_="myFunction">Hello</p>
+                * \@result <p>Hello</p>
+                *
+                * \@name un$_
+                * \@type jQuery
+                * \@param Function fn A function to unbind from the $_ event on each of the matched elements.
+                * \@cat Events
+                */
+
+               /**
+                * Removes all bound $_ events from each of the matched elements.
+                *
+                * \@example \$("p").un$_();
+                * \@before <p on$_="alert('Hello');">Hello</p>
+                * \@result <p>Hello</p>
+                *
+                * \@name un$_
+                * \@type jQuery
+                * \@cat Events
+                */
+~;
+
+
+}
diff --git a/docs/events/gen-events.pl b/docs/events/gen-events.pl
deleted file mode 100644 (file)
index 5e92df9..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/usr/bin/perl
-
-my @stuff = split(",", "blur,focus,load,resize,scroll,unload,click,dblclick," .
-               "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," .
-               "submit,keydown,keypress,keyup,error");
-
-foreach (@stuff) {
-
-print qq~
-               /**
-                * Bind a function to the $_ event of each matched element.
-                *
-                * \@example \$("p").$_( function() { alert("Hello"); } );
-                * \@before <p>Hello</p>
-                * \@result <p on$_="alert('Hello');">Hello</p>
-                *
-                * \@name $_
-                * \@type jQuery
-                * \@param Function fn A function to bind to the $_ event on each of the matched elements.
-                * \@cat Events
-                */
-
-               /**
-                * Trigger the $_ event of each matched element. This causes all of the functions
-                * that have been bound to thet $_ event to be executed.
-                *
-                * \@example \$("p").$_();
-                * \@before <p on$_="alert('Hello');">Hello</p>
-                * \@result alert('Hello');
-                *
-                * \@name $_
-                * \@type jQuery
-                * \@cat Events
-                */
-
-               /**
-                * Bind a function to the $_ event of each matched element, which will only be executed once.
-                * Unlike a call to the normal .$_() method, calling .one$_() causes the bound function to be
-                * only executed the first time it is triggered, and never again (unless it is re-bound).
-                *
-                * \@example \$("p").one$_( function() { alert("Hello"); } );
-                * \@before <p on$_="alert('Hello');">Hello</p>
-                * \@result alert('Hello'); // Only executed for the first $_
-                *
-                * \@name one$_
-                * \@type jQuery
-                * \@param Function fn A function to bind to the $_ event on each of the matched elements.
-                * \@cat Events
-                */
-
-               /**
-                * Removes a bound $_ event from each of the matched
-                * elements. You must pass the identical function that was used in the original 
-                * bind method.
-                *
-                * \@example \$("p").un$_( myFunction );
-                * \@before <p on$_="myFunction">Hello</p>
-                * \@result <p>Hello</p>
-                *
-                * \@name un$_
-                * \@type jQuery
-                * \@param Function fn A function to unbind from the $_ event on each of the matched elements.
-                * \@cat Events
-                */
-
-               /**
-                * Removes all bound $_ events from each of the matched elements.
-                *
-                * \@example \$("p").un$_();
-                * \@before <p on$_="alert('Hello');">Hello</p>
-                * \@result <p>Hello</p>
-                *
-                * \@name un$_
-                * \@type jQuery
-                * \@cat Events
-                */
-~;
-
-
-}