fix ($compile): keep prototype properties for template URL directives
Previously, if a directive definition object was defined with methods like `compile` provided on the prototype rather than the instance, the Angular compiler failed to use these methods when the directive had a `templateURL`. This change ensures that these prototypical methods are not lost. This enables developers to define their directives using "classes" such as in CoffeeScript or ES6. Closes #10926
H
Hannah Howard committed
6c6a4086b7398eaffcf3c2f5b3e7be414f514129
Parent: 0d42426
Committed by Peter Bacon Darwin <pete@bacondarwin.com>
on 2/2/2015, 11:49:14 AM