From 5bde38eda9e855a7ef673f3e57d07826d4d00ffe Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 24 Nov 2014 05:50:08 +0000 Subject: Frames; eliminate Array::rotate. Array::rotate extends the array object, polluting its name space; so, instead, we just rotate the array manually. --- lib/utils.coffee | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib') diff --git a/lib/utils.coffee b/lib/utils.coffee index c8a02328..b7f8731a 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -145,13 +145,6 @@ Function::curry = -> Array.copy = (array) -> Array.prototype.slice.call(array, 0) -Array::rotate = (count) -> - if @length - count = count % @length - count += @length while count < 0 - Array::push.apply(this, @splice(0, count)) - this - String::startsWith = (str) -> @indexOf(str) == 0 globalRoot = window ? global -- cgit v1.2.3