Bind this
This commit is contained in:
parent
bee10b992f
commit
ab25b7648d
@ -95,7 +95,7 @@ Dragonfly.prototype.Log = function( mesg, sphere, visibility )
|
||||
if( write )
|
||||
{
|
||||
typeof( mesg ) == "function"
|
||||
? mesg( this.writeLine )
|
||||
? mesg( this.writeLine.bind( this ) )
|
||||
: this.writeLine( mesg )
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user