Try to avoid occasional error messages.

This commit is contained in:
Thomas Tanghus 2012-07-10 13:16:26 +02:00
parent 880d80be67
commit d45d73eecf
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@
function getViewportOffset() {
return {
top: w.pageYOffset || documentElement.scrollTop || d.body.scrollTop,
left: w.pageXOffset || documentElement.scrollLeft || d.body.scrollLeft
top: w.pageYOffset || documentElement.scrollTop || (d.body?d.body.scrollTop:0),
left: w.pageXOffset || documentElement.scrollLeft || (d.body?d.body.scrollLeft:0)
};
}