Skip to content

Commit 3aaa094

Browse files
committed
Change typescript migration example to js
1 parent 9120bf9 commit 3aaa094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/migration_guides.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ The version of [Backbone.js](https://backbonejs.org/) that ipywidgets depends on
169169

170170
If you were using `.extend()`, you will also need to change how your model attribute defaults are defined. The model defaults are now given by a function that returns the defaults and includes the superclass defaults. For example, the Output widget model [looks like this](https://github.com/jupyter-widgets/ipywidgets/blob/8.0.0/packages/output/src/output.ts):
171171

172-
```typescript
172+
```javascript
173173
export const OUTPUT_WIDGET_VERSION = '1.0.0';
174174

175175
export class OutputModel extends DOMWidgetModel {
176-
defaults(): Backbone.ObjectHash {
176+
defaults() {
177177
return {
178178
...super.defaults(),
179179
_model_name: 'OutputModel',

0 commit comments

Comments
 (0)