Commit e818ddf2 authored by Julia Radzhabova's avatar Julia Radzhabova

Fix Bug 33560, Fix Bug 33549

parent 12d6ef13
......@@ -94,7 +94,7 @@ define([
'Common.Views.ExternalDiagramEditor': {
'setchartdata': _.bind(this.setChartData, this),
'drag': _.bind(function(o, state){
externalEditor.serviceCommand('window:drag', state == 'start');
externalEditor && externalEditor.serviceCommand('window:drag', state == 'start');
},this),
'show': _.bind(function(cmp){
var h = this.diagramEditorView.getHeight(),
......@@ -138,7 +138,7 @@ define([
},
handler: function(result, value) {
externalEditor.serviceCommand('queryClose',{mr:result});
externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
return true;
},
......
......@@ -94,7 +94,7 @@ define([
'Common.Views.ExternalMergeEditor': {
'setmergedata': _.bind(this.setMergeData, this),
'drag': _.bind(function(o, state){
externalEditor.serviceCommand('window:drag', state == 'start');
externalEditor && externalEditor.serviceCommand('window:drag', state == 'start');
},this),
'show': _.bind(function(cmp){
var h = this.mergeEditorView.getHeight(),
......@@ -138,7 +138,7 @@ define([
},
handler: function(result, value) {
externalEditor.serviceCommand('queryClose',{mr:result});
externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
return true;
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment