mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-22 20:52:58 +01:00
Views unbinding
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
(function(app){
|
||||
|
||||
app.controller('expressionInputCtrl', {
|
||||
bindView: function (viewElement) {
|
||||
attachView: function (viewElement) {
|
||||
var dispatcher = app.service('dispatcher');
|
||||
viewElement.addEventListener('keyup', function (args) {
|
||||
if (args.keyCode != 13) {
|
||||
@@ -15,9 +16,12 @@
|
||||
});
|
||||
|
||||
app.service('resultView', {
|
||||
bindView: function(viewElement) {
|
||||
attachView: function(viewElement) {
|
||||
this.viewElement = viewElement;
|
||||
},
|
||||
detachView: function() {
|
||||
this.viewElement == null;
|
||||
},
|
||||
clear: function (){
|
||||
this.viewElement.innerHTML = '';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user