type:function的lint

This commit is contained in:
YouWei Zhao 2018-03-16 19:07:52 +08:00
parent e1786c40eb
commit 1eab391b5b
2 changed files with 3 additions and 3 deletions

View File

@ -438,7 +438,7 @@ editor_blockly.doubleClickBlock = function (blockId){
if(f){
var value = b.getFieldValue(f);
//多行编辑
editor_multi.multiLineEdit(value,b,f,function(newvalue,b,f){
editor_multi.multiLineEdit(value,b,f,{'lint':f==='RawEvalString_0'},function(newvalue,b,f){
if(textStringDict[b.type]!=='RawEvalString_0'){}
b.setFieldValue(newvalue.split('\n').join('\\n'),f);
});

View File

@ -109,13 +109,13 @@ editor_multi.confirm = function (){
}
var multiLineArgs=[null,null,null];
editor_multi.multiLineEdit = function(value,b,f,callback){
editor_multi.multiLineEdit = function(value,b,f,args,callback){
editor_multi.id='callFromBlockly';
codeEditor.setValue(value.split('\\n').join('\n')||'');
multiLineArgs[0]=b;
multiLineArgs[1]=f;
multiLineArgs[2]=callback;
editor_multi.lintAutocomplete=false;
editor_multi.lintAutocomplete=Boolean(args.lint);
editor_multi.show();
}
editor_multi.multiLineDone = function(){