Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit ee71e73

Browse files
committed
Merge pull request #10463 from MarcelGerber/css-svg-hints-leak
Fix memory leak in CSS & SVG Code Hints
2 parents f1e2340 + 6e7ac50 commit ee71e73

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/extensions/default/CSSCodeHints/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ define(function (require, exports, module) {
212212
$hintObj = ColorUtils.formatColorHint($hintObj, token.color);
213213
}
214214

215-
$hintObj.data("token", token);
216-
217215
return $hintObj;
218216
});
219217
}

src/extensions/default/SVGCodeHints/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ define(function (require, exports, module) {
129129
$hintObj = ColorUtils.formatColorHint($hintObj, token.color);
130130
}
131131

132-
$hintObj.data("token", token);
133-
134132
return $hintObj;
135133
});
136134
}

0 commit comments

Comments
 (0)