Skip to content

Commit

Permalink
use camelCase for notFound
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 10, 2015
1 parent 3d75e7b commit e6f94d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Router (options) {
this._recognizer = new Recognizer()
this._started = false
this._currentPath = null
this._notfoundHandler = null
this._notFoundHandler = null
this._root = null
this._hasPushState = hasPushState
var root = options && options.root
Expand Down Expand Up @@ -82,20 +82,20 @@ p.map = function (map) {

p.on = function (rootPath, config) {
if (rootPath === '*') {
this.notfound(config)
this.notFound(config)
} else {
this._addRoute(rootPath, config, [])
}
}

/**
* Set the notfound route config.
* Set the notFound route config.
*
* @param {Object} config
*/

p.notfound = function (config) {
this._notfoundHandler = [{ handler: config }]
p.notFound = function (config) {
this._notFoundHandler = [{ handler: config }]
}

/**
Expand Down Expand Up @@ -303,7 +303,7 @@ p._match = function (path) {
path: path,
params: params,
query: matched && matched.queryParams,
_matched: matched || this._notfoundHandler,
_matched: matched || this._notFoundHandler,
_matchedCount: 0,
_router: this
}
Expand Down

0 comments on commit e6f94d7

Please sign in to comment.