welcome: please sign in

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
What program is the main source of Conkeror's design philosophy?

location: ObjectOrientation

JavaScript does not specify a strict model for object oriented programming in the way that other languages you may be familiar with, like C++, Java, and Python do. Instead, JavaScript provides a suite of flexible tools from which you can do many different styles of OO as best suited for your particular application. Many parts of Conkeror are structured in a classical OO paradigm. This article describes the conventions that we adhere to in those parts of Conkeror.

function foo () {
    // base class initialization
foo.prototype = {
    constructor: foo,
    destroy: function () {}

function bar () {
    // derived class initialization
bar.prototype = {
    constructor: bar,
    __proto__: foo.prototype,
    destroy: function () {
        // derived class destruction