 
     listenOnTextChange = (node, log) ->
         if node instanceof File.Element.Text
-            node.onTextChange log.log, log
+            node.onTextChange log.render, log
         else
             for child in node.children
                 listenOnTextChange child, log


utils = require 'src/utils'
assert = require 'src/assert'

module.exports = (File) -> class Log
    @__name__ = 'Log'

        assert.instanceOf @file, File
        assert.instanceOf @node, File.Element

        @isRenderPending = false
        @log = utils.bindFunctionContext @log, @

        @node.onPropsChange @render, @
        listenOnTextChange @node, @

        `//<development>`
