revert 3624

This commit is contained in:
rolux 2015-02-05 11:02:38 +05:30
parent 5835cbc38c
commit 36ffd07203

View file

@ -21,10 +21,9 @@ Ox.URL <f> URL controller
callback <f> callback function
getPart <f> Tests if a string matches a part (page section)
May modify the state's part property
(state, string, parts, callback) -> <u> undefined
(state, string, callback) -> <u> undefined
state <o> State object
string <s> The string to be tested
parts <[s]> Array of additional parts
callback <f> callback function
getSort <f> Tests if a sort object is valid (for the current item)
May modify the state's sort properties
@ -538,9 +537,6 @@ Ox.URL = function(options) {
parts.push(state.page);
if (state.part) {
parts.push(state.part);
if (state.parts) {
parts = parts.concat(state.parts);
}
}
} else {
if (self.options.types.indexOf(state.type) > 0) {
@ -794,8 +790,8 @@ Ox.URL = function(options) {
state.page = parts[0];
parts.shift();
if (parts.length) {
// may modify state.part, state.page
self.options.getPart(state, decodeValue(parts[0]), parts.slice(1), getHash);
// may modify state.part
self.options.getPart(state, decodeValue(parts[0]), getHash);
} else {
getHash();
}