revert 3624
This commit is contained in:
parent
5835cbc38c
commit
36ffd07203
1 changed files with 3 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue