From 6e7ac50aec6c7a315bf2b813248808e5019f2fea Mon Sep 17 00:00:00 2001 From: Marcel Gerber Date: Sun, 25 Jan 2015 15:00:47 +0100 Subject: [PATCH] Fix memory leak in CSS & SVG Code Hints --- src/extensions/default/CSSCodeHints/main.js | 2 -- src/extensions/default/SVGCodeHints/main.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/extensions/default/CSSCodeHints/main.js b/src/extensions/default/CSSCodeHints/main.js index ec130a0456d..f34104cf400 100644 --- a/src/extensions/default/CSSCodeHints/main.js +++ b/src/extensions/default/CSSCodeHints/main.js @@ -212,8 +212,6 @@ define(function (require, exports, module) { $hintObj = ColorUtils.formatColorHint($hintObj, token.color); } - $hintObj.data("token", token); - return $hintObj; }); } diff --git a/src/extensions/default/SVGCodeHints/main.js b/src/extensions/default/SVGCodeHints/main.js index ed78e9c2492..a87398ca6bd 100644 --- a/src/extensions/default/SVGCodeHints/main.js +++ b/src/extensions/default/SVGCodeHints/main.js @@ -129,8 +129,6 @@ define(function (require, exports, module) { $hintObj = ColorUtils.formatColorHint($hintObj, token.color); } - $hintObj.data("token", token); - return $hintObj; }); }