Hi,
Die klassen funktioniert zwar, nur möchte ich sie algemein gültig machen, sprich bei this.checkState soll anstatt "anfrage.onError()" ein ausdruck stehen, der die funktion onError aus der Klasse aufruft. ich hab mit "this.onError()" versucht, aber leider ist in this das Abfrageobjekt gespeichert. also nun meine Frage : wie kriege ich das klassenobjekt herraus, ohne anfrage zu nutzen?
http://aktuell.de.selfhtml.org/artikel/javascript/organisation/#closures-anwendung
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“