Skip to content

Commit

Permalink
jquery core: saving some bytes and fixing indentation inside jQuery.p…
Browse files Browse the repository at this point in the history
…rop.
  • Loading branch information
flesler committed May 23, 2008
1 parent 456d8a6 commit ec07526
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/core.js
Expand Up @@ -427,7 +427,7 @@ jQuery.fn = jQuery.prototype = {

html: function( value ) {
return value == undefined ?
(this.length ?
(this[0] ?
this[0].innerHTML :
null) :
this.empty().append( value );
Expand Down Expand Up @@ -504,9 +504,9 @@ jQuery.fn = jQuery.prototype = {
this;

// execute all scripts after the elements have been injected
if ( jQuery.nodeName( elem, "script" ) ) {
if ( jQuery.nodeName( elem, "script" ) )
scripts = scripts.add( elem );
} else {
else {
// Remove any inner scripts for later evaluation
if ( elem.nodeType == 1 )
scripts = scripts.add( jQuery( "script", elem ).remove() );
Expand Down Expand Up @@ -745,14 +745,14 @@ jQuery.extend({
},

prop: function( elem, value, type, i, name ) {
// Handle executable functions
if ( jQuery.isFunction( value ) )
value = value.call( elem, i );

// Handle passing in a number to a CSS property
return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ?
value + "px" :
value;
// Handle executable functions
if ( jQuery.isFunction( value ) )
value = value.call( elem, i );

// Handle passing in a number to a CSS property
return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ?
value + "px" :
value;
},

className: {
Expand Down

0 comments on commit ec07526

Please sign in to comment.