fix state.update not destroy when edit text blank
if (state.editing.title === "") should call state.destroy() instead of destroy()
This commit is contained in:
parent
1a4bcc44e6
commit
f6e627a891
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ var state = {
|
|||
update: function(title) {
|
||||
if (state.editing != null) {
|
||||
state.editing.title = title.trim()
|
||||
if (state.editing.title === "") destroy(state.editing)
|
||||
if (state.editing.title === "") state.destroy(state.editing)
|
||||
state.editing = null
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue