You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
261 B
17 lines
261 B
var StatusBase = new Class({
|
|
|
|
setup: function(statuses){
|
|
var self = this;
|
|
|
|
self.statuses = statuses;
|
|
|
|
},
|
|
|
|
get: function(id){
|
|
return this.statuses.filter(function(status){
|
|
return status.id == id
|
|
}).pick()
|
|
},
|
|
|
|
});
|
|
window.Status = new StatusBase();
|
|
|