From 4e9505335cac0f79f19a352171b1a51d048f48f9 Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Mon, 5 Dec 2016 11:41:20 -0800 Subject: [PATCH] Fix TOC link, remove m.request.run ref (#1456) --- docs/route.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/route.md b/docs/route.md index b16d1336..1abaea30 100644 --- a/docs/route.md +++ b/docs/route.md @@ -258,7 +258,7 @@ m.route(document.body, "/edit/pictures/image.jpg", { --- -### Changing route prefix +### Changing router prefix The router prefix is a fragment of the URL that dictates the underlying [strategy](routing-strategies.md) used by the router. @@ -402,14 +402,12 @@ module.export = { ```javascript // index.js function load(file, done) { - m.request({ - method: "GET", - url: file, + m.request(file, { extract: function(xhr) { return new Function("var module = {};" + xhr.responseText + ";return module.exports;") } }) - .run(done) + .then(done) } m.route(document.body, "/", {