[Mapbender-dev] Extension of event library

Christoph Baudson christoph.baudson at wheregroup.com
Thu Nov 6 10:18:16 EST 2008


I have added a simple yet crucial detail to the JavaScript class 
MapbenderEvent. (http://trac.osgeo.org/mapbender/ticket/318)

Now you can register a function along with the scope it's going to be 
triggered in. You simple pass the scope as a second parameter to 
MapbenderEvent (a stupid example follows)

var obscureClass = function () {
    this.obscureVar = 42
    someEvent.register(function () {
       alert(this.obscureVar);
    }, this);
}


if someEvent is triggered, the correct value 42 is displayed. Please let 
me know if you have any questions.


-- 
********************************************
Where2B-Konferenz
Die Geo-IT Konferenz der WhereGroup
vom 9.-10. Dezember 2008 in Bonn
Web: www.where2b-conference.com
******************************************** 
_______________________________________

W h e r e G r o u p GmbH & Co. KG

Siemensstraße 8
53121 Bonn
Germany

Christoph Baudson
Anwendungsentwickler

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________

Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________



More information about the Mapbender_dev mailing list