@@ -416,7 +416,7 @@ function makeChildLinkFn (linkFns) {
416416 * a props link function.
417417 *
418418 * @param {Element|DocumentFragment } el
419- * @param {Array } propDescriptors
419+ * @param {Array } propOptions
420420 * @return {Function } propsLinkFn
421421 */
422422
@@ -425,20 +425,13 @@ var settablePathRE = /^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]+\])*$/
425425var literalValueRE = / ^ ( t r u e | f a l s e ) $ | ^ \d .* /
426426var identRE = require ( '../parsers/path' ) . identRE
427427
428- function compileProps ( el , propDescriptors ) {
428+ function compileProps ( el , propOptions ) {
429429 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
432432 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
442435 // props could contain dashes, which will be
443436 // interpreted as minus calculations by the parser
444437 // so we need to camelize the path here
0 commit comments