Skip to content

Commit

Permalink
fix/2829: Renamed forced to shouldForce and added descriptive comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny-james committed Nov 15, 2017
1 parent 510e875 commit 255cfb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blocks/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ export default class Editable extends Component {
}
}

onChange( forced ) {
if ( ! forced && ! this.editor.isDirty() ) {
onChange( shouldForce ) {
// Note that due to efficiency, speed and low cost requirements isDirty may
// not reflect reality for a brief period immediately after a change.
if ( ! shouldForce && ! this.editor.isDirty() ) {
return;
}

Expand Down

0 comments on commit 255cfb7

Please sign in to comment.