Skip to content

Commit 142d704

Browse files
authored
Update migration_guides.md
1 parent 1456211 commit 142d704

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/migration_guides.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export async function myDeserializer(
149149

150150
#### Backbone extend
151151

152-
If you were extending the base widget model with `var CustomWidgetModel = Widget.extend({ ... });` you will need to update the class definition using the ES6 notation:
152+
The version of backbone that ipywidgets depend on has changed from 1.2.3 to 1.4.0. If you were extending the base widget model with `var CustomWidgetModel = Widget.extend({ ... });` you will need to update the class definition using the ES6 notation:
153153

154154
```diff
155155
- var CustomWidgetModel = Widget.extend({
@@ -160,6 +160,8 @@ If you were extending the base widget model with `var CustomWidgetModel = Widget
160160
+ }
161161
```
162162

163+
Note: If you were relying on setting certain instance attributes via the `extend` method, you might now need override the `preinitialize` method in order for their values to be set in time.
164+
163165

164166
Migrating from 6.0 to 7.0
165167
-------------------------

0 commit comments

Comments
 (0)