Changeset 4:6979313586cf in OKFNAnnotator (for Zope) for annotator_files/lib/extensions.js
- Timestamp:
- Aug 27, 2012, 5:05:38 PM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
annotator_files/lib/extensions.js
r3 r4 1 // Generated by CoffeeScript 1.3.3 1 2 var $, gettext, _gettext, _ref, _t; 2 3 … … 92 93 while (elem && elem.nodeType === 1 && elem !== relativeRoot) { 93 94 idx = $(elem.parentNode).children(elem.tagName).index(elem) + 1; 94 idx = idx > 1 ? "[" + idx + "]" : "";95 idx = "[" + idx + "]"; 95 96 path = "/" + elem.tagName.toLowerCase() + idx + path; 96 97 elem = elem.parentNode; … … 106 107 107 108 $.fn.escape = function(html) { 108 if (arguments.length) return this.html($.escape(html)); 109 if (arguments.length) { 110 return this.html($.escape(html)); 111 } 109 112 return this.html(); 110 113 }; 114 115 $.fn.reverse = [].reverse;
Note: See TracChangeset
for help on using the changeset viewer.