hx.config(['$router'], function($router) {

    ko.utils.registerEventHandler(document, 'click', function(event) {
        if(event.target.tagName === 'A') {
            var element = event.target,
                routeName = ko.utils.domData.get(element, '__routeName'),
                parameters = ko.utils.domData.get(element, '__routeParameters');

            if(routeName) {
                $router.navigateTo(routeName, parameters);

                if (event.preventDefault)
                    event.preventDefault();
                else
                    event.returnValue = false;
            }
        }
    });

    /**
     * @bindingHandler navigate
     *
     * The navigate binding handler provides inter-page navigation. This binding
     * handler will typically be applied to an `a` tag, although can be applied to
     * any element as it will handle the click event on the element, it does not
     * depend on the browsers built-in linking functionality.
     *
     * The binding handler takes a single parameter, the name of the route that
     * should be navigated to, being a named route that has been registered in the
     * global $router module.
     *
     * If the route requires parameters then they can be provided by using the
     * `parameters` binding handler, which accepts an object of parameters to
     * be used to generate the URL and when navigating.
     *
     * @example
     *
     * <a data-bind="navigate: 'View User', parameters: { userId: 4 }>View User 4</a>"
     */
    koBindingHandlers.navigate = {
        /*init: function(element, valueAccessor, allBindingsAccessor) {
            var routeName = ko.utils.unwrapObservable(valueAccessor()),
                parameters = allBindingsAccessor()['parameters'];

            ko.utils.registerEventHandler(element, 'click', function(event) {
                $router.navigateTo(routeName, parameters);

                if (event.preventDefault)
                    event.preventDefault();
                else
                    event.returnValue = false;
            })
        },*/

        update: function(element, valueAccessor, allBindingsAccessor) {
            var routeName = ko.utils.unwrapObservable(valueAccessor()),
                parameters = allBindingsAccessor()['parameters'];
                url = $router.buildUrl(routeName, parameters);

            element.setAttribute('href', url || '#');

            ko.utils.domData.set(element, '__routeName', routeName);
            ko.utils.domData.set(element, '__routeParameters', parameters);
        }
    }
});
@@ -36,17 +36,16 @@
 uter) %7B%0A
-%0A
     ko.u
@@ -1559,540 +1559,8 @@
 = %7B%0A
-        /*init: function(element, valueAccessor, allBindingsAccessor) %7B%0A            var routeName = ko.utils.unwrapObservable(valueAccessor()),%0A                parameters = allBindingsAccessor()%5B'parameters'%5D;%0A%0A            ko.utils.registerEventHandler(element, 'click', function(event) %7B%0A                $router.navigateTo(routeName, parameters);%0A%0A                if (event.preventDefault)%0A                    event.preventDefault();%0A                else%0A                    event.returnValue = false;%0A            %7D)%0A        %7D,*/%0A%0A
     

Remove commented-out code