Andreas Hocevar wrote:
On Mon, May 19, 2008 at 11:02 AM, Gilles Bassière
<[EMAIL PROTECTED]> wrote:
By the way, I'd like to ask another question. Your code example help me to
understand events in an mvc architecture but i'm still get confused about
"objref".What is the point on making a difference between "objRef" and
"this" ? Or, what is the concept behind "objref" ? Sorry if this is a silly
question but I'm not familiar with advanced architectures.

It's not a silly question, because both "this" and "objRef" are meant
to do the same. Mapbuilder uses an objRef argument to pass the
context, because at the time the Mapbuilder project was started, you
could not do function.bind in Javascript yet.

Regards,
Andreas.

Thank you very much. You just enlightened mapbuilder code to me!
For those who are not familiar with the concept of "context" or self-reference in javascript, I found this article very useful: http://www.digital-web.com/articles/scope_in_javascript/

Regards
Gilles

--
Gilles Bassiere
MAKINA CORPUS
30 rue des Jeuneurs
FR-75002 PARIS
+33 (0) 1 44 82 00 80
http://www.makina-corpus.com

begin:vcard
fn;quoted-printable:Gilles Bassi=C3=A8re
n;quoted-printable:Bassi=C3=A8re;Gilles
org:Makina Corpus;GIS
adr;quoted-printable:;;30 rue des Je=C3=BBneurs;Paris;;FR-75011;France
email;internet:[EMAIL PROTECTED]
title:Web GIS developper
tel;work:+33 (0) 1 44 82 00 80
x-mozilla-html:FALSE
url:http://www.makina-corpus.com
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to