TWEagle / jquery-watermark

Automatically exported from code.google.com/p/jquery-watermark
1 stars 1 forks source link

text.length is testing when test is null #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?
3.0.5 mac

Please provide any additional information below.

Prior to changing the js below watermark was having a js error "text is null" 
and not showing all 
of the watermarks again when I did a $.watermark.showAll() call.

line 205 - I changed the js to test if text exists before testing the 
text.length and it got rid of the 
js error i was having. Watermarks displayed again correctly after this with 
$.watermark.showAll()

//              if ((maxLen > 0) && (text.length > maxLen)) {
                if ((maxLen > 0) && ( text && text.length > maxLen)) {

Original issue reported on code.google.com by reganyel...@gmail.com on 18 May 2010 at 12:36

GoogleCodeExporter commented 9 years ago
This issue is fixed in the current release - 3.0.6.

Original comment by t...@speednet.biz on 22 Jun 2010 at 2:34