Commit e818ddf2 authored by Julia Radzhabova's avatar Julia Radzhabova

Fix Bug 33560, Fix Bug 33549

parent 12d6ef13
...@@ -94,7 +94,7 @@ define([ ...@@ -94,7 +94,7 @@ define([
'Common.Views.ExternalDiagramEditor': { 'Common.Views.ExternalDiagramEditor': {
'setchartdata': _.bind(this.setChartData, this), 'setchartdata': _.bind(this.setChartData, this),
'drag': _.bind(function(o, state){ 'drag': _.bind(function(o, state){
externalEditor.serviceCommand('window:drag', state == 'start'); externalEditor && externalEditor.serviceCommand('window:drag', state == 'start');
},this), },this),
'show': _.bind(function(cmp){ 'show': _.bind(function(cmp){
var h = this.diagramEditorView.getHeight(), var h = this.diagramEditorView.getHeight(),
...@@ -138,7 +138,7 @@ define([ ...@@ -138,7 +138,7 @@ define([
}, },
handler: function(result, value) { handler: function(result, value) {
externalEditor.serviceCommand('queryClose',{mr:result}); externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
return true; return true;
}, },
......
...@@ -94,7 +94,7 @@ define([ ...@@ -94,7 +94,7 @@ define([
'Common.Views.ExternalMergeEditor': { 'Common.Views.ExternalMergeEditor': {
'setmergedata': _.bind(this.setMergeData, this), 'setmergedata': _.bind(this.setMergeData, this),
'drag': _.bind(function(o, state){ 'drag': _.bind(function(o, state){
externalEditor.serviceCommand('window:drag', state == 'start'); externalEditor && externalEditor.serviceCommand('window:drag', state == 'start');
},this), },this),
'show': _.bind(function(cmp){ 'show': _.bind(function(cmp){
var h = this.mergeEditorView.getHeight(), var h = this.mergeEditorView.getHeight(),
...@@ -138,7 +138,7 @@ define([ ...@@ -138,7 +138,7 @@ define([
}, },
handler: function(result, value) { handler: function(result, value) {
externalEditor.serviceCommand('queryClose',{mr:result}); externalEditor && externalEditor.serviceCommand('queryClose',{mr:result});
return true; 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