2012-04-18 05:05:32 +00:00
|
|
|
define( [
|
|
|
|
|
'jquery',
|
2012-04-23 05:15:34 +00:00
|
|
|
'views/managed-view',
|
2012-04-18 05:05:32 +00:00
|
|
|
'text!views/templates/container.html'
|
|
|
|
|
],
|
2012-04-23 05:15:34 +00:00
|
|
|
function ( $, ManagedView, template ) {
|
2012-04-18 05:05:32 +00:00
|
|
|
// Using ECMAScript 5 strict mode during development. By default r.js will ignore that.
|
|
|
|
|
"use strict";
|
|
|
|
|
|
2012-04-23 05:15:34 +00:00
|
|
|
return ManagedView.extend( {
|
2012-04-21 04:56:40 +00:00
|
|
|
el : "body",
|
2012-04-18 05:05:32 +00:00
|
|
|
|
2012-04-21 04:56:40 +00:00
|
|
|
initialize : function () {
|
2012-04-23 05:15:34 +00:00
|
|
|
ManagedView.prototype.initialize.call(this, template);
|
2012-04-18 05:05:32 +00:00
|
|
|
},
|
|
|
|
|
|
2012-04-21 04:56:40 +00:00
|
|
|
render : function () {
|
|
|
|
|
this.$el.html( this.template );
|
2012-04-18 05:05:32 +00:00
|
|
|
}
|
|
|
|
|
} );
|
|
|
|
|
} );
|