(propDef)
| 33257 | } |
| 33258 | |
| 33259 | function parsePropDefinition(propDef) { |
| 33260 | var type = propDef.type; |
| 33261 | var typeDefinition = TYPE_DEFINITIONS[type] || {}; |
| 33262 | var typeValidator = typeDefinition.typeValidator; |
| 33263 | |
| 33264 | if (typeValidator) {// assert(typeValidator(propDef), 'Illegal prop type'); |
| 33265 | } |
| 33266 | |
| 33267 | return propDef; |
| 33268 | } |
| 33269 | |
| 33270 | function guessNumberType(name, value) { |
| 33271 | var isKnownProp = /radius|scale|width|height|pixel|size|miter/i.test(name) && /^((?!scale).)*$/.test(name); |