Merge pull request #257 from stweil/master

templates: Code cleanup
This commit is contained in:
Roman Schmerold
2015-11-14 19:16:11 +01:00

View File

@@ -8,7 +8,7 @@
if (!execAsap) if (!execAsap)
func.apply(obj, args); func.apply(obj, args);
timeout = null; timeout = null;
}; }
if (timeout) if (timeout)
clearTimeout(timeout); clearTimeout(timeout);
@@ -17,7 +17,7 @@
timeout = setTimeout(delayed, threshold || 100); timeout = setTimeout(delayed, threshold || 100);
}; };
} };
// smartresize // smartresize
jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); }; jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
@@ -140,4 +140,4 @@ function circularText(canvas, x, y, size, text, color) {
fontFamily: "Lucida Grande, Verdana, sans-serif", fontFamily: "Lucida Grande, Verdana, sans-serif",
text: text text: text
}); });
} }