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 @@ ...@@ -5828,10 +5828,12 @@
return this.isSelectOnShape; return this.isSelectOnShape;
}, },
setSelectionShape: function (isSelectOnShape) { setSelectionShape: function (isSelectOnShape) {
this.isSelectOnShape = isSelectOnShape; if (this.isSelectOnShape !== isSelectOnShape) {
// отправляем евент для получения свойств картинки, шейпа или группы this.isSelectOnShape = isSelectOnShape;
this._trigger("selectionNameChanged", this.getSelectionName()); // отправляем евент для получения свойств картинки, шейпа или группы
this._trigger("selectionChanged", this.getSelectionInfo()); this._trigger("selectionNameChanged", this.getSelectionName());
this._trigger("selectionChanged", this.getSelectionInfo());
}
}, },
setSelection: function (range, validRange) { 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