a couple minor 'tweaks' to the plugin system so that it works with npm installed plugins

This commit is contained in:
Julian Lam
2013-08-22 09:50:29 -04:00
parent 7975844e4d
commit 2d3d0f688a
3 changed files with 37 additions and 26 deletions

View File

@@ -153,6 +153,11 @@
.addClass('badge-inverse')
}
});
},
isRelativeUrl: function(url) {
var firstChar = url.slice(0, 1);
return (firstChar === '.' || firstChar === '/');
}
}