jquery - /* * jQuery JavaScript Library v1.3.2 *...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * jQuery JavaScript Library v1.3.2 * http://jquery.com/ * * Copyright (c) 2009 John Resig * Dual licensed under the MIT and GPL licenses. * http://docs.jquery.com/License * * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) * Revision: 6246 */ (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\ [\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType) {this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var []);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return {this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)? E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g? Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find") {G.selector=this.selector+(this.selector?" ":"")+E}else{if(H) {G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E) {this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E) E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I) {for(F in E){o.attr(G? this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"|| {if(typeof F!=="object"&&F!=null){return document).createTextNode(F))}var E="";o.each(F||this,function() {o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1? this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode) {F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild) {G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1) {this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1) {this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E) {this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E) {this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/21/2011 for the course COMM 101 taught by Professor Sterling during the Spring '11 term at San Jose State University .

Page1 / 15

jquery - /* * jQuery JavaScript Library v1.3.2 *...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online