view added to array views

It appears the 'view' object is never added to the list 'views' in one of the examples.