assaf / node-passbook

iOS Passbook for the Node hacker
MIT License
280 stars 73 forks source link

Validation Error when creating a pass of type boardingPass #1

Closed aschuch closed 12 years ago

aschuch commented 12 years ago

"boardingPass" is the first element in the STYLES array, therefore

!STYLES.indexOf(style)

would always return true for element at position 0 and an error is thrown.

assaf commented 12 years ago

Thanks, fixed and release 1.0.2