Commit ec075266 authored by Ariel Flesler's avatar Ariel Flesler

jquery core: saving some bytes and fixing indentation inside jQuery.prop.

parent 456d8a62
...@@ -427,7 +427,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -427,7 +427,7 @@ jQuery.fn = jQuery.prototype = {
html: function( value ) { html: function( value ) {
return value == undefined ? return value == undefined ?
(this.length ? (this[0] ?
this[0].innerHTML : this[0].innerHTML :
null) : null) :
this.empty().append( value ); this.empty().append( value );
...@@ -504,9 +504,9 @@ jQuery.fn = jQuery.prototype = { ...@@ -504,9 +504,9 @@ jQuery.fn = jQuery.prototype = {
this; this;
// execute all scripts after the elements have been injected // execute all scripts after the elements have been injected
if ( jQuery.nodeName( elem, "script" ) ) { if ( jQuery.nodeName( elem, "script" ) )
scripts = scripts.add( elem ); scripts = scripts.add( elem );
} else { else {
// Remove any inner scripts for later evaluation // Remove any inner scripts for later evaluation
if ( elem.nodeType == 1 ) if ( elem.nodeType == 1 )
scripts = scripts.add( jQuery( "script", elem ).remove() ); scripts = scripts.add( jQuery( "script", elem ).remove() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment