Fixed bug #25147, a regression caused by r72743, where one of the type checks for...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 13 Sep 2010 19:36:09 +0000 (19:36 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 13 Sep 2010 19:36:09 +0000 (19:36 +0000)
resources/mediawiki/mediawiki.js

index 56d8f94..215e0ab 100644 (file)
@@ -560,7 +560,7 @@ window.mediaWiki = new ( function( $ ) {
                        registry[module].state = 'loaded';
                        // Attach components
                        registry[module].script = script;
-                       if ( typeof style === 'string' ) {
+                       if ( typeof style === 'string' || typeof style === 'object' ) {
                                registry[module].style = style;
                        }
                        if ( typeof localization === 'object' ) {