Skip to content

Commit 270d7ce

Browse files
committed
Shorten setInterval call
The interval step callback and just be the single function which gets called inside current callback.
1 parent 4826f5b commit 270d7ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

midnight.jquery.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@
248248

249249
// NANANANANANANANA GRASAAAAA
250250
// (This is the ghetto way of keeping the section values updated after any kind of reflow. The overhead is minimal)
251-
setInterval(function(){
252-
recalculateSections();
253-
}, 1000);
251+
setInterval(recalculateSections, 1000);
254252

255253

256254
var recalculateHeaders = function(){
@@ -406,4 +404,4 @@
406404

407405
};
408406

409-
})(jQuery));
407+
})(jQuery));

0 commit comments

Comments
 (0)