aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngInclude.js
diff options
context:
space:
mode:
authorIgor Minar2013-10-11 16:46:32 -0700
committerIgor Minar2013-10-11 17:12:24 -0700
commit4357da857587d3c28790e7dc654664bec5808768 (patch)
tree37a89d65b6a03562b587483a2c9209200fef7c95 /src/ng/directive/ngInclude.js
parent83fbaa54f13ff94d193115de0eaa3799739af3a5 (diff)
downloadangular.js-4357da857587d3c28790e7dc654664bec5808768.tar.bz2
fix($compile): make order directives w/ same priority deterministic
Array.prototype.sort is speced out to be as potentionally unstable sort, which is how it's implemented in FF and IE. This has caused the order of directives with the same priority to vary between browsers. For consistency sake, we now consider directive name and registration, order when determining the order of directives with the same priority. Note: it is still possible to get into a situation when the directive order is underministic - when source files are loaded asynchronously in non-deterministic order and there are are directives registered with the same name and priority, the order in which they will be applied will depend on the file load order.
Diffstat (limited to 'src/ng/directive/ngInclude.js')
0 files changed, 0 insertions, 0 deletions