Initial commit

This commit is contained in:
Juho Teperi
2013-05-13 11:43:34 +03:00
commit fbf8fb087a
44 changed files with 2425 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
'use strict';
define([
'backbone',
'Template'
], function (Backbone, Template) {
var TotalView = Backbone.View.extend({
el: '.totalWidget',
initialize: function () {
this.render.apply(this);
this.model.bind('change', this.render, this);
},
render: function () {
this.$el.html(Template.total(this.model.toJSON()));
}
});
return TotalView;
});