From 04d968d6f18c6bf75b01b5accba1a05e9fe41ead Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 22 Aug 2013 14:37:39 -0700 Subject: [PATCH] Lets not hold onto our ranges after we linkify them --- builds/4chan-X.user.js | 1 + builds/crx/script.js | 1 + src/Linkification/Linkify.coffee | 1 + 3 files changed, 3 insertions(+) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index d83f31604..a68edebd3 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4569,6 +4569,7 @@ for (_i = 0, _len = _ref.length; _i < _len; _i++) { link = _ref[_i]; this.nodes.links.push(Linkify.makeLink(link, this)); + link.detach(); } if (!(Conf['Embedding'] || Conf['Link Title'])) { return; diff --git a/builds/crx/script.js b/builds/crx/script.js index 0655762d0..3e407f224 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4576,6 +4576,7 @@ for (_i = 0, _len = _ref.length; _i < _len; _i++) { link = _ref[_i]; this.nodes.links.push(Linkify.makeLink(link, this)); + link.detach(); } if (!(Conf['Embedding'] || Conf['Link Title'])) { return; diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 784dfe41c..a7aab6a2e 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -81,6 +81,7 @@ Linkify = for link in links.reverse() @nodes.links.push Linkify.makeLink link, @ + link.detach() return unless Conf['Embedding'] or Conf['Link Title']