When clearing the array also notify the view.
Merge pull request #8 from ruiaraujo/bugfix

Notifying the view whenever the data is changed