   constructor: ($routeProvider) ->
     this.provider = $routeProvider
 
-  bindRoutes: () ->
+  _bindRoutes: () ->
     _.each(this.directRoutes, this._setRouteConfig)
     _.each(this.customRoutes, this._setRouteConfig)
 

      route + '?ajax=true'

RouterBuilder = ($routeProvider) ->
    new Router($routeProvider).bindRoutes()

app = angular.module('teddy')


      config = {}

    config = _.extend({}, this.defaultConfig, {
      templateUrl: this._buildTemplateFor(route)
    }, config)

    this.provider.when(route, config)

  _buildTemplateFor: (route)->
    (params) ->
      if params != undefined
        window.d = params
