diff --git a/demo/js/app.js b/demo/js/app.js index 33431f4f..a7cbff75 100755 --- a/demo/js/app.js +++ b/demo/js/app.js @@ -1,20 +1,21 @@ $(function() { - // do not like all these window globals ... - // window.$container = $('.container .right-panel'); - window.$container = $('.data-explorer-here'); + var $el = $('
'); + $el.appendTo($('.data-explorer-here')); var dataset = demoDataset(); window.dataExplorer = new recline.View.DataExplorer({ - el: window.$container + el: $el , model: dataset }); Backbone.history.start(); setupLoadFromWebstore(function(dataset) { window.dataExplorer.remove(); + var $el = $('
'); + $el.appendTo($('.data-explorer-here')); window.dataExplorer = null; window.dataExplorer = new recline.View.DataExplorer({ - model: dataset, + el: $el + , model: dataset }); - window.$container.append(window.dataExplorer.el); }); $('a.set-read-only').click(function() { window.dataExplorer.setReadOnly();