todomvc
Version:
> Helping you select an MV\* framework
23 lines (16 loc) • 438 B
JavaScript
/*global Epitome, App */
/*jshint mootools:true */
(function (window) {
'use strict';
window.App = window.App || {};
App.Router = new Class({
Extends: Epitome.Router,
showActiveFilter: function () {
// fix up the links for current filter
var self = this;
document.getElements('#filters li a').each(function (link) {
link.set('class', link.get('href') === self.req ? 'selected' : '');
});
}
});
})(window);