Change variable definition style

Use 'var' everytime, instead of using ','.
This commit is contained in:
Hyunje Alex Jun
2016-02-22 22:45:32 +09:00
parent e63d4c03cb
commit a2b2a77de1
18 changed files with 89 additions and 89 deletions

View File

@@ -38,10 +38,11 @@
<p><strong>Start / End</strong> <span id="start-end">(scroll to the start or end of an axis)</span></p>
<script>
var container = document.querySelector('.container')
, axis = document.getElementById('axis')
, direction = document.getElementById('direction')
, startEnd = document.getElementById('start-end');
var container = document.querySelector('.container');
var axis = document.getElementById('axis');
var direction = document.getElementById('direction');
var startEnd = document.getElementById('start-end');
Ps.initialize(container);
document.addEventListener('ps-scroll-y', function () {
@@ -83,7 +84,6 @@
document.addEventListener('ps-x-reach-end', function () {
startEnd.innerHTML = 'Reached end of <em>X-Axis</em>'
});
</script>
</body>
</html>