Changeset 4:6979313586cf in OKFNAnnotator (for Zope) for annotator_files/lib/widget.js
- Timestamp:
- Aug 27, 2012, 5:05:38 PM (12 years ago)
- Branch:
- default
- 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 2 var __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; }; 3 4 4 5 Annotator.Widget = (function(_super) { … … 33 34 right: offset.left + widget.width() 34 35 }; 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 } 37 42 return this; 38 43 };
Note: See TracChangeset
for help on using the changeset viewer.