Index: trunk/extensions/VisualEditor/tests/es/es.DocumentModel.test.js |
— | — | @@ -19,8 +19,8 @@ |
20 | 20 | console.log( 'mismatched content lengths', a[i], b[i] ); |
21 | 21 | return false; |
22 | 22 | } |
23 | | - aIsBranch = typeof a[i].getChildren === 'function'; |
24 | | - bIsBranch = typeof b[i].getChildren === 'function'; |
| 23 | + var aIsBranch = typeof a[i].getChildren === 'function'; |
| 24 | + var bIsBranch = typeof b[i].getChildren === 'function'; |
25 | 25 | if ( aIsBranch !== bIsBranch ) { |
26 | 26 | return false; |
27 | 27 | } |
Index: trunk/extensions/VisualEditor/modules/es/es.js |
— | — | @@ -131,8 +131,8 @@ |
132 | 132 | es.copyArray = function( source ) { |
133 | 133 | var destination = []; |
134 | 134 | for ( var i = 0; i < source.length; i++ ) { |
135 | | - sourceValue = source[i]; |
136 | | - sourceType = typeof sourceValue; |
| 135 | + var sourceValue = source[i], |
| 136 | + sourceType = typeof sourceValue; |
137 | 137 | if ( sourceType === 'string' || sourceType === 'number' ) { |
138 | 138 | destination.push( sourceValue ); |
139 | 139 | } else if ( es.isPlainObject( sourceValue ) ) { |
— | — | @@ -155,8 +155,8 @@ |
156 | 156 | es.copyObject = function( source ) { |
157 | 157 | var destination = {}; |
158 | 158 | for ( var key in source ) { |
159 | | - sourceValue = source[key]; |
160 | | - sourceType = typeof sourceValue; |
| 159 | + var sourceValue = source[key], |
| 160 | + sourceType = typeof sourceValue; |
161 | 161 | if ( sourceType === 'string' || sourceType === 'number' ) { |
162 | 162 | destination[key] = sourceValue; |
163 | 163 | } else if ( es.isPlainObject( sourceValue ) ) { |