mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-03-16 22:20:23 +00:00
21 lines
No EOL
457 B
JavaScript
21 lines
No EOL
457 B
JavaScript
define( [
|
|
'jquery',
|
|
'views/managed-view',
|
|
'text!views/templates/container.html'
|
|
],
|
|
function ( $, ManagedView, template ) {
|
|
// Using ECMAScript 5 strict mode during development. By default r.js will ignore that.
|
|
"use strict";
|
|
|
|
return ManagedView.extend( {
|
|
el : "body",
|
|
|
|
initialize : function () {
|
|
ManagedView.prototype.initialize.call(this, template);
|
|
},
|
|
|
|
render : function () {
|
|
this.$el.html( this.template );
|
|
}
|
|
} );
|
|
} ); |