Sounds fine to me.  Let's go ahead and declare a requires/provides and 
use that:

$modules.runtime = {};
$modules.runtime.requires = {};
$modules.runtime.provides = {};

if (foo.style.filters) {
    //IE
    $modules.runtime.requires['alpha_image_loader']; // (for IE 
PNG/opacity support)
    $modules.runtime.provides['alpha_image_loader'];
    // add an entry for each workaround in the kernel and conditionalize 
the kernel on $modules.runtime.requires[...]
}

This is from:
http://wiki.openlaszlo.org/SimpleRequiresProvidesProposal

-Max

Henry Minsky wrote:
> Can we just put a flag into the kernel for now to say if we're running 
> on IE? There is random IE-specific code sprinked around that would be
> more clear if we could do that now, while  waiting for the 
> requires/provides.
> 
> -- 
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to