Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
修复自动保存配置项不起作用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Jun 10, 2014
1 parent 4a25b4a commit af08cc9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _src/plugins/autosave.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ UE.plugin.register('autosave', function (){
return {
defaultOptions: {
//默认间隔时间
saveInterval: 500
saveInterval: 500,
enableAutoSave: true
},
bindEvents:{
'ready':function(){
Expand All @@ -66,6 +67,10 @@ UE.plugin.register('autosave', function (){

'contentchange': function () {

if (!me.getOpt('enableAutoSave')) {
return;
}

if ( !saveKey ) {
return;
}
Expand Down

2 comments on commit af08cc9

@yadewe
Copy link

@yadewe yadewe commented on af08cc9 Jun 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个修改没有合并到master
目前最新的release还有这个问题

@and80506
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的,我也发现了。

Please sign in to comment.