// Compiled by ClojureScript 0.0-2138
goog.provide('lt.util.js');
goog.require('cljs.core');
lt.util.js.every = (function every(ms,func){return setInterval(func,ms);
});
lt.util.js.wait = (function wait(ms,func){return setTimeout(func,ms);
});
lt.util.js.now = (function now(){return (new Date()).getTime();
});
lt.util.js.toggler = (function toggler(cur,op,op2){if(cljs.core._EQ_.call(null,cur,op))
{return op2;
} else
{return op;
}
});
lt.util.js.debounce = (function debounce(ts,func){return Cowboy.debounce(ts,func);
});
lt.util.js.throttle = (function throttle(ts,func){return Cowboy.throttle(ts,func);
});
lt.util.js.__GT_clj = (function __GT_clj(data){return cljs.core.js__GT_clj.call(null,data,new cljs.core.Keyword(null,"keywordize-keys","keywordize-keys",4191781672),true);
});
lt.util.js.entities = new cljs.core.PersistentArrayMap(null, 6, ["&","&amp;","<","&lt;",">","&gt;","\"","&quot;","'","&#39;","/","&#x2F;"], null);
lt.util.js.escape = (function escape__$1(str){if(cljs.core.truth_(str))
{return str.replace((new RegExp("[&<>\"'/]","g")),(function (s){return lt.util.js.entities.call(null,s);
}));
} else
{return null;
}
});
