Commit dcd98b74 authored by Pascal Hartig's avatar Pascal Hartig

dermis: jshint style for routes

parent 4965102c
define(['js/models/Todo', 'js/models/Todos'], function(Todo, Todos){
var app = {
show: function(){
Todos.set('mode', 'active');
$('.selected').removeClass('selected');
$('a[href$="#/active"]').addClass('selected');
}
};
return app;
});
\ No newline at end of file
/*global define $*/
define(['js/models/Todo', 'js/models/Todos'], function (Todo, Todos) {
'use strict';
var app = {
show: function () {
Todos.set('mode', 'active');
$('.selected').removeClass('selected');
$('a[href$="#/active"]').addClass('selected');
}
};
return app;
});
define(['js/models/Todo', 'js/models/Todos'], function(Todo, Todos){
var app = {
show: function(){
Todos.set('mode', 'completed');
$('.selected').removeClass('selected');
$('a[href$="#/completed"]').addClass('selected');
}
};
return app;
});
\ No newline at end of file
/*global define $*/
define(['js/models/Todo', 'js/models/Todos'], function (Todo, Todos) {
'use strict';
var app = {
show: function () {
Todos.set('mode', 'completed');
$('.selected').removeClass('selected');
$('a[href$="#/completed"]').addClass('selected');
}
};
return app;
});
define(['js/models/Todo', 'js/models/Todos'], function(Todo, Todos){
var app = {
show: function(){
Todos.set('mode', 'all');
$('.selected').removeClass('selected');
$('a[href$="#/"]').addClass('selected');
}
};
return app;
});
\ No newline at end of file
/*global define $*/
define(['js/models/Todo', 'js/models/Todos'], function (Todo, Todos) {
'use strict';
var app = {
show: function () {
Todos.set('mode', 'all');
$('.selected').removeClass('selected');
$('a[href$="#/"]').addClass('selected');
}
};
return app;
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment