From 2860b0ceae8e08704996b3397fb8b962ca60ab95 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 28 Nov 2016 18:11:12 -0500 Subject: tree init --- tree/public/assets/js/lib/view/AboutView.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tree/public/assets/js/lib/view/AboutView.js (limited to 'tree/public/assets/js/lib/view/AboutView.js') diff --git a/tree/public/assets/js/lib/view/AboutView.js b/tree/public/assets/js/lib/view/AboutView.js new file mode 100644 index 0000000..c2daf70 --- /dev/null +++ b/tree/public/assets/js/lib/view/AboutView.js @@ -0,0 +1,28 @@ +var AboutView = View.extend({ + + el: "#about", + + // template: liquid($('#tmpl-about').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 = "about" + this.render(this.data) + }, + + hide: function(){ + }, + +}) -- cgit v1.2.3-70-g09d2