]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/atom-space-pen-views/lib/scroll-view.js
3 __hasProp
= {}.hasOwnProperty
,
4 __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
; };
6 View
= require('space-pen').View
;
8 module
.exports
= ScrollView
= (function(_super
) {
9 __extends(ScrollView
, _super
);
11 function ScrollView() {
12 return ScrollView
.__super__
.constructor.apply(this, arguments
);
15 ScrollView
.prototype.initialize = function() {
16 return atom
.commands
.add(this.element
, {
17 'core:move-up': (function(_this
) {
19 return _this
.scrollUp();
22 'core:move-down': (function(_this
) {
24 return _this
.scrollDown();
27 'core:page-up': (function(_this
) {
29 return _this
.pageUp();
32 'core:page-down': (function(_this
) {
34 return _this
.pageDown();
37 'core:move-to-top': (function(_this
) {
39 return _this
.scrollToTop();
42 'core:move-to-bottom': (function(_this
) {
44 return _this
.scrollToBottom();