1
0
Fork 0
forked from 0x2620/oxjs

update map, url controller, icon list selection css

This commit is contained in:
rlx 2011-10-02 21:49:59 +00:00
commit c624cc5082
4 changed files with 24 additions and 19 deletions

View file

@ -416,7 +416,9 @@ Ox.URL = function(options) {
function parseURL(str, callback) {
Ox.print('pU', str)
var parts = str.substr(1).split('/'),
// fixme: removing trailing slash makes it impossible to search for '/'
str = str.replace(/(^\/|\/$)/g, '');
var parts = str.split('/'),
state = {};
if (parts[0] == '') {
// empty URL