From 9064b84f2af743bac05591f3d738779583fccb8f Mon Sep 17 00:00:00 2001 From: Marshall Thompson Date: Sat, 7 Dec 2013 14:05:05 -0700 Subject: [PATCH] Fixing incorrect pushstate.root location in docs. --- route/pushstate/pushstate.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/route/pushstate/pushstate.md b/route/pushstate/pushstate.md index da5552a9472..91ec19d084b 100644 --- a/route/pushstate/pushstate.md +++ b/route/pushstate/pushstate.md @@ -16,15 +16,14 @@ of the [hash](https://developer.mozilla.org/en-US/docs/Web/API/URLUtils.hash). ## Use -The pushstate plugin uses the same API as [can.route] with only one additional -property - [can.route.pushstate.root]. `can.route.pushstate.root` specifies the part of that pathname that +The pushstate plugin uses the same API as [can.route] with only one additional +property - [can.route.bindings.pushstate.root]. `can.route.bindings.pushstate.root` specifies the part of that pathname that should not change. For example, if we only want to have pathnames within `app.com/contacts/`, we can specify a root like: - can.route.pushstate.root = "/contacts/" + can.route.bindings.pushstate.root = "/contacts/" can.route(":page\\.html"); can.route.url({page: "list"}) //-> "/contacts/list.html" -Now, all routes will start with "/contacts/". The default [can.root.route] -is "/". - +Now, all routes will start with "/contacts/". The default [can.root.route] +is "/". \ No newline at end of file