From b7a3cddec3d06daf8341734252c2e455dc9e93db Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 22 Apr 2014 16:08:19 -0400 Subject: [PATCH] version bump --- Gruntfile.js | 2 +- docs/mithril.route.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 3eea3f82..f10b2258 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,6 @@ module.exports = function(grunt) { - var version = "0.1.9" + var version = "0.1.10" var inputFolder = "./docs" var tempFolder = "./temp" diff --git a/docs/mithril.route.md b/docs/mithril.route.md index e67a9760..35efe43f 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -115,13 +115,13 @@ where: **String mode** - The `m.route.mode` property defines which URL portion is used to implement the routing mechanism. Its value can be set to either "search", "hash" or "pathname". Default value is "search" + The `m.route.mode` property defines which URL portion is used to implement the routing mechanism. Its value can be set to either "search", "hash" or "pathname". Default value is "search". Note that if you're changing this configuration value, you should change it **before** calling `m.route`. - - `search` mode uses the querystring. This allows named anchors (i.e. `Back to top`, ``) to work on the page, but routing changes causes page refreshes in IE8, due to its lack of support for `history.pushState`. + - `search` mode uses the querystring (i.e. `?`). This allows named anchors (i.e. `Back to top`, ``) to work on the page, but routing changes causes page refreshes in IE8, due to its lack of support for `history.pushState`. Example URL: `http://server/?/path/to/page` - - `hash` mode uses the hash. It's the only mode in which routing changes do not cause page refreshes in any browser. However, this mode does not support named anchors. + - `hash` mode uses the hash (i.e. `#`). It's the only mode in which routing changes do not cause page refreshes in any browser. However, this mode does not support named anchors. Example URL: `http://server/#/path/to/page`