update docs about config: m.route

This commit is contained in:
Leo Horie 2015-04-22 20:32:39 -04:00
parent 51d073e414
commit f0b20da30a
3 changed files with 11 additions and 3 deletions

View file

@ -700,7 +700,7 @@ var m = (function app(window, undefined) {
var element = arguments[0];
var isInitialized = arguments[1];
var context = arguments[2];
element.href = (m.route.mode !== 'pathname' ? $location.pathname : '') + modes[m.route.mode] + (this.attrs ? this.attrs.href : '');
element.href = (m.route.mode !== 'pathname' ? $location.pathname : '') + modes[m.route.mode] + vdom.attrs.href;
if (element.addEventListener) {
element.removeEventListener("click", routeUnobtrusive);
element.addEventListener("click", routeUnobtrusive)