erikzaadi / jQueryPlugins

Collection of jQuery plugins
83 stars 88 forks source link

stylesheet: Change Pos #22

Open Vyeche opened 13 years ago

Vyeche commented 13 years ago

I noticed that your placing the stylesheets into the body instead of the header.

I think it should be:


if (!opts["overrideElementCSS"]) {
            $("link", document).filter(function () {
                return $(this).attr("rel").toLowerCase() == "stylesheet";
            }).each(function () {
                html.push('');
            });
        }
else if (opts["overrideElementCSS"]) {
            if (opts["overrideElementCSS"].length > 0) {
                for (var x = 0; x < opts["overrideElementCSS"].length; x++) {
                    var current = opts["overrideElementCSS"][x];
                    if (typeof (current) == 'string')
                        html.push('');
                    else
                        html.push('');
                }
            }
        }