Declare the trampoline variable before using it.

This makes the trampoline "module" work in strict mode which you are now using everywhere.
This commit is contained in:
Timothy Hobbs 2014-02-19 19:56:05 +00:00
parent 05c8e0e30a
commit c0d4c4de4b

View file

@ -5,6 +5,7 @@ Elm.Native.Trampoline.make = function(elm) {
if (elm.Native.Trampoline.values) return elm.Native.Trampoline.values;
// trampoline : Trampoline a -> a
var trampoline;
trampoline = function(t) {
var tramp = t;
while(true) {