Removing commented code in compile_splice -- this is working correctly now.

This commit is contained in:
Stan Angeloff
2010-03-21 18:15:14 +02:00
committed by matehat
parent 7d1fbeb708
commit 09e1526bca
2 changed files with 0 additions and 14 deletions

View File

@@ -772,13 +772,6 @@ exports.AssignNode: class AssignNode extends BaseNode
# Compile the assignment from an array splice literal, using JavaScript's
# `Array#splice` method.
compile_splice: (o) ->
# l: @variable.properties.length
# range: @variable.properties[l - 1].range
# plus: if range.exclusive then '' else ' + 1'
# from: range.from.compile(o)
# to: range.to.compile(o) + ' - ' + from + plus
# val: @value.compile(o)
# "${name}.splice.apply($name, [$from, $to].concat($val))"
@variable.compile(merge(o, {only_first: true, splice: true, replace: @value}))
#### CodeNode