diff --git a/src/recline.js b/src/recline.js index 62e4a132..967788b8 100755 --- a/src/recline.js +++ b/src/recline.js @@ -1,41 +1,5 @@ -window.recline = {}; - -recline.Document = Backbone.Model.extend({}); - -recline.DocumentList = Backbone.Collection.extend({ - webStore: new WebStore(this.url), - model: recline.Document -}); - -recline.DataTable = Backbone.View.extend({ - - el: ".data-table-container", - - documents: new recline.DocumentList(this.url), - - // template: TODO ??? - - events: { - - }, - - initialize: function() { - var that = this; - this.documents.fetch({ - success: function(collection, resp) { - that.render() - } - }) - }, - - render: function() { - var template = $( ".dataTableTemplate:first" ).html() - , htmls = $.mustache(template, {rows: this.documents.toJSON()} ) - ; - $(this.el).html(htmls); - return this; - } -}); +// Original Recline code - **Deprecated** +// Left intact while functionality is transferred across to new Backbone setup // var recline = function() { //