class masterview {
    // catch the scroll event and display the position in the scroll counter
    open() {
        if (!this.subactive) {
            this.subactive = true;
            this.app.openView("#subview1");
        }
        else {
            this.subactive = false;
            this.app.openView("#subview2");
        }
        // or: $("#barScrollCounter").text(target.scrollTop);
    }

    // catch the close event
    close() {
        this.app.closeAll(this.target);
    }
}

ApVyManager.addView(masterview);

@@ -331,70 +331,8 @@
   %7D%0A
-        // or: $(%22#barScrollCounter%22).text(target.scrollTop);%0A
     

remove leftover comment