Changeset 4:6979313586cf in OKFNAnnotator (for Zope) for annotator_files/lib/widget.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/widget.js

    r3 r4  
    1 var __hasProp = Object.prototype.hasOwnProperty,
    2   __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
     1// Generated by CoffeeScript 1.3.3
     2var __hasProp = {}.hasOwnProperty,
     3  __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
    34
    45Annotator.Widget = (function(_super) {
     
    3334      right: offset.left + widget.width()
    3435    };
    35     if ((current.top - viewport.top) < 0) this.invertY();
    36     if ((current.right - viewport.right) > 0) this.invertX();
     36    if ((current.top - viewport.top) < 0) {
     37      this.invertY();
     38    }
     39    if ((current.right - viewport.right) > 0) {
     40      this.invertX();
     41    }
    3742    return this;
    3843  };
Note: See TracChangeset for help on using the changeset viewer.