fix initialization routines

This commit is contained in:
ansuz
2016-02-12 16:21:52 +01:00
parent f1915d3b7c
commit 4a05a859e6
3 changed files with 12 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ define([
var to,
delay = 500;
return function (content) {
to && clearTimeout(to);
if (to) { clearTimeout(to); }
to = setTimeout(function () {
$style.text(content);
},delay);