From 0a09acef5a82a1fb15cf77df3e4dd28abe7eff7e Mon Sep 17 00:00:00 2001 From: Erik Montes Date: Wed, 23 Sep 2015 14:48:30 -0700 Subject: [PATCH] bumping version, uglifyingt latest version --- jquery.placeholder.js | 2 +- jquery.placeholder.min.js | 7 ++++--- jquery.placeholder.min.js.map | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/jquery.placeholder.js b/jquery.placeholder.js index faa54c3..e0866b9 100644 --- a/jquery.placeholder.js +++ b/jquery.placeholder.js @@ -1,4 +1,4 @@ -/*! http://mths.be/placeholder v2.1.2 by @mathias */ +/*! http://mths.be/placeholder v2.1.3 by @mathias */ (function(factory) { if (typeof define === 'function' && define.amd) { // AMD diff --git a/jquery.placeholder.min.js b/jquery.placeholder.min.js index 7ca90aa..4dbb09c 100644 --- a/jquery.placeholder.min.js +++ b/jquery.placeholder.min.js @@ -1,5 +1,6 @@ -/* HTML5 Placeholder jQuery Plugin - v2.1.2 +/* HTML5 Placeholder jQuery Plugin - v2.1.3 * Copyright (c)2015 Mathias Bynens - * 2015-06-09 + * 2015-09-23 */ -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function b(b){var c={},d=/^jQuery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}function c(b,c){var d=this,f=a(d);if(d.value==f.attr("placeholder")&&f.hasClass(m.customClass))if(f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),b===!0)return f[0].value=c;f.focus()}else d.value="",f.removeClass(m.customClass),d==e()&&d.select()}function d(){var d,e=this,f=a(e),g=this.id;if(""===e.value){if("password"===e.type){if(!f.data("placeholder-textinput")){try{d=f.clone().prop({type:"text"})}catch(h){d=a("").attr(a.extend(b(this),{type:"text"}))}d.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",c),f.data({"placeholder-textinput":d,"placeholder-id":g}).before(d)}f=f.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",g).show()}f.addClass(m.customClass),f[0].value=f.attr("placeholder")}else f.removeClass(m.customClass)}function e(){try{return document.activeElement}catch(a){}}var f,g,h="[object OperaMini]"==Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!h,j="placeholder"in document.createElement("textarea")&&!h,k=a.valHooks,l=a.propHooks;if(i&&j)g=a.fn.placeholder=function(){return this},g.input=g.textarea=!0;else{var m={};g=a.fn.placeholder=function(b){var e={customClass:"placeholder"};m=a.extend({},e,b);var f=this;return f.filter((i?"textarea":":input")+"[placeholder]").not("."+m.customClass).bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder"),f},g.input=i,g.textarea=j,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasClass(m.customClass)?"":b.value},set:function(b,f){var g=a(b),h=g.data("placeholder-password");return h?h[0].value=f:g.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):g.hasClass(m.customClass)?c.call(b,!0,f)||(b.value=f):b.value=f,g):b.value=f}},i||(k.input=f,l.value=f),j||(k.textarea=f,l.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+m.customClass,this).each(c);setTimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){a("."+m.customClass).each(function(){this.value=""})})}}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function b(b){var c={},d=/^jQuery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}function c(b,c){var d=this,f=a(d);if(d.value===f.attr("placeholder")&&f.hasClass(m.customClass))if(d.value="",f.removeClass(m.customClass),f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),b===!0)return f[0].value=c,c;f.focus()}else d==e()&&d.select()}function d(d){var e,f=this,g=a(f),h=f.id;if(d&&"blur"===d.type){if(g.hasClass(m.customClass))return;if("password"===f.type&&(e=g.prevAll('input[type="text"]:first'),e.length>0&&e.is(":visible")))return}if(""===f.value){if("password"===f.type){if(!g.data("placeholder-textinput")){try{e=g.clone().prop({type:"text"})}catch(i){e=a("").attr(a.extend(b(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":g,"placeholder-id":h}).bind("focus.placeholder",c),g.data({"placeholder-textinput":e,"placeholder-id":h}).before(e)}f.value="",g=g.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",g.data("placeholder-id")).show()}else{var j=g.data("placeholder-password");j&&(j[0].value="",g.attr("id",g.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}g.addClass(m.customClass),g[0].value=g.attr("placeholder")}else g.removeClass(m.customClass)}function e(){try{return document.activeElement}catch(a){}}var f,g,h="[object OperaMini]"===Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!h,j="placeholder"in document.createElement("textarea")&&!h,k=a.valHooks,l=a.propHooks,m={};i&&j?(g=a.fn.placeholder=function(){return this},g.input=!0,g.textarea=!0):(g=a.fn.placeholder=function(b){var e={customClass:"placeholder"};return m=a.extend({},e,b),this.filter((i?"textarea":":input")+"[placeholder]").not("."+m.customClass).bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder")},g.input=i,g.textarea=j,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasClass(m.customClass)?"":b.value},set:function(b,f){var g,h,i=a(b);return""!==f&&(g=i.data("placeholder-textinput"),h=i.data("placeholder-password"),g?(c.call(g[0],!0,f)||(b.value=f),g[0].value=f):h&&(c.call(b,!0,f)||(h[0].value=f),b.value=f)),i.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):(i.hasClass(m.customClass)&&c.call(b),b.value=f),i):(b.value=f,i)}},i||(k.input=f,l.value=f),j||(k.textarea=f,l.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+m.customClass,this).each(function(){c.call(this,!0,"")});setTimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){a("."+m.customClass).each(function(){this.value=""})}))}); +//# sourceMappingURL=jquery.placeholder.min.js.map \ No newline at end of file diff --git a/jquery.placeholder.min.js.map b/jquery.placeholder.min.js.map index ae4d33b..a0a1e9a 100644 --- a/jquery.placeholder.min.js.map +++ b/jquery.placeholder.min.js.map @@ -1 +1 @@ -{"version":3,"file":"jquery.placeholder.min.js","sources":["jquery.placeholder.js"],"names":["factory","define","amd","module","exports","require","jQuery","$","args","elem","newAttrs","rinlinejQuery","each","attributes","i","attr","specified","test","name","value","clearPlaceholder","event","input","this","$input","hasClass","settings","customClass","data","hide","nextAll","show","removeAttr","focus","removeClass","safeActiveElement","select","setPlaceholder","$replacement","id","type","clone","prop","e","extend","placeholder-password","placeholder-id","bind","placeholder-textinput","before","prevAll","addClass","document","activeElement","exception","hooks","placeholder","isOperaMini","Object","prototype","toString","call","window","operamini","isInputSupported","createElement","isTextareaSupported","valHooks","propHooks","fn","textarea","options","defaults","$this","filter","not","focus.placeholder","blur.placeholder","trigger","get","element","$element","$passwordInput","set","delegate","$inputs","setTimeout"],"mappings":";;;;CACC,SAASA,GACgB,kBAAXC,SAAyBA,OAAOC,IAEvCD,QAAQ,UAAWD,GAEnBA,EADyB,gBAAXG,SAAuBA,OAAOC,QACpCC,QAAQ,UAGRC,SAEd,SAASC,GAgHP,QAASC,GAAKC,GAEV,GAAIC,MACAC,EAAgB,aAMpB,OALAJ,GAAEK,KAAKH,EAAKI,WAAY,SAASC,EAAGC,GAC5BA,EAAKC,YAAcL,EAAcM,KAAKF,EAAKG,QAC3CR,EAASK,EAAKG,MAA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S7C,MAAQiC,EACjBa,EAAUjD,MAAQoC,GAEjBW,IACDC,EAASG,SAAWf,EACpBa,EAAUjD,MAAQoC,GAGtBhD,EAAE,WAEEA,EAAE6C,UAAUgC,SAAS,OAAQ,qBAAsB,WAE/C,GAAIC,GAAU9E,EAAE,IAAImB,EAASC,YAAaJ,MAAMX,KAAKQ,EACrDkE,YAAW,WACPD,EAAQzE,KAAKyB,IACd,QAKX9B,EAAEuD,QAAQf,KAAK,2BAA4B,WACvCxC,EAAE,IAAImB,EAASC,aAAaf,KAAK,WAC7BW,KAAKJ,MAAQ"} \ No newline at end of file +{"version":3,"file":"jquery.placeholder.min.js","sources":["jquery.placeholder.js"],"names":["factory","define","amd","module","exports","require","jQuery","$","args","elem","newAttrs","rinlinejQuery","each","attributes","i","attr","specified","test","name","value","clearPlaceholder","event","input","this","$input","hasClass","settings","customClass","removeClass","data","hide","nextAll","show","removeAttr","focus","safeActiveElement","select","setPlaceholder","$replacement","id","type","prevAll","length","is","clone","prop","e","extend","placeholder-enabled","placeholder-password","placeholder-id","bind","placeholder-textinput","before","$passwordInput","addClass","document","activeElement","exception","hooks","placeholder","isOperaMini","Object","prototype","toString","call","window","operamini","isInputSupported","createElement","isTextareaSupported","valHooks","propHooks","fn","textarea","options","defaults","filter","not","focus.placeholder","blur.placeholder","trigger","get","element","$element","set","delegate","$inputs","setTimeout"],"mappings":";;;;CACC,SAASA,GACgB,kBAAXC,SAAyBA,OAAOC,IAEvCD,QAAQ,UAAWD,GAEnBA,EADyB,gBAAXG,SAAuBA,OAAOC,QACpCC,QAAQ,UAGRC,SAEd,SAASC,GAuIP,QAASC,GAAKC,GAEV,GAAIC,MACAC,EAAgB,aAQpB,OANAJ,GAAEK,KAAKH,EAAKI,WAAY,SAASC,EAAGC,GAC5BA,EAAKC,YAAcL,EAAcM,KAAKF,EAAKG,QAC3CR,EAASK,EAAKG,MAAQH,EAAKI,SAI5BT,EAGX,QAASU,GAAiBC,EAAOF,GAE7B,GAAIG,GAA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,EAAE4E,EAmBjB,OAfc,KAAVhE,IAEAmB,EAAe8C,EAASvD,KAAK,yBAC7ByB,EAAiB8B,EAASvD,KAAK,wBAE3BS,GACAlB,EAAiB6C,KAAK3B,EAAa,IAAI,EAAMnB,KAAWgE,EAAQhE,MAAQA,GACxEmB,EAAa,GAAGnB,MAAQA,GAEjBmC,IACPlC,EAAiB6C,KAAKkB,GAAS,EAAMhE,KAAWmC,EAAe,GAAGnC,MAAQA,GAC1EgE,EAAQhE,MAAQA,IAInBiE,EAASvD,KAAK,wBAKL,KAAVV,GAEAgE,EAAQhE,MAAQA,EAGZgE,GAAWhD,KAEXE,EAAe4B,KAAKkB,KAKpBC,EAAS3D,SAASC,EAASC,cAC3BP,EAAiB6C,KAAKkB,GAG1BA,EAAQhE,MAAQA,GAGbiE,IAvBHD,EAAQhE,MAAQA,EACTiE,KA0BdhB,IACDG,EAASjD,MAAQqC,EACjBa,EAAUrD,MAAQwC,GAGjBW,IACDC,EAASG,SAAWf,EACpBa,EAAUrD,MAAQwC,GAGtBpD,EAAE,WAEEA,EAAEiD,UAAU8B,SAAS,OAAQ,qBAAsB,WAG/C,GAAIC,GAAUhF,EAAE,IAAImB,EAASC,YAAaJ,MAAMX,KAAK,WACjDQ,EAAiB6C,KAAK1C,MAAM,EAAM,KAGtCiE,YAAW,WACPD,EAAQ3E,KAAKyB,IACd,QAKX9B,EAAE2D,QAAQf,KAAK,2BAA4B,WACvC5C,EAAE,IAAImB,EAASC,aAAaf,KAAK,WAC7BW,KAAKJ,MAAQ"} \ No newline at end of file diff --git a/package.json b/package.json index 43c9317..305a2fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-placeholder", - "version": "2.1.2", + "version": "2.1.3", "title": "HTML5 Placeholder jQuery Plugin", "description": "A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet", "author": {