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.

45 lines
780 B

/*jslint laxbreak:true */
/*jslint laxcomma:true */
/*jslint loopfunc:true */
/*jslint strict:true */
/*jslint browser:true */
/*jslint devel:true */
// Filename: app.js
define([
"jquery"
, "underscore"
, "backbone"
, "models/client"
],
function( $, _, Backbone, ClientModel ) {
"use strict";
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 };
});