add undefine for all the enums
fix for review comments(undefine -> undefined)
Merge pull request #22 from astamuse/master

add undefine for all the enums