check whether prop.type is defined
Merge pull request #46 from satta/master

check whether prop.type is defined