Code in the Shindig features/swfobject feature's onload method appears
to be a copy of LGPL code from this blog:

   http://brothercake.com/site/resources/scripts/onload

Here is the code in Shindig:

        /* Cross-browser onload
                - Based on James Edwards' solution:
http://brothercake.com/site/resources/scripts/onload/
                - Will fire an event as soon as a web page including all of its
assets are loaded
         */
        function addLoadEvent(fn) {
                if (typeof win.addEventListener != UNDEF) {
                        win.addEventListener("load", fn, false);
                }
                else if (typeof doc.addEventListener != UNDEF) {
                        doc.addEventListener("load", fn, false);
                }
                else if (typeof win.attachEvent != UNDEF) {
                        addListener(win, "onload", fn);
                }
                else if (typeof win.onload == "function") {
                        var fnOld = win.onload;
                        win.onload = function() {
                                fnOld();
                                fn();
                        };
                }
                else {
                        win.onload = fn;
                }
        }

It does to appear to be a verbatim copy of the code, but it is pretty
close and perhaps too close for comfort.

Is this acceptable to Apache legal?

Thanks,
- Dave

Reply via email to