ChangedListener event object diagram always null

I got some information from gojs document

When this property is non-null, the model property will be null

so, how can i get diagram.