diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index a9e2c3e1..150b64b6 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -10,7 +10,8 @@ Ox.URL URL controller getHash Takes a state object and normalizes its "hash" property (o) -> State object getItem Tests if a string matches an item - (string, callback) -> undefined + (type, string, callback) -> undefined + type type string The string to be tested callback callback function id Matching item id, or empty @@ -52,7 +53,7 @@ Ox.URL URL controller {id: 'name', type: 'string'}, {id: 'population', type: 'integer'} ], - getItem: function(str, callback) { + getItem: function(type, str, callback) { callback(/^\d+$/.test(str) ? str : ''); }, getSpan: function(item, view, str, callback) {