todomvc
Version:
> Helping you select an MV\* framework
14 lines (12 loc) • 319 B
JavaScript
exports.connect = function() {
var model = this.model;
// Hide the reconnect link for a second after clicking it
model.set('hideReconnect', true);
setTimeout(function() {
model.set('hideReconnect', false);
}, 1000);
model.socket.socket.connect();
};
exports.reload = function() {
window.location.reload();
};