angular.js/src
Igor Minar 31f190d4d5 fix($compile): fix (reverse) directive postLink fn execution order
previously the compile/link fns executed in this order controlled via priority:

- CompilePriorityHigh, CompilePriorityMedium, CompilePriorityLow
- PreLinkPriorityHigh, PreLinkPriorityMedium, PreLinkPriorityLow
- link children
- PostLinkPriorityHigh, PostLinkPriorityMedium, PostLinkPriorityLow

This was changed to:

- CompilePriorityHigh, CompilePriorityMedium, CompilePriorityLow
- PreLinkPriorityHigh, PreLinkPriorityMedium, PreLinkPriorityLow
- link children
- PostLinkPriorityLow, PostLinkPriorityMedium , PostLinkPriorityHigh

Using this order the child transclusion directive that gets replaced
onto the current element get executed correctly (see issue #3558),
and more generally, the order of execution of post linking function
makes more sense. The incorrect order was an oversight that has
gone unnoticed for many suns and moons.

(FYI: postLink functions are the default linking functions)

BREAKING CHANGE: the order of postLink fn is now mirror opposite of
the order in which corresponding preLinking and compile functions
execute.

Very few directives in practice rely on order of postLinking function
(unlike on the order of compile functions), so in the rare case
of this change affecting an existing directive, it might be necessary
to convert it to a preLinking function or give it negative priority
(look at the diff of this commit to see how an internal attribute
interpolation directive was adjusted).

Closes #3558
2013-10-03 22:23:37 -07:00
..
auto docs($injector): Reword fn param docs and link to DI information 2013-09-30 17:26:00 -07:00
ng fix($compile): fix (reverse) directive postLink fn execution order 2013-10-03 22:23:37 -07:00
ngAnimate fix($animator): avoid completing the animation asynchronously unless CSS transtiions/animations are present 2013-10-01 15:00:16 -04:00
ngCookies docs(module): improve the installation instructions for optional modules 2013-08-22 16:55:54 -07:00
ngLocale fix(i18n): remove obsolete locale files 2013-08-27 15:55:37 -07:00
ngMock feat(ngMock.$timeout): remove flushNext method 2013-10-02 15:59:49 -07:00
ngResource fix($resource): pass transformed value to both callbacks and promises 2013-10-02 17:03:53 -07:00
ngRoute docs(ngRoute): add angularEvent param to $routeChangeStart event 2013-10-01 14:36:54 -07:00
ngSanitize fix($sanitize): sanitize DOCTYPE declarations correctly 2013-10-03 08:42:15 +01:00
ngScenario feat(browserTrigger): allow support for custom timeStamps in events 2013-09-26 11:19:43 -07:00
ngTouch docs(module): improve the installation instructions for optional modules 2013-08-22 16:55:54 -07:00
Angular.js docs(angular.bind): clarify that bind is partial application 2013-10-03 23:37:09 +01:00
angular.prefix chore(license): update to google 2012-04-20 11:29:34 -07:00
angular.suffix fix(init): use jQuery#ready for init if available 2012-03-23 15:41:37 -07:00
AngularPublic.js feat(ngAnimate): complete rewrite of animations 2013-07-26 23:49:54 -07:00
apis.js feat(ngRepeat): add support for custom tracking of items 2013-03-29 23:01:52 -07:00
jqLite.js fix(jqLite): use get/setAttribute so that jqLite works on SVG nodes 2013-09-27 12:38:27 -07:00
loader.js docs(angular.Module): fix controller and directive method parameters 2013-09-27 16:10:43 -07:00
loader.prefix chore(license): update to google 2012-04-20 11:29:34 -07:00
loader.suffix feat(module): new module loader 2012-01-10 22:27:00 -08:00
minErr.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
module.prefix chore(module): improved module prefix/suffix code 2012-05-04 15:50:37 -07:00
module.suffix chore(module): improved module prefix/suffix code 2012-05-04 15:50:37 -07:00
publishExternalApis.js chore(Rakefile): get ready for modules 2012-03-28 11:16:36 -07:00