Commit 5d2ca494 authored by csillag's avatar csillag

Update Annotator's Document plugin to 816c71f8 (typed-packaging branch). Fixes #1069

parent c7512d0b
...@@ -153,7 +153,6 @@ class Annotator.Plugin.Document extends Annotator.Plugin ...@@ -153,7 +153,6 @@ class Annotator.Plugin.Document extends Annotator.Plugin
# hack to get a absolute url from a possibly relative one # hack to get a absolute url from a possibly relative one
_absoluteUrl: (url) -> _absoluteUrl: (url) ->
img = $("<img src='#{ url }'></img>") d = document.createElement('a')
url = img.prop('src') d.href = url
img.prop('src', null) d.href
return url
// Generated by CoffeeScript 1.6.3 // Generated by CoffeeScript 1.6.3
/* /*
** Annotator 1.2.6-dev-3cbddbb ** Annotator 1.2.6-dev-816c71f
** 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: 2014-02-17 14:21:09Z ** Built at: 2014-04-01 01:07:49Z
*/ */
...@@ -284,11 +284,10 @@ ...@@ -284,11 +284,10 @@
}; };
Document.prototype._absoluteUrl = function(url) { Document.prototype._absoluteUrl = function(url) {
var img; var d;
img = $("<img src='" + url + "'></img>"); d = document.createElement('a');
url = img.prop('src'); d.href = url;
img.prop('src', null); return d.href;
return url;
}; };
return Document; return Document;
......
{"version":3,"file":"annotator.document.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/document.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACAA;CAAA,GAAA,EAAA;KAAA;;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb,OAAA;;CAAA;;;;;;;;;;;;;;;;;;;;CAAA;;CAAA,EAAI,CAAJ,KAAa;;CAAb,EAGE,GADF;CACE,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EAAuB,CAAtB,IAAS,CAAA,GAAa;MADzB,IAAA;CAAA;UADF;CAAA;uBADW;CAxIb,IAwIa;;CAxIb,EA6Ie,MAAA,IAAf;CACE,SAAA,kBAAA;CAAA,CAAA,CAAqB,CAApB,EAAD,EAAS;CAET;CAAA;YAAA,gCAAA;uBAAA;CACE,EAAG,CAAA,CAAS,GAAZ,EAAA;CACE,CAAgC,EAA7B,CAAA,IAAH,CAAA,CAAG;CACD,GAAC,IAAQ,CAAT;MADF,MAAA;CAGE,GAAC,IAAQ;YAJb;MAAA,IAAA;CAAA;UADF;CAAA;uBAHa;CA7If,IA6Ie;;CA7If,EAwJc,MAAC,GAAf;CACE,SAAA;CAAA,EAAI,GAAJ,EAAY,KAAR;CAAJ,EACS,CAAT,EAAA;CACC,YAAD;CA3JF,IAwJc;;CAxJd;;CAFsC,QAAS;CAAjD"}
\ No newline at end of file \ No newline at end of file
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