From 36ffd0720387b4d0fbfca5cbb8812ff8c3f4b66c Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 5 Feb 2015 11:02:38 +0530 Subject: [PATCH] revert 3624 --- source/UI/js/Core/URL.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/source/UI/js/Core/URL.js b/source/UI/js/Core/URL.js index a32ba226..32d993fa 100644 --- a/source/UI/js/Core/URL.js +++ b/source/UI/js/Core/URL.js @@ -21,10 +21,9 @@ Ox.URL URL controller callback callback function getPart Tests if a string matches a part (page section) May modify the state's part property - (state, string, parts, callback) -> undefined + (state, string, callback) -> undefined state State object string The string to be tested - parts <[s]> Array of additional parts callback callback function getSort 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(); }