Commit a6252df8 authored by Alexander.Trofimov's avatar Alexander.Trofimov

cell/view/DrawingObjectsController to function-closure

parent 1a2db979
......@@ -23,6 +23,12 @@
*
*/
"use strict";
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function (window, undefined) {
if(window.editor === "undefined" && window["Asc"]["editor"])
{
......@@ -498,3 +504,7 @@ DrawingObjectsController.prototype.onKeyPress = function(e)
// this.updateSelectionState();
return bRetValue;
};
//------------------------------------------------------------export---------------------------------------------------
window['AscCommonExcel'] = window['AscCommonExcel'] || {};
window['AscCommonExcel'].CheckIdSatetShapeAdd = CheckIdSatetShapeAdd;
})(window);
\ No newline at end of file
......@@ -6334,7 +6334,7 @@
}
var drawingInfo = this.objectRender.checkCursorDrawingObject( x, y );
if ( asc["editor"].isStartAddShape && CheckIdSatetShapeAdd( this.objectRender.controller.curState ) ) {
if ( asc["editor"].isStartAddShape && AscCommonExcel.CheckIdSatetShapeAdd( this.objectRender.controller.curState ) ) {
return {cursor: kCurFillHandle, target: c_oTargetType.Shape, col: -1, row: -1};
}
......
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