Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pomoc w zrozumieniu kodu, Kod JavaScript
tristanei
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 25.07.2008

Ostrzeżenie: (0%)
-----


Witam.
Chciałbym dokładnie zrozumieć poniższy kod. Proszę o wytłumaczenie osobę zdolną mi pomóc.
Kod
Passpack = new (function(){
        this.extend = function () {
            var a = arguments[0] || {};
            if (typeof a == 'object') for (var j in a) this[j] = a[j];
        };
        this.extend(arguments[0]);
    })({

    name: 'Passpack',
    version: 1.01,
    date: '2008-06-20',
    
    static: function(){
        this.extend = function () {
            var a = arguments[0] || {};
            if (typeof a == 'object') for (var j in a) this[j] = a[j];
        };
        this.extend(arguments[0]);
        if (typeof this._init === 'function') this._init();
    }

});


Ten post edytował tristanei 27.07.2008, 12:27:45
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 17:45