CoffeeScript 0.9.0

This commit is contained in:
Jeremy Ashkenas
2010-08-04 23:14:34 -04:00
parent 5f2326e911
commit ff9af83358
23 changed files with 1188 additions and 1163 deletions

View File

@@ -1153,7 +1153,7 @@ exports.InNode = class InNode extends BaseNode
[@arr1, @arr2] = @array.compileReference o, precompile: yes
[i, l] = [o.scope.freeVariable(), o.scope.freeVariable()]
prefix = if @obj1 isnt @obj2 then @obj1 + '; ' else ''
"!!(function(){ #{prefix}for (var #i=0, #l=#{@arr1}.length; #i<#l; #i++) if (#{@arr2}[#i] === #@obj2) return true; }).call(this)"
"(function(){ #{prefix}for (var #i=0, #l=#{@arr1}.length; #i<#l; #i++) { if (#{@arr2}[#i] === #@obj2) return true; } return false; }).call(this)"
#### TryNode