Permalink
Browse files

Merge pull request #8736 from tricknotes/apply-var

Apply `var` keyword to js at welcome#index
  • Loading branch information...
2 parents 7019858 + 37e250f commit 3e35b6e1f07604c0f2f2be50823746972fd0113e @guilleiguaran guilleiguaran committed Jan 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/templates/rails/welcome/index.html.erb
View
3 railties/lib/rails/templates/rails/welcome/index.html.erb
@@ -173,7 +173,8 @@
</style>
<script>
function about() {
- info = document.getElementById('about-content');
+ var info = document.getElementById('about-content');
+ var xhr;
if (window.XMLHttpRequest)
{ xhr = new XMLHttpRequest(); }
else

0 comments on commit 3e35b6e

Please sign in to comment.