Created
August 19, 2016 13:19
-
-
Save meteormanaged/2f1a75579a901412b68362bd90115e6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// partial code | |
// You can tighten this up | |
return { | |
setPosition: setPosition, | |
getPosition: getPosition, | |
incrPosition: incrPosition, | |
decrPosition: decrPosition, | |
resetPosition: resetPosition, | |
addMarker: addMarker, | |
nextLocationShow: nextLocationShow, | |
prevLocationShow: prevLocationShow, | |
render: render | |
}; | |
// Like this | |
return { | |
setPosition, | |
getPosition, | |
incrPosition, | |
decrPosition, | |
resetPosition, | |
addMarker, | |
nextLocationShow, | |
prevLocationShow, | |
render, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment