Commit 92aa2dc3 authored by S Anand's avatar S Anand

BUG: ensure that url_update mode is a string

parent 9fc30f66
......@@ -194,6 +194,9 @@ _url_update = function(args, mode) {
for (hash={}, i=0, l=val.length; i<l; i++)
hash[val[i].toString()] = 1
// Ensure that mode is a string
mode = '' + mode
if (mode.match(/add/i))
search_list[key] = search_list[key].concat(val)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment