File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ function renderDataStructures(curEntry, vizDiv) {
273273// This version was originally created in January 2010
274274function renderDataStructuresVersion1 ( curEntry , vizDiv ) {
275275 // render data structures:
276- $ ( vizDiv ) . html ( '' ) ; // CLEAR IT!
277276
277+ $ ( vizDiv ) . empty ( ) ; // jQuery empty() is better than .html('')
278278
279279 // render locals on stack:
280280 if ( curEntry . stack_locals != undefined ) {
@@ -415,7 +415,8 @@ function renderDataStructuresVersion2(curEntry, vizDiv) {
415415 jsPlumb . reset ( ) ;
416416
417417
418- $ ( vizDiv ) . html ( '' ) ; // CLEAR IT!
418+ $ ( vizDiv ) . empty ( ) ; // jQuery empty() is better than .html('')
419+
419420
420421 // create a tabular layout for stack and heap side-by-side
421422 // TODO: figure out how to do this using CSS in a robust way!
@@ -1080,7 +1081,7 @@ String.prototype.rtrim = function() {
10801081
10811082function renderPyCodeOutput ( codeStr ) {
10821083 var tbl = $ ( "#pyCodeOutput" ) ;
1083- tbl . html ( '' ) ;
1084+ tbl . empty ( ) ; // jQuery empty() is better than . html('')
10841085 var lines = codeStr . rtrim ( ) . split ( '\n' ) ;
10851086
10861087 $ . each ( lines , function ( i , cod ) {
You can’t perform that action at this time.
0 commit comments