Update for compatible code for AngularJS 1.2.rc-3 and above.
Merge pull request #422 from diego-vieira/patch-1

Update for compatible code for AngularJS 1.2.rc-3 and above.