Skip to content
Extraits de code Groupes Projets
Valider 4deda6be rédigé par Fil's avatar Fil
Parcourir les fichiers

mise a jour jquery 1173 (correction de bugs)

parent 317159af
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,8 +7,8 @@ if(typeof window.jQuery == "undefined") { ...@@ -7,8 +7,8 @@ if(typeof window.jQuery == "undefined") {
* Dual licensed under the MIT (MIT-LICENSE.txt) * Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses. * and GPL (GPL-LICENSE.txt) licenses.
* *
* $Date: 2007-01-22 00:27:54 -0500 (Mon, 22 Jan 2007) $ * $Date: 2007-01-23 18:02:32 +0100 (Tue, 23 Jan 2007) $
* $Rev: 1153 $ * $Rev: 1173 $
*/ */
// Global undefined variable // Global undefined variable
...@@ -76,9 +76,9 @@ jQuery.fn = jQuery.prototype = { ...@@ -76,9 +76,9 @@ jQuery.fn = jQuery.prototype = {
this[num]; this[num];
}, },
pushStack: function( a ) { pushStack: function( a ) {
var ret = jQuery(this); var ret = jQuery(a);
ret.prevObject = this; ret.prevObject = this;
return ret.setArray( a ); return ret;
}, },
setArray: function( a ) { setArray: function( a ) {
this.length = 0; this.length = 0;
...@@ -184,7 +184,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -184,7 +184,7 @@ jQuery.fn = jQuery.prototype = {
find: function(t) { find: function(t) {
return this.pushStack( jQuery.map( this, function(a){ return this.pushStack( jQuery.map( this, function(a){
return jQuery.find(t,a); return jQuery.find(t,a);
}) ); }), t );
}, },
clone: function(deep) { clone: function(deep) {
return this.pushStack( jQuery.map( this, function(a){ return this.pushStack( jQuery.map( this, function(a){
...@@ -205,14 +205,14 @@ jQuery.fn = jQuery.prototype = { ...@@ -205,14 +205,14 @@ jQuery.fn = jQuery.prototype = {
not: function(t) { not: function(t) {
return this.pushStack( return this.pushStack(
t.constructor == String && t.constructor == String &&
jQuery.multiFilter(t,this,true) || jQuery.multiFilter(t, this, true) ||
jQuery.grep(this,function(a){ jQuery.grep(this, function(a) {
if ( t.constructor == Array || t.jquery ) return ( t.constructor == Array || t.jquery )
return jQuery.inArray( t, a ) < 0; ? jQuery.inArray( a, t ) < 0
else : a != t;
return a != t; })
}) ); );
}, },
add: function(t) { add: function(t) {
...@@ -220,7 +220,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -220,7 +220,7 @@ jQuery.fn = jQuery.prototype = {
this.get(), this.get(),
t.constructor == String ? t.constructor == String ?
jQuery(t).get() : jQuery(t).get() :
t.length != undefined && !t.nodeName ? t.length != undefined && (!t.nodeName || t.nodeName == "FORM") ?
t : [t] ) t : [t] )
); );
}, },
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter