Skip to content

Commit f0466fb

Browse files
committed
removeProp: Fix errors in code example
Fixes #604
1 parent a3cc9b4 commit f0466fb

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

entries/removeProp.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
<example>
1818
<desc>Set a numeric property on a paragraph and then remove it. </desc>
1919
<code><![CDATA[
20-
$( "p" )
20+
para = $( "p" );
21+
para
2122
.prop( "luggageCode", 1234 )
22-
.append( "The secret luggage code is: ", String( $para.prop( "luggageCode" ) ), ". " )
23-
.removeProp( "luggageCode" );
24-
.append( "Now the secret luggage code is: ", String( $para.prop( "luggageCode" ) ), ". " );
23+
.append( "The secret luggage code is: ", String( para.prop( "luggageCode" ) ), ". " )
24+
.removeProp( "luggageCode" )
25+
.append( "Now the secret luggage code is: ", String( para.prop( "luggageCode" ) ), ". " );
2526
]]></code>
2627
<css><![CDATA[
2728
img {

0 commit comments

Comments
 (0)