1
0
Fork 0
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.

43 lines
866 B

/*jslint laxbreak:true */
/*jslint laxcomma:true */
/*jslint loopfunc:true */
/*jslint strict:true */
/*jslint browser:true */
/*jslint devel:true */
define([
"underscore"
, "backbone"
, "models/server"
, "backbone-localstorage"
]
, function (_, Backbone, ServerModel) {
"use strict";
var Server = Backbone.Collection.extend({
model: ServerModel
, localStorage: new Backbone.LocalStorage("daap-servers")
, initialize: function () {
_.bindAll(this, "relayClientTrigger");
//this.on("all", this.relayClientTrigger);
return Server.__super__.initialize.call(this, arguments);
}
/*
, relayClientTrigger: function() {
var eventName = arguments[0]
;
console.log(eventName);
if (eventName.indexOf("client") === 0) {
delete arguments[0];
//this.trigger(eventName, _.values(arguments));
}
}*/
});
return Server;
});