From aa3fc9f45f1c8abffb75adc287b3a310cc952a93 Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Wed, 25 Oct 2017 12:32:33 +0200 Subject: [PATCH] converted outline.js to outline.ts (#9658) --- public/app/core/utils/outline.js | 32 ------------------------------ public/app/core/utils/outline.ts | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 32 deletions(-) delete mode 100644 public/app/core/utils/outline.js create mode 100644 public/app/core/utils/outline.ts diff --git a/public/app/core/utils/outline.js b/public/app/core/utils/outline.js deleted file mode 100644 index f968b3e51f9..00000000000 --- a/public/app/core/utils/outline.js +++ /dev/null @@ -1,32 +0,0 @@ -// outline.js -// based on http://www.paciellogroup.com/blog/2012/04/how-to-remove-css-outlines-in-an-accessible-manner/ -(function(d) { - "use strict"; - - var style_element = d.createElement('STYLE'), - dom_events = 'addEventListener' in d, - add_event_listener = function(type, callback) { - // Basic cross-browser event handling - if(dom_events){ - d.addEventListener(type, callback); - } else { - d.attachEvent('on' + type, callback); - } - }, - set_css = function(css_text) { - // Handle setting of