(key, patternSpecs)
| 2365 | ]; |
| 2366 | |
| 2367 | function findUIPattern(key, patternSpecs) { |
| 2368 | for (var i = 0; i < patternSpecs.length; i++) { |
| 2369 | var spec = patternSpecs[i]; |
| 2370 | var match = key.match(spec.pattern); |
| 2371 | if (match) { |
| 2372 | var head = match[1] || ''; |
| 2373 | return { head: head, tail: key.slice(head.length + 1), attr: spec.attr }; |
| 2374 | } |
| 2375 | } |
| 2376 | } |
| 2377 | |
| 2378 | // We're finding the new uirevision before supplyDefaults, so do the |
| 2379 | // inheritance manually. Note that only `undefined` inherits - other |
no outgoing calls
no test coverage detected
searching dependent graphs…