Skip to content

pashaigood/the.module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the.module

Создание нового модуля на основе the.js
Create a new module based on the.js

the.module({
    TestClass: {
        prop1: 1,
        prop2: 'hello world'
        /**
        @constructor
        **/
        TestClass: function() {
        },
        method1: function() {
        }
    }
});

Создание классов из описания:
Creating classes from the description:

the.module({
    TestClass: {
        /**
        @constructor
        **/
        TestClass: function() {
        }
    },
    TestClass2: {
        /**
        @constructor
        **/
        constructor: function() {
        }
    }
});

Наследование:
Inheritance:

the.module({
    TestClass: { extend: [TestClass2, TestClass3]
        /**
        @constructor
        **/
        TestClass: function() {
            //Вызов всех родительских конструкторов
            //Calling all parent constructors
            this.Super();
        }
    }
});

Описание свойств и методов.
Description of properties and methods.

the.module({
    TestClass: {
        //Статические свойства и методы
        //Static properties and methods
        our: {
            NUMB: 1,
            hello: functino() {
            }
        },
        
        prop1: 1,
        prop2: 'hello world'
        /**
        @constructor
        **/
        TestClass: function() {
            this.our.hello();
        },
        method1: function() {
        }
    }
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published