Sha256: aa273fefda182229845787aa031c6fa26d09b02e968157f68783cc6c8ccc37e9
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 Bytes
Contents
define(['angular'], function (angular) { 'use strict'; angular .module('kibana.directives') .directive('ngModelOnblur', function() { return { restrict: 'A', require: 'ngModel', link: function(scope, elm, attr, ngModelCtrl) { if (attr.type === 'radio' || attr.type === 'checkbox') { return; } elm.unbind('input').unbind('keydown').unbind('change'); elm.bind('blur', function() { scope.$apply(function() { ngModelCtrl.$setViewValue(elm.val()); }); }); } }; }); });
Version data entries
6 entries across 6 versions & 1 rubygems