Skip to content

Commit

Permalink
Issue #55. Fixed inline JavaScript under :each break
Browse files Browse the repository at this point in the history
  • Loading branch information
iverbitskiy@yahoo.com committed Dec 24, 2011
1 parent 8c50210 commit 349ede1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/haml.js
Expand Up @@ -308,8 +308,8 @@ var Haml;
'var ' + rvar + ' = [], ' + ivar + ', ' + vvar + '; ' +
'for (' + ivar + ' in ' + avar + ') { ' +
'if (' + avar + '.hasOwnProperty(' + ivar + ')) { ' +
vvar + ' = ' + avar + '[' + ivar + ']; ' +
rvar + '.push(\n' + (this.render_contents() || "''") + '\n); ' +
vvar + ' = ' + avar + '[' + ivar + ']; _$output = ' + (this.render_contents() || "''") + ";" +
rvar + '.push(_$output); ' +
'} } return ' + rvar + '.join(""); }).call(this)';
}
},
Expand Down

0 comments on commit 349ede1

Please sign in to comment.