Commit a10afb41 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Если состояние не сменилось, не отправляем эвентов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51939 954022d7-b5bf-4e40-9824-e11837661b57
parent 26f6c34a
......@@ -5828,10 +5828,12 @@
return this.isSelectOnShape;
},
setSelectionShape: function (isSelectOnShape) {
this.isSelectOnShape = isSelectOnShape;
// отправляем евент для получения свойств картинки, шейпа или группы
this._trigger("selectionNameChanged", this.getSelectionName());
this._trigger("selectionChanged", this.getSelectionInfo());
if (this.isSelectOnShape !== isSelectOnShape) {
this.isSelectOnShape = isSelectOnShape;
// отправляем евент для получения свойств картинки, шейпа или группы
this._trigger("selectionNameChanged", this.getSelectionName());
this._trigger("selectionChanged", this.getSelectionInfo());
}
},
setSelection: function (range, validRange) {
......
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