mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-04-07 00:21:01 +00:00
30 lines
No EOL
548 B
JavaScript
30 lines
No EOL
548 B
JavaScript
define( [
|
|
'jquery',
|
|
'backbone',
|
|
'text!views/templates/container.html'
|
|
],
|
|
function ( $, Backbone, template ) {
|
|
// Using ECMAScript 5 strict mode during development. By default r.js will ignore that.
|
|
"use strict";
|
|
|
|
return Backbone.View.extend( {
|
|
el : "body",
|
|
|
|
initialize : function () {
|
|
_.bindAll( this, "render" );
|
|
this.template = template;
|
|
},
|
|
|
|
render : function () {
|
|
this.$el.html( this.template );
|
|
},
|
|
|
|
show : function ( data ) {
|
|
this.$el.show();
|
|
},
|
|
|
|
update : function ( data ) {
|
|
|
|
}
|
|
} );
|
|
} ); |