Make Widget.views be an object indexed by view id
hasOwnProperty
Merge pull request #6548 from SylvainCorlay/widget_views_by_id

Make WidgetModel.views be an object indexed by view id