3den/riotjs-todomvc

View on GitHub
js/app.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

(function ($) {
    var todo = new Todo();
    routes({todo: todo});

    // Binds the Todo Presenter
    todoPresenter($("#todoapp"), {
        model: todo,
        template: $('#task-template').html(),
    });

    // Binds the Footer Presenter
    footerPresenter($("#footer"), {
        model: todo,
        template: $('#footer-template').html(),
    });
})(jQuery);