@@ -416,7 +416,7 @@ function makeChildLinkFn (linkFns) {
416
416
* a props link function.
417
417
*
418
418
* @param {Element|DocumentFragment } el
419
- * @param {Array } propDescriptors
419
+ * @param {Array } propOptions
420
420
* @return {Function } propsLinkFn
421
421
*/
422
422
@@ -425,20 +425,13 @@ var settablePathRE = /^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]+\])*$/
425
425
var literalValueRE = / ^ ( t r u e | f a l s e ) $ | ^ \d .* /
426
426
var identRE = require ( '../parsers/path' ) . identRE
427
427
428
- function compileProps ( el , propDescriptors ) {
428
+ function compileProps ( el , propOptions ) {
429
429
var props = [ ]
430
- var i = propDescriptors . length
431
- var descriptor , name , options , value , path , prop , literal , single
430
+ var i = propOptions . length
431
+ var options , name , value , path , prop , literal , single
432
432
while ( i -- ) {
433
- descriptor = propDescriptors [ i ]
434
- // normalize prop string/descriptor
435
- if ( typeof descriptor === 'object' ) {
436
- name = descriptor . name
437
- options = descriptor
438
- } else {
439
- name = descriptor
440
- options = null
441
- }
433
+ options = propOptions [ i ]
434
+ name = options . name
442
435
// props could contain dashes, which will be
443
436
// interpreted as minus calculations by the parser
444
437
// so we need to camelize the path here
0 commit comments