Bind this
This commit is contained in:
@@ -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 )
|
||||
;
|
||||
}
|
||||
|
Reference in New Issue
Block a user