From 500619dde23d9038f94ef66328d16cb79c69eabb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Jan 2012 22:25:44 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/display/cfi.coffee | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/calibre/ebooks/oeb/display/cfi.coffee b/src/calibre/ebooks/oeb/display/cfi.coffee index 4b5b490c82..3d1a49a94b 100644 --- a/src/calibre/ebooks/oeb/display/cfi.coffee +++ b/src/calibre/ebooks/oeb/display/cfi.coffee @@ -143,16 +143,18 @@ find_offset_for_point = (x, y, node, cdoc) -> class CanonicalFragmentIdentifier - # This class is a namespace to expose CFI functions via the window.cfi - # object. The three most important functions are: - # - # is_compatible(): Throws an error if the browser is not compatible with - # this script - # - # at(x, y): which maps a point to a CFI, if possible - # - # scroll_to(cfi): which scrolls the browser to a point corresponding to the - # given cfi, and returns the x and y co-ordinates of the point. + ### + This class is a namespace to expose CFI functions via the window.cfi + object. The three most important functions are: + + is_compatible(): Throws an error if the browser is not compatible with + this script + + at(x, y): which maps a point to a CFI, if possible + + scroll_to(cfi): which scrolls the browser to a point corresponding to the + given cfi, and returns the x and y co-ordinates of the point. + ### constructor: () -> # {{{ this.CREATE_RANGE_ERR = "Your browser does not support the createRange function. Update it to a newer version."