old_contents: (function(a){a.fn.placeholderEnhanced=function(){var d="placeholder",b=d in document.createElement("input");b=false;if(!b){a("form").submit(function(){var c=a(this);c.find("input:text[placeholder], textarea[placeholder]").each(function(){var f=a(this);if(f.val()===f.attr("placeholder")){f.val("")}})})}return this.each(function(){var j=a(this),k=j.attr("placeholder"),l=j.attr("type")==="password";var h=function(){if(j.hasClass(d)){if(!b){j.val("")}j.removeClass(d)}};var c=function(n,e){if(!j.val()||e){if(!b){if(!l){j.addClass(d).val(k)}else{i(f);m(j)}}else{j.addClass(d)}}};var m=function(n){n.css({position:"absolute",left:"-9999em"})};var i=function(n){return n.removeAttr("style")};if(!l){j.bind("focus.placeholder",h)}else{if(!b){var g=(j[0].className)?" "+j[0].className:"";var f=a('<input type="text" class="pwdummy '+d+g+'" value="'+k+'" />');j.after(f);f.bind("focus.placeholder",function(){i(j).focus();m(f)})}else{j.bind("focus.placeholder",h)}}j.bind("blur.placeholder",c).trigger("blur.placeholder",[true])})};a(function(){var b=a("input:text[placeholder], input:password[placeholder], textarea[placeholder]");if(b.length){b.placeholderEnhanced()}})})(jQuery);
new_contents: (function(a){a.fn.placeholderEnhanced=function(){var d="placeholder",b=d in document.createElement("input");if(!b){a("form").submit(function(){var c=a(this);c.find("input:text[placeholder], textarea[placeholder]").each(function(){var f=a(this);if(f.val()===f.attr("placeholder")){f.val("")}})})}return this.each(function(){var j=a(this),k=j.attr("placeholder"),l=j.attr("type")==="password";var h=function(){if(j.hasClass(d)){if(!b){j.val("")}j.removeClass(d)}};var c=function(n,e){if(!j.val()||e){if(!b){if(!l){j.addClass(d).val(k)}else{i(f);m(j)}}else{j.addClass(d)}}};var m=function(n){n.css({position:"absolute",left:"-9999em"})};var i=function(n){return n.removeAttr("style")};if(!l){j.bind("focus.placeholder",h)}else{if(!b){var g=(j[0].className)?" "+j[0].className:"";var f=a('<input type="text" class="'+d+g+'" value="'+k+'" />');j.after(f);f.bind("focus.placeholder",function(){i(j).focus();m(f)})}else{j.bind("focus.placeholder",h)}}j.bind("blur.placeholder",c).trigger("blur.placeholder",[true])})};a(function(){var b=a("input:text[placeholder], input:password[placeholder], textarea[placeholder]");if(b.length){b.placeholderEnhanced()}})})(jQuery);
subject: update min version