From a83361982f3fa6117716efa3e7823c30b70c49f5 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 30 Nov 2016 15:41:13 -0500 Subject: minifaction of most external resources where possible --- www/external/ionRadio.min.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 www/external/ionRadio.min.js (limited to 'www/external/ionRadio.min.js') diff --git a/www/external/ionRadio.min.js b/www/external/ionRadio.min.js new file mode 100644 index 00000000..d652fdda --- /dev/null +++ b/www/external/ionRadio.min.js @@ -0,0 +1,12 @@ +/** + * ionRadioFix - fixes a bug in iOS 9 UIWebView that breaks the tilde selector in CSS. To + * use this fix, include it after your Ionic bundle JS. + * + * Note: due to Angular directive override limitations, you'll need to change any reference + * to to to apply this patched radio button. + * + * Also, make sure to add the new CSS from the second part of this gist. + */ +angular.module("ionic").directive("ionRadioFix",function(){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,template:'',compile:function(e,n){if(n.icon){var i=e.find("i") +i.removeClass("ion-checkmark").addClass(n.icon)}var a=e.find("input") +return angular.forEach({name:n.name,value:n.value,disabled:n.disabled,"ng-value":n.ngValue,"ng-model":n.ngModel,"ng-disabled":n.ngDisabled,"ng-change":n.ngChange,"ng-required":n.ngRequired,required:n.required},function(e,n){angular.isDefined(e)&&a.attr(n,e)}),function(e,n,i){e.getValue=function(){return e.ngValue||i.value}}}}}) -- cgit v1.2.3