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");