wukele / jpolite

Automatically exported from code.google.com/p/jpolite
0 stars 1 forks source link

Load/Unload handling? #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have looked over the code and see the code that handles loading a module.  
But, it is unclear to 
me if there is any code to handle unlocking a module?  For example, if my 
module loads a bunch of 
data, perhaps adds some javascript event handlers and such.  Does that stuff 
stay around forever?  I 
am wondering if their should be some kind of cleanup code that gets called when 
the module is 
closed.  You could close the module by clocking on the x.

I don't fully understand what is going on in the code, so this may not be a 
problem.

Original issue reported on code.google.com by sc...@realorganized.com on 27 Apr 2009 at 7:02

GoogleCodeExporter commented 9 years ago
Current implementation does not restrict inline JavaScript code in a module. 
Actually
I haven't tested such features myself, since my own coding convention is: No JS 
in HTML.

If you close the module, the inline JS should be gone. Unless you attach a JS 
node in
the <head> section pointing to another JS.

For security reasons, JS usage is usually forbidden in lots public portals, 
e.g.,
MySpace. Some do allow actually makes a widget an iframe.

Original comment by bwstud...@gmail.com on 6 Jun 2009 at 1:01