dont pass empty author info to edit
This commit is contained in:
parent
3e3b0dec97
commit
dbab4ad13a
1 changed files with 9 additions and 1 deletions
|
@ -102,7 +102,15 @@ function Ace2Editor()
|
|||
var prefix = 'ace_';
|
||||
var name = prefix + fnName;
|
||||
editor[fnName] = pendingInit(function(){
|
||||
info[prefix + fnName].apply(this, arguments);
|
||||
if(fnName === "setAuthorInfo"){
|
||||
if(!arguments[0]){
|
||||
top.console.warn("setAuthorInfo AuthorId not set for some reason", arguments);
|
||||
}else{
|
||||
info[prefix + fnName].apply(this, arguments);
|
||||
}
|
||||
}else{
|
||||
info[prefix + fnName].apply(this, arguments);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue