@@ -288,7 +288,7 @@ var evalScope = function(print) {
288288 * Write text to console using provided color
289289 */
290290 Console . prototype . write = function ( text , color ) {
291- if ( ! this instanceof Console ) return ;
291+ if ( ! ( this instanceof Console ) ) return ;
292292
293293 var textLen = text . length ;
294294 if ( 0 === textLen ) {
@@ -348,7 +348,7 @@ var evalScope = function(print) {
348348 * Append symbol to console editbox
349349 */
350350 Console . prototype . editAppendChar = function ( c ) {
351- if ( ! this instanceof Console ) return ;
351+ if ( ! ( this instanceof Console ) ) return ;
352352
353353 var textChars = this . getState ( ) . textChars ;
354354 if ( textChars . length >= gui . editboxWidth ) {
@@ -362,7 +362,7 @@ var evalScope = function(print) {
362362 * Send backspace to console editbox
363363 */
364364 Console . prototype . editBackspace = function ( ) {
365- if ( ! this instanceof Console ) return ;
365+ if ( ! ( this instanceof Console ) ) return ;
366366
367367 var textChars = this . getState ( ) . textChars ;
368368 textChars . pop ( ) ;
@@ -372,7 +372,7 @@ var evalScope = function(print) {
372372 * Clear editbox
373373 */
374374 Console . prototype . editClear = function ( ) {
375- if ( ! this instanceof Console ) return ;
375+ if ( ! ( this instanceof Console ) ) return ;
376376
377377 var textChars = this . getState ( ) . textChars ;
378378 while ( textChars . length > 0 ) {
@@ -384,7 +384,7 @@ var evalScope = function(print) {
384384 * Get text from editbox
385385 */
386386 Console . prototype . editGetText = function ( ) {
387- if ( ! this instanceof Console ) return ;
387+ if ( ! ( this instanceof Console ) ) return ;
388388
389389 var textChars = this . getState ( ) . textChars ;
390390 return textChars . join ( '' ) ;
0 commit comments