All Downloads are FREE. Search and download functionalities are using the official Maven repository.

app.directives.ngBlur.js Maven / Gradle / Ivy

The newest version!
define([
  'angular'
],
function (angular) {
  'use strict';

  angular
    .module('kibana.directives')
    .directive('ngBlur', ['$parse', function($parse) {
      return function(scope, element, attr) {
        var fn = $parse(attr['ngBlur']);
        element.bind('blur', function(event) {
          scope.$apply(function() {
            fn(scope, {$event:event});
          });
        });
      };
    }]);

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy