We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4021572 + 3c2daa2 commit e5420b8Copy full SHA for e5420b8
packages/base/src/widget.ts
@@ -737,13 +737,13 @@ export class WidgetView extends NativeView<WidgetModel> {
737
* Initializer, called at the end of the constructor.
738
*/
739
initialize(parameters: WidgetView.IInitializeParameters): void {
740
- this.listenTo(this.model, 'change', () => {
+ this.listenTo(this.model, 'change', (model, options) => {
741
const changed = Object.keys(this.model.changedAttributes() || {});
742
if (changed[0] === '_view_count' && changed.length === 1) {
743
// Just the view count was updated
744
return;
745
}
746
- this.update();
+ this.update(options);
747
});
748
749
this.options = parameters.options;
0 commit comments