From 874503ca68318690186a512c4b7b9608ba622099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 26 Aug 2015 13:05:13 +0200 Subject: [PATCH] fix(ngblur): removed ngblur directive as it conflicted with angular naitive directive, fixes #2429 --- public/app/directives/all.js | 1 - public/app/directives/ngBlur.js | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 public/app/directives/ngBlur.js diff --git a/public/app/directives/all.js b/public/app/directives/all.js index 13a8accffbd..0902410b089 100644 --- a/public/app/directives/all.js +++ b/public/app/directives/all.js @@ -2,7 +2,6 @@ define([ './arrayJoin', './dashUpload', './grafanaSimplePanel', - './ngBlur', './dashEditLink', './ngModelOnBlur', './misc', diff --git a/public/app/directives/ngBlur.js b/public/app/directives/ngBlur.js deleted file mode 100644 index aad125fe755..00000000000 --- a/public/app/directives/ngBlur.js +++ /dev/null @@ -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}); - }); - }); - }; - }]); - -}); \ No newline at end of file