smore-inc/clippy.js — pull request #9 by Zarel (2012-06-12 22:09:58+00:00)
Title: Fix a couple of bugs

Hi!

This pull request fixes a few bugs I encountered while using clippy.js:

The first one positions the balloon correctly when the window wasn't scrolled to the top. This happened because the previous code forgot to account for `$.offset()` being relative to the document, but the balloon being positioned relative to the viewport.

The second one makes `.speak`'s `hold` parameter work correctly, by not starting a hide timer in situations where it doesn't make sense to.