implemented dispatcher commands

This commit is contained in:
Borys Levytskyi
2015-04-03 18:55:39 +03:00
parent d301d0c317
commit 8e5be22fe3
6 changed files with 136 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
(function(app){
(function(app, is){
app.controller('expressionInputCtrl', {
$dispatcher:null,
@@ -25,9 +25,8 @@
onViewAttached: function(el) {
var r = 1;
},
display: function (input, model) {
var result = new app.models.DisplayResult(input, model);
var view = app.buildViewFor(result);
display: function ( model) {
var view = app.buildViewFor(model);
var vw = this.viewElement;
if(vw.childNodes.length == 0) {
@@ -41,4 +40,4 @@
app.controller('resultViewCtrl', app.service('resultView'));
})(window.app);
})(window.app, window.is);