1
0
Fork 0

Combined classes into single jQuery statement

website
Mike Gerwitz 2011-03-24 22:47:26 -04:00
parent 6a3fa5ecca
commit 16b0ece58a
1 changed files with 2 additions and 6 deletions

View File

@ -32,9 +32,7 @@
$( '<div>' ) $( '<div>' )
.attr( 'id', 'try' ) .attr( 'id', 'try' )
.text( 'Try It!' ) .text( 'Try It!' )
.addClass( 'btn' ) .addClass( 'btn large glow' )
.addClass( 'large' )
.addClass( 'glow' )
.mousedown( function( event ) .mousedown( function( event )
{ {
// prevent dragging from highlighting the text (so it looks more // prevent dragging from highlighting the text (so it looks more
@ -75,9 +73,7 @@
.append( $( '<div>' ) .append( $( '<div>' )
.attr( 'id', 'run' ) .attr( 'id', 'run' )
.text( 'Run' ) .text( 'Run' )
.addClass( 'btn' ) .addClass( 'btn med green' )
.addClass( 'med' )
.addClass( 'green' )
.click( function() .click( function()
{ {
var Class = easejs.Class; var Class = easejs.Class;