minor - add undefined and null check

This commit is contained in:
Heng Sin Low 2010-02-26 01:52:35 +00:00
parent 1516f063b5
commit cd210e3170
1 changed files with 6 additions and 4 deletions

View File

@ -19,9 +19,11 @@ function ad_closeBuble(uuid) {
} }
function scrollToRow(uuid){ function scrollToRow(uuid){
var cmp = $e(uuid); var cmp = $e(uuid);
cmp.style.display="inline"; if (!(typeof cmp == "undefined") && !(cmp == null)) {
cmp.focus(); cmp.style.display="inline";
cmp.style.display="none"; cmp.focus();
cmp.style.display="none";
}
} }