             ['GET',     t('/htmlfile'),    ['h_sid', 'h_no_cache', 'htmlfile']],
         ]
         maybe_add_transport = (name, urls) =>
-            if @options.disabled_transports.indexOf(name) isnt -1
+            if options.disabled_transports.indexOf(name) isnt -1
                 # modify urls to return 404
                 urls = for url in urls
                     [method, url, filters] = url

            dispatcher = dispatcher.concat(urls)
        maybe_add_transport('websocket',[
                ['GET', t('/websocket'), ['websocket']]])

        webjs_handler = new webjs.WebJS(new App(), dispatcher)


utils.objectExtend(App.prototype, trans_htmlfile.app)


generate_dispatcher = (options) ->
        p = (s) => new RegExp('^' + options.prefix + s + '[/]?$')
        t = (s) => [p('/([^/.]+)/([^/.]+)' + s), 'server', 'session']
        opts_filters = ['h_sid', 'xhr_cors', 'cache_for', 'xhr_options', 'expose']
        dispatcher = [
