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.

37 lines
617 B

// Filename: app.js
define([
"jquery"
, "underscore"
, "backbone"
, "models/client"
],
function( $, _, Backbone, ClientModel ) {
var init = function(){
console.log( "app.js > init()" );
var client = new ClientModel({
hostname: "daap.localhost"
, protocol: "http"
, port: 80
, password: "lawl"
});
console.log(client.attributes);
client.on("unauthorized", function __client_unauthorized() {
console.log(arguments);
});
client.on("inited", function () {
console.log(client.url(), arguments);
});
console.log(client);
client.init();
}
return { init: init };
});