Browse Source

fix(ngblur): removed ngblur directive as it conflicted with angular naitive directive, fixes #2429

Torkel Ödegaard 10 years ago
parent
commit
874503ca68
2 changed files with 0 additions and 21 deletions
  1. 0 1
      public/app/directives/all.js
  2. 0 20
      public/app/directives/ngBlur.js

+ 0 - 1
public/app/directives/all.js

@@ -2,7 +2,6 @@ define([
   './arrayJoin',
   './dashUpload',
   './grafanaSimplePanel',
-  './ngBlur',
   './dashEditLink',
   './ngModelOnBlur',
   './misc',

+ 0 - 20
public/app/directives/ngBlur.js

@@ -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});
-          });
-        });
-      };
-    }]);
-
-});