From a8b01aebe0b026ea3bc265d1dd691d440443e22c Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 23 Jul 2014 13:26:52 +0200 Subject: [PATCH] Cleanup of legacy code. --- sandbox/annotate.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sandbox/annotate.js b/sandbox/annotate.js index e97987d149..0d7d0d8921 100644 --- a/sandbox/annotate.js +++ b/sandbox/annotate.js @@ -2,22 +2,12 @@ $.fn.annotate = function(ctx) { - console.log("ctx is ", ctx); - - var $annotate, - $body = $('body'), - $el; - return this.each(function(i, el) { - $el = $(el).attr("data-annotate", i); + var $el = $(el).attr("data-annotate", i); var pos = $el.attr("data-pos"); if(pos == undefined) pos = "top"; - console.log("pos at " + i + " is ", pos); - //var $annotate = $('
' + $el.html() + '
'); - //$(ctx).append($annotate); - //$el.html(''); $el.append('
'); $el.addClass("annotate");