From ec41dd9dcc8e9af0d108297c6cfcfcef43d0d105 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 28 Nov 2016 18:12:34 -0500 Subject: new reality co --- new-reality/public/assets/js/lib/view/HomeView.js | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 new-reality/public/assets/js/lib/view/HomeView.js (limited to 'new-reality/public/assets/js/lib/view/HomeView.js') diff --git a/new-reality/public/assets/js/lib/view/HomeView.js b/new-reality/public/assets/js/lib/view/HomeView.js new file mode 100644 index 0000000..b2ceec1 --- /dev/null +++ b/new-reality/public/assets/js/lib/view/HomeView.js @@ -0,0 +1,28 @@ +var HomeView = View.extend({ + + el: "#home", + + // template: liquid($('#tmpl-home').html()), + + events: { + }, + + initialize: function(options){ + options = options || {} + var data = this.data = options.data + }, + + render: function(){ + if (this.rendered) return + this.rendered = true + }, + + show: function(){ + document.body.className = "home" + this.render(this.data) + }, + + hide: function(){ + }, + +}) -- cgit v1.2.3-70-g09d2