Skip to content

Commit 5507c32

Browse files
committed
Updated for CoffeeScript 2
1 parent 5705874 commit 5507c32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Smooth.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ class LinearInterpolator extends AbstractInterpolator
112112

113113

114114
class CubicInterpolator extends AbstractInterpolator
115-
constructor: (array, config)->
115+
constructor: (array, config) ->
116+
super arguments...
116117
#clamp cubic tension to [0,1] range
117118
@tangentFactor = 1 - Math.max 0, Math.min 1, config.cubicTension
118-
super
119119

120120
# Cardinal spline with tension 0.5)
121121
getTangent: (k) -> @tangentFactor*(@getClippedInput(k + 1) - @getClippedInput(k - 1))/2
@@ -143,7 +143,7 @@ makeSincKernel = (window) -> (x) -> sinc(x)*window(x)
143143

144144
class SincFilterInterpolator extends AbstractInterpolator
145145
constructor: (array, config) ->
146-
super
146+
super arguments...
147147
#Create the lanczos kernel function
148148
@a = config.sincFilterSize
149149

0 commit comments

Comments
 (0)