tagomoris/shib — pull request #11 by wyukawa (2014-01-27 10:35:46+00:00)
Title: fix the problem that some hive databases do not display.

for example, there are "a", "b", "c", "default", "e", "f" as hive databases.
in this case, "e" and "f" do not display.

I think that it is correct to use splice(index, howmany).

for example,

var dbnamelist = ["a", "b", "c", "default", "e", "f"];
var len = dbnamelist.length;
for (var i = 0 ; i < len ; i++) {
if (dbnamelist[i] === "default") {
dbnamelist.splice(i);
break;
}
}
dbnamelist.unshift("default");
//[ 'default', 'a', 'b', 'c']

var dbnamelist = ["a", "b", "c", "default", "e", "f"];
var len = dbnamelist.length;
for (var i = 0 ; i < len ; i++) {
if (dbnamelist[i] === "default") {
dbnamelist.splice(i, 1);
break;
}
}
dbnamelist.unshift("default");
//[ 'default', 'a', 'b', 'c', 'e', 'f' ]