remove mismatched html tags
[fnpeditor.git] / src / fnpjs / layout.js
index c1d110e..715d2d2 100644 (file)
@@ -1,21 +1,23 @@
 define(['libs/jquery', 'libs/underscore'], function($ ,_) {
     'use strict';
       
-    var Layout = function(template) {
+    var Layout = function(template, tutorial) {
         var layout = this;
-        this.dom = $(_.template(template)());
+        this.dom = $(_.template(template)({tutorial: tutorial}));
         this.views = {};
         
         this.dom.onShow = function() {
             _.values(layout.views).forEach(function(view) {
-                if(view.onShow)
+                if(view.onShow) {
                     view.onShow();
+                }
             });
         };
         this.dom.onHide = function() {
             _.values(layout.views).forEach(function(view) {
-                if(view.onHide)
+                if(view.onHide) {
                     view.onHide();
+                }
             });
         };