mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Add missing var statement
Change-Id: I573e952c60550c29bf7958c221899b72a934fb0c
This commit is contained in:
parent
7ee5245a2d
commit
bfb7e6f40c
|
@ -564,7 +564,7 @@
|
|||
* @returns obj[arguments[1]][arguments[2]].... or undefined
|
||||
*/
|
||||
ve.getProp = function ( obj /*, keys ... */ ) {
|
||||
var retval = obj;
|
||||
var i, retval = obj;
|
||||
for ( i = 1; i < arguments.length; i++ ) {
|
||||
if ( retval === undefined || retval === null ) {
|
||||
// Trying to access a property of undefined or null causes an error
|
||||
|
|
Loading…
Reference in a new issue