diff --git a/bower.json b/bower.json index 8233eec..05c8dbb 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "angular-shims-placeholder", "description": "Angular directive to emulate the `placeholder` attribute on text and password input fields for old browsers, such as IE9, IE8, and below", - "version": "0.4.0", + "version": "0.4.1", "homepage": "https://github.com/cvn/angular-shims-placeholder", "authors": [ { diff --git a/dist/angular-shims-placeholder.js b/dist/angular-shims-placeholder.js index 2fe3b1f..0fea5fd 100644 --- a/dist/angular-shims-placeholder.js +++ b/dist/angular-shims-placeholder.js @@ -1,4 +1,4 @@ -/*! angular-shims-placeholder - v0.4.0 - 2015-04-08 +/*! angular-shims-placeholder - v0.4.1 - 2015-04-09 * https://github.com/cvn/angular-shims-placeholder * Copyright (c) 2015 Chad von Nau; Licensed MIT */ (function (angular, document, undefined) { diff --git a/dist/angular-shims-placeholder.min.js b/dist/angular-shims-placeholder.min.js index f09bcb0..a1ea020 100644 --- a/dist/angular-shims-placeholder.min.js +++ b/dist/angular-shims-placeholder.min.js @@ -1,4 +1,4 @@ -/*! angular-shims-placeholder - v0.4.0 - 2015-04-08 +/*! angular-shims-placeholder - v0.4.1 - 2015-04-09 * https://github.com/cvn/angular-shims-placeholder * Copyright (c) 2015 Chad von Nau; Licensed MIT */ !function(a,b){"use strict";a.module("ng.shims.placeholder",[]).service("placeholderSniffer",["$document",function(a){this.emptyClassName="empty",this.hasPlaceholder=function(){var b=a[0].createElement("input");return void 0!==b.placeholder}}]).directive("placeholder",["$timeout","$document","$interpolate","$animate","placeholderSniffer",function(c,d,e,f,g){if(g.hasPlaceholder())return{};var h=!1,i=parseFloat(a.version.full)>=1.3;return{restrict:"A",require:"?ngModel",priority:110,link:function(j,k,l,m){function n(){var a=k.val();k.hasClass(J)&&a&&a===I||o(function(){p(a)})}function o(a){b.documentMode<=11?c(a,0):a()}function p(a){a||0===a||E===b.activeElement?(k.removeClass(J),k.val(a)):(k.addClass(J),k.val(H?"":I)),H&&(v(),w())}function q(){return m?j.$eval(l.ngModel)||"":r()||""}function r(){var a=k.val();return a===l.placeholder&&(a=""),a}function s(a){k.hasClass(J)&&k.val()===I&&k.val(""),I=a,n()}function t(a,b){b?a.attr("unselectable","on"):a.removeAttr("unselectable")}function u(){C=a.element(''),x(),C.addClass(J).addClass(K).bind("focus",A),E.parentNode.insertBefore(C[0],E);for(var b=[l.ngDisabled,l.ngReadonly,l.ngRequired,l.ngShow,l.ngHide],c=0;c