Changeset 4:6979313586cf in OKFNAnnotator (for Zope) for annotator_files/lib/extensions.js


Ignore:
Timestamp:
Aug 27, 2012, 5:05:38 PM (12 years ago)
Author:
casties
Branch:
default
Message:

new version of annotator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • annotator_files/lib/extensions.js

    r3 r4  
     1// Generated by CoffeeScript 1.3.3
    12var $, gettext, _gettext, _ref, _t;
    23
     
    9293    while (elem && elem.nodeType === 1 && elem !== relativeRoot) {
    9394      idx = $(elem.parentNode).children(elem.tagName).index(elem) + 1;
    94       idx = idx > 1 ? "[" + idx + "]" : "";
     95      idx = "[" + idx + "]";
    9596      path = "/" + elem.tagName.toLowerCase() + idx + path;
    9697      elem = elem.parentNode;
     
    106107
    107108$.fn.escape = function(html) {
    108   if (arguments.length) return this.html($.escape(html));
     109  if (arguments.length) {
     110    return this.html($.escape(html));
     111  }
    109112  return this.html();
    110113};
     114
     115$.fn.reverse = [].reverse;
Note: See TracChangeset for help on using the changeset viewer.