37 lines
665 B
JavaScript
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
|
|
}
|
|
|
|
})(); |