Permalink
Browse files

use return for nicer source/generated code

  • Loading branch information...
1 parent 79ad5c0 commit 77345a1bdf14442135374130fba6aaa8c58c3447 @timruffles timruffles committed Mar 28, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/assets/javascripts/turbolinks.js.coffee
@@ -75,7 +75,7 @@ cacheCurrentPage = ->
constrainPageCacheTo = (limit) ->
for own key, value of pageCache
pageCache[key] = null if key <= currentState.position - limit
- undefined
+ return
changePage = (title, body, runScripts) ->
document.title = title
@@ -94,12 +94,12 @@ executeScriptTags = ->
{ parentNode, nextSibling } = script
parentNode.removeChild script
parentNode.insertBefore copy, nextSibling
- undefined
+ return
removeNoscriptTags = ->
noscriptTags = Array::slice.call document.body.getElementsByTagName 'noscript'
noscript.parentNode.removeChild noscript for noscript in noscriptTags
- undefined
+ return
reflectNewUrl = (url) ->
if url isnt document.location.href

0 comments on commit 77345a1

Please sign in to comment.