File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 17
17
18
18
< div id ="el ">
19
19
< p > Selected: {{selected}}</ p >
20
- < select v-select ="selected " options ="options ">
20
+ < select v-select ="selected " : options ="options ">
21
21
< option value ="0 "> default</ option >
22
22
</ select >
23
23
</ div >
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ var terminalDirectives = [
20
20
'if'
21
21
]
22
22
23
+ // default directive priority
24
+ var DEFAULT_PRIORITY = 1000
25
+
23
26
/**
24
27
* Compile a template and return a reusable composite link
25
28
* function, which recursively contains more link functions
@@ -102,8 +105,8 @@ function linkAndCapture (linker, vm) {
102
105
*/
103
106
104
107
function directiveComparator ( a , b ) {
105
- a = a . descriptor . def . priority || 0
106
- b = b . descriptor . def . priority || 0
108
+ a = a . descriptor . def . priority || DEFAULT_PRIORITY
109
+ b = b . descriptor . def . priority || DEFAULT_PRIORITY
107
110
return a > b ? - 1 : a === b ? 0 : 1
108
111
}
109
112
You can’t perform that action at this time.
0 commit comments