web-apps/test/spreadsheeteditor/main/js/CellEditorController.js
2022-11-18 22:22:02 +03:00

37 lines
665 B
JavaScript

!window.common && (window.common = {});
!common.controller && (common.controller = {});
if (SSE === undefined) {
var SSE = {};
}
SSE.Keys={RETURN: 13};
SSE.CellEditorController = new(function(){
var me,
api,
editor,
created=false;
function onLaunch(){
SSE.CellEditorView.create();
editor = SSE.CellEditorView;
}
function createController() {
me = this;
if (created) return me;
created = true;
onLaunch();
return me;
}
function setApi(apiF){
api=apiF;
}
return {
create: createController,
setApi: setApi
}
})();