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.
|
|
|
/*jslint laxbreak:true */
|
|
|
|
/*jslint laxcomma:true */
|
|
|
|
/*jslint loopfunc:true */
|
|
|
|
/*jslint strict:true */
|
|
|
|
/*jslint browser:true */
|
|
|
|
/*jslint devel:true */
|
|
|
|
define([
|
|
|
|
"jquery"
|
|
|
|
, "backbone"
|
|
|
|
, "bootstrap"
|
|
|
|
]
|
|
|
|
, function ($, Backbone, Bootstrap) {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var List = Backbone.View.extend({
|
|
|
|
el: $("table")
|
|
|
|
, type: "playlist"
|
|
|
|
|
|
|
|
, initialize: function (collection, options) {
|
|
|
|
this.$el = $(options.el).find("table:first");
|
|
|
|
|
|
|
|
this.type = options.type || "playlist";
|
|
|
|
|
|
|
|
List.__super__.initialize.apply(this, arguments);
|
|
|
|
|
|
|
|
this.$el.html("<tr><td><h1>" + this.type + "</h1></td></tr>");
|
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
, render: function () {
|
|
|
|
return this.$el;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
return List;
|
|
|
|
});
|