mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
Removing commented code in compile_splice -- this is working correctly now.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user