fix(ngblur): removed ngblur directive as it conflicted with angular naitive directive, fixes #2429
This commit is contained in:
@@ -2,7 +2,6 @@ define([
|
||||
'./arrayJoin',
|
||||
'./dashUpload',
|
||||
'./grafanaSimplePanel',
|
||||
'./ngBlur',
|
||||
'./dashEditLink',
|
||||
'./ngModelOnBlur',
|
||||
'./misc',
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
define([
|
||||
'angular'
|
||||
],
|
||||
function (angular) {
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('grafana.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});
|
||||
});
|
||||
});
|
||||
};
|
||||
}]);
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user