Commit 32622ac9 authored by csillag's avatar csillag

Un-broke position-based anchoring strategy in Annotator

parent 1163b708
/* /*
** Annotator 1.2.6-dev-383514e ** Annotator 1.2.6-dev-d9ed1c1
** https://github.com/okfn/annotator/ ** https://github.com/okfn/annotator/
** **
** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning. ** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning.
** Dual licensed under the MIT and GPLv3 licenses. ** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE ** https://github.com/okfn/annotator/blob/master/LICENSE
** **
** Built at: 2013-04-09 22:10:46Z ** Built at: 2013-04-10 07:08:00Z
*/ */
(function() { (function() {
...@@ -922,7 +922,7 @@ ...@@ -922,7 +922,7 @@
Annotator.prototype.findAnchorFromPositionSelector = function(target) { Annotator.prototype.findAnchorFromPositionSelector = function(target) {
var browserRange, content, currentQuote, mappings, normalizedRange, savedQuote, selector; var browserRange, content, currentQuote, mappings, normalizedRange, savedQuote, selector;
selector = this.findSelector(target.selector, "TextPosition"); selector = this.findSelector(target.selector, "TextPositionSelector");
if (selector == null) return null; if (selector == null) return null;
savedQuote = this.getQuoteForTarget(target); savedQuote = this.getQuoteForTarget(target);
if (savedQuote != null) { if (savedQuote != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment