Closed GoogleCodeExporter closed 9 years ago
Here is a fix:
// Hijack any functions found in the triggerFns list
if (triggerFns.length) {
// Wait until DOM is ready before searching
$(function () {
var i, name, fn;
for (i=triggerFns.length-1; i>=0; i--) {
name = triggerFns[i];
fn = window[name];
if (typeof(fn) === "function") {
window[name] = (function (origFn) {
return function () { $.watermark.hideAll();
//HERE IS A FIX
if (arguments.length == 1) origFn(arguments[0]) else orifFn();
};
})(fn);
}
}
});
}
Original comment by gera...@gmail.com
on 24 Nov 2009 at 11:31
Can you try inserting a different fix to see if it works in your scenario?
Please replace the line you marked "HERE IS A FIX" (the if/else) with the
following:
line of code. It is more generic, and should work with all functions.
origFn.apply(null, Array.prototype.slice.call(arguments));
Original comment by t...@speednet.biz
on 30 Nov 2009 at 5:00
Yes it works, tried couple of different scenarios.
Thanks for great product.
Original comment by gera...@gmail.com
on 30 Nov 2009 at 5:46
Awesome, thanks for testing, I'll make it part of the next release. Thanks for
the
props too.
Original comment by t...@speednet.biz
on 30 Nov 2009 at 10:23
BTW, one small thing you (and anyone!) can do to help is to give the plugin a
rating
over at the jQuery site: http://plugins.jquery.com/project/jquery-watermark
Thanks!
Original comment by t...@speednet.biz
on 30 Nov 2009 at 10:25
FIXED in version 3.0.3
Original comment by t...@speednet.biz
on 1 Dec 2009 at 1:23
Original issue reported on code.google.com by
gera...@gmail.com
on 24 Nov 2009 at 9:47