javascript - Triggering a Backbone.js event when the current date changes -


is there simple way trigger backbone.js event when current date (just day, not time) changes?

i don't have better idea checking regularly:

var lastcheckeddate = new date(); setinterval(function () {     var d = new date();     //todo: check whether day in d , lastcheckeddate same or not     //todo: if not, trigger event     lastcheckeddate = d; }, 10000); //this check in every 10 seconds 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -