diff options
author | Doug Kearns <dougkearns@gmail.com> | 2009-09-13 03:35:48 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2009-09-14 15:19:56 +1000 |
commit | 7c66dc2b17721fcdee4eb16a2f190a2873e022bf (patch) | |
tree | 57e515fb3a68160d0c6ff4e58716dbf8a4d1e1ab /common/content/buffer.js | |
parent | a2a2f17e6263432dcb124097a083847fef5c0c9f (diff) | |
download | pentadactyl-7c66dc2b17721fcdee4eb16a2f190a2873e022bf.tar.gz |
Move util.Array to modules.Array_.
Diffstat (limited to 'common/content/buffer.js')
-rw-r--r-- | common/content/buffer.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js index cc7f0b94..5492c439 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -71,7 +71,7 @@ function Buffer() //{{{ { let values = ZoomManager.zoomValues; let cur = values.indexOf(ZoomManager.snap(ZoomManager.zoom)); - let i = util.Math.constrain(cur + steps, 0, values.length - 1); + let i = Math_.constrain(cur + steps, 0, values.length - 1); if (i == cur && fullZoom == ZoomManager.useFullZoom) liberator.beep(); @@ -96,7 +96,7 @@ function Buffer() //{{{ if (win.scrollMaxX > 0 || win.scrollMaxY > 0) return win; - for (let frame in util.Array.itervalues(win.frames)) + for (let frame in Array_.itervalues(win.frames)) if (frame.scrollMaxX > 0 || frame.scrollMaxY > 0) return frame; @@ -359,7 +359,7 @@ function Buffer() //{{{ if (elements.length > 0) { - count = util.Math.constrain(count, 1, elements.length); + count = Math_.constrain(count, 1, elements.length); buffer.focusElement(elements[count - 1]); } else @@ -648,7 +648,7 @@ function Buffer() //{{{ level = buffer.textZoom + parseInt(arg, 10); // relative args shouldn't take us out of range - level = util.Math.constrain(level, ZOOM_MIN, ZOOM_MAX); + level = Math_.constrain(level, ZOOM_MIN, ZOOM_MAX); } else return void liberator.echoerr("E488: Trailing characters"); @@ -805,7 +805,7 @@ function Buffer() //{{{ const ACCESS_READ = Ci.nsICache.ACCESS_READ; let cacheKey = doc.location.toString().replace(/#.*$/, ""); - for (let proto in util.Array.itervalues(["HTTP", "FTP"])) + for (let proto in Array_.itervalues(["HTTP", "FTP"])) { try { |