wycats / jquery-offline

A jQuery plugin to facilitate conveniently working with local storage
835 stars 46 forks source link

Handling empty params #7

Open hamecoded opened 12 years ago

hamecoded commented 12 years ago

line 181 tests "if(text)" and incase no params are passed the text resolves to "null" as string, this inturn will enter the condition and an exception will be thrown.

I've replaced this line with: if(text && text != "null") This puts me back on track

Oded