Skip to content

Commit

Permalink
Replace multiple var declarations with one (better compression).
Browse files Browse the repository at this point in the history
  • Loading branch information
kangax committed Apr 12, 2010
1 parent ade6be7 commit 32779c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rails.js
Expand Up @@ -49,9 +49,9 @@ document.observe("dom:loaded", function() {
}

if (csrf_param) {
var param = csrf_param.readAttribute('content');
var token = csrf_token.readAttribute('content');
var field = new Element('input', { type: 'hidden', name: param, value: token });
var param = csrf_param.readAttribute('content'),
token = csrf_token.readAttribute('content'),
field = new Element('input', { type: 'hidden', name: param, value: token });
form.appendChild(field);
}

Expand Down

0 comments on commit 32779c1

Please sign in to comment.