diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-09 17:42:31 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-09 17:42:31 -0500 |
commit | 3eeee367082d74d2bf9a25e78b9b397b37bbe926 (patch) | |
tree | 0c216fe04dbc5ecffe7e8000f49bc9735b071a4c /common | |
parent | 12cde15d4b31dcbfb8732053b74742ac46852cef (diff) | |
download | pentadactyl-3eeee367082d74d2bf9a25e78b9b397b37bbe926.tar.gz |
Fix deprecation warnings in buffer.js.
--HG--
extra : rebase_source : a0dd9dfbb43d16a88eea7c3a07bbb3756cdbb1f2
Diffstat (limited to 'common')
-rw-r--r-- | common/content/buffer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js index 65976d30..63472062 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -425,7 +425,7 @@ var Buffer = Module("buffer", { * @property {number} The buffer's horizontal scroll percentile. */ get scrollXPercent() { - let elem = Buffer.findScrollable(0, true); + let elem = buffer.findScrollable(0, true); if (elem.scrollWidth - elem.clientWidth === 0) return 0; return elem.scrollLeft * 100 / (elem.scrollWidth - elem.clientWidth); @@ -435,7 +435,7 @@ var Buffer = Module("buffer", { * @property {number} The buffer's vertical scroll percentile. */ get scrollYPercent() { - let elem = Buffer.findScrollable(0, false); + let elem = buffer.findScrollable(0, false); if (elem.scrollHeight - elem.clientHeight === 0) return 0; return elem.scrollTop * 100 / (elem.scrollHeight - elem.clientHeight); @@ -806,7 +806,7 @@ var Buffer = Module("buffer", { elem = find(elem); if (!(elem instanceof Element)) { - let doc = Buffer.findScrollableWindow().document; + let doc = buffer.findScrollableWindow().document; elem = find(doc.body || doc.getElementsByTagName("body")[0] || doc.documentElement); } |