From 6dee96bb156e0f0e4f5219cd6d8ca664e0047567 Mon Sep 17 00:00:00 2001 From: Tom Conkling Date: Wed, 20 Feb 2008 00:55:28 +0000 Subject: [PATCH] use Function.call(), not Function.apply() git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4941 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/RingBuffer.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/util/RingBuffer.as b/src/as/com/threerings/util/RingBuffer.as index 233aa9328..e4060fddb 100644 --- a/src/as/com/threerings/util/RingBuffer.as +++ b/src/as/com/threerings/util/RingBuffer.as @@ -183,7 +183,7 @@ public class RingBuffer public function every (callback :Function, thisObject :* = null) :Boolean { for (var i :int = 0; i < _length; ++i) { - if (!callback.apply(thisObject, this.at(i))) { + if (!callback.call(thisObject, this.at(i))) { return false; } } @@ -197,7 +197,7 @@ public class RingBuffer public function forEach (callback :Function, thisObject :* = null) :void { for (var i :int = 0; i < _length; ++i) { - callback.apply(thisObject, this.at(i)); + callback.call(thisObject, this.at(i)); } }