driftyco/ionic — pull request #171 by rodyhaddad (2013-11-20 23:30:03+00:00)
Title: refactor directives' controller instance creation to use js constructor

In your directives' controller, you were trying to import `ionic.controllers.?`'s behaviour by extending your `this` with their prototype, and `.call`ing their constructor with your `this`.

Your end result can be accomplished much easier: you can create a normal instance of a `ionic.controllers.?` with the `new` operator, and at the end return it.

I refactored the directives' controller to be using the simpler `new` way :)