Forum closed. New forum available at http://community.wymeditor.org/

encapsulated namespace

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

encapsulated namespace

Postby skote on Fri May 04, 2007 6:00 pm

Hey. I just found out about this editor and am very impressed by what I see so far!

The only thing that's bothered me so far about it is that it dumps 28 variables and 59 functions into the global namespace (at least on the demo page). Integrating this editor into a larger web app could definitely be made less painful if you guys encapsulated all these vars together under one single global var. There's too much risk for namespace collisions as it stands. I noticed init(), onload(), iframe(), editor(), dom(), var n, and so on--all of which are common names for JS entities.

Is there any inclination to do this?
skote
 
Posts: 1
Joined: Fri May 04, 2007 5:47 pm

Postby jfh on Sat May 05, 2007 6:08 pm

Yes, 0.3 is now completely namespaced.

Unfortunately 0.1 and 0.2.x have been written by a foolish JS newbie (me), who wasn't aware of that kind of things. :?

Fortunately, some JS experts have joined the team. The code is far better now. :D
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests