You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/assets/javascripts/views/pages/hidden.js

29 lines
761 B

/*
* decaffeinate suggestions:
* DS002: Fix invalid constructor
* DS206: Consider reworking classes to avoid initClass
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
const Cls = (app.views.HiddenPage = class HiddenPage extends app.View {
static initClass() {
this.events =
{click: 'onClick'};
}
11 years ago
constructor(el, entry) { this.onClick = this.onClick.bind(this); this.el = el; this.entry = entry; super(...arguments); }
11 years ago
init() {
this.addSubview(this.notice = new app.views.Notice('disabledDoc'));
this.activate();
}
11 years ago
onClick(event) {
let link;
if (link = $.closestLink(event.target, this.el)) {
$.stopEvent(event);
$.popup(link);
}
}
});
Cls.initClass();