Lets not hold onto our ranges after we linkify them

This commit is contained in:
Zixaphir 2013-08-22 14:37:39 -07:00
parent 8e4d88eb16
commit 04d968d6f1
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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']