@shacker can you use `elm` instead of `$element` here so it's more consistent with the other directives and angular source code?