onChange improvements (#1678)

* onChange improvements

* Return modifications observer module

* Fix lint

* Fix tests
This commit is contained in:
George Berezhnoy 2021-05-26 18:59:32 +03:00 committed by GitHub
commit 4e7b33c2b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 259 additions and 205 deletions

View file

@ -281,8 +281,8 @@
onReady: function(){
saveButton.click();
},
onChange: function() {
console.log('something changed');
onChange: function(api, block) {
console.log('something changed', block);
}
});