git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made a note about the push method.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
493a655
..
78f0cae
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-266,6
+266,8
@@
jQuery.fn = jQuery.prototype = {
return this.prevObject || jQuery( [] );
},
return this.prevObject || jQuery( [] );
},
+ // For internal use only.
+ // Behaves like an Array's .push method, not like a jQuery method.
push: [].push,
find: function( selector ) {
push: [].push,
find: function( selector ) {
@@
-923,7
+925,7
@@
jQuery.extend({
if ( fragment ) {
for ( var i = 0; ret[i]; i++ ) {
if ( fragment ) {
for ( var i = 0; ret[i]; i++ ) {
- if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type === "text/javascript") ) {
+ if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
} else {
if ( ret[i].nodeType === 1 )
scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
} else {
if ( ret[i].nodeType === 1 )