Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | */ |
108 | 108 | 'isRequired': function( module, requirement ) { |
109 | 109 | if ( typeof module['req'] !== 'undefined' ) { |
110 | | - for ( req in module['req'] ) { |
| 110 | + for ( var req in module['req'] ) { |
111 | 111 | if ( module['req'][req] == requirement ) { |
112 | 112 | return true; |
113 | 113 | } |
— | — | @@ -595,11 +595,11 @@ |
596 | 596 | modules = {}; |
597 | 597 | modules[args[1]] = ''; |
598 | 598 | } |
599 | | - for ( module in modules ) { |
| 599 | + for ( var module in modules ) { |
600 | 600 | // Only allow modules which are supported (and thus actually being turned on) affect the decision to extend |
601 | 601 | if ( module in $.wikiEditor.modules && $.wikiEditor.isSupported( $.wikiEditor.modules[module] ) ) { |
602 | 602 | // Activate all required core extensions on context |
603 | | - for ( e in $.wikiEditor.extensions ) { |
| 603 | + for ( var e in $.wikiEditor.extensions ) { |
604 | 604 | if ( |
605 | 605 | $.wikiEditor.isRequired( $.wikiEditor.modules[module], e ) && |
606 | 606 | context.extensions.indexOf( e ) === -1 |