Clean up: removing unused template
[fnpeditor.git] / fnpjs / layout.js
1 define(['libs/jquery-1.9.1.min', 'libs/underscore-min'], function($ ,_) {\r
2     'use strict';\r
3       \r
4     var Layout = function(template) {\r
5         this.dom = $(_.template(template)());\r
6         \r
7     };\r
8     \r
9     Layout.prototype.setView = function(place, view) {\r
10         this.dom.find('[fnpjs-place=' + place + ']').append(view);\r
11     };\r
12     \r
13     Layout.prototype.getAsView = function() {\r
14         return this.dom\r
15     };\r
16     \r
17     return {Layout: Layout};\r
18 });