Minor fixes and polyfills

This commit is contained in:
Mark McDowall 2013-09-11 14:38:35 -07:00
parent 89a72a50cf
commit feda4a9b67
7 changed files with 44 additions and 43 deletions

View file

@ -1,5 +1,5 @@
'use strict';
define(['Shared/StringHelpers'],function (StringHelpers) {
define(function () {
//This module will automatically route all relative links through backbone router rather than
//causing links to reload pages.
@ -40,7 +40,7 @@ define(['Shared/StringHelpers'],function (StringHelpers) {
}
if (!StringHelpers.startsWith(href, 'http')) {
if (!href.startsWith('http')) {
router.navigate(href, { trigger: true });
}