use angular.element
Revert 1ff6aee..97ce788

This rolls back to commit 1ff6aeed819c17541bde6bdd185879117d7fd958.