-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathangular-fng.min.js
1 lines (1 loc) · 1 KB
/
angular-fng.min.js
1
!function(){"use strict";function e(e){return n(e.replace(i,""))}function n(e){return e.replace(c,function(e,n,o,u){return u?o.toUpperCase():o})}function o(e){return e.hasOwnProperty("$stopDigestPropagation")?e:e.$parent?o(e.$parent):void 0}function u(e,n){n(),e.$digest()}function t(e,n){e.$apply(n)}function r(n){function r(n){var r=e("fng-"+n);i.directive(r,["$parse","$rootScope",function(e,i){return{restrict:"A",compile:function(c,f){var s=e(f[r],null,!0);return function(e,r){r.on(n,function(r){var c,f=function(){s(e,{$event:r})};a[n]&&i.$$phase?e.$evalAsync(f):(c=o(e))?u(c,f):t(e,f)})}}}}])}var i=n.module("fng",[]);f.forEach(r)}var i=/^((?:x|data)[\:\-_])/i,c=/([\:\-\_]+(.))/g,a={blur:!0,focus:!0},f="click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" ");"function"==typeof define&&define.amd?define(["angular"],r):"undefined"!=typeof module&&module&&module.exports?(r(angular),module.exports="fng"):r(angular)}();