diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-08-06 10:09:21 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-08-06 10:09:21 -0400 |
commit | f1493e5e8a460e736dd09ffb14389bd21eab4ce9 (patch) | |
tree | 6818c369f1866a1f959627d45486e100a4e20a33 /common/content | |
parent | d828a53b7a045a993650b661a2170edaea3a5214 (diff) | |
download | pentadactyl-f1493e5e8a460e736dd09ffb14389bd21eab4ce9.tar.gz |
Flush the startup cache when re-sourcing a JS file.
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/buffer.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js index 6d3c93fa..eb84f668 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1756,6 +1756,11 @@ var Buffer = Module("buffer", { if (isinstance(services.focus.activeWindow.document.activeElement, [HTMLInputElement, HTMLButtonElement, Ci.nsIDOMXULButtonElement])) return Events.PASS; + + if (isinstance(buffer.focusedFrame.document.activeElement, + [HTMLInputElement, HTMLButtonElement, Ci.nsIDOMXULButtonElement])) + return Events.PASS; + buffer.scrollVertical("pages", Math.max(args.count, 1)); }, { count: true }); |