Add missing var statement

Change-Id: I573e952c60550c29bf7958c221899b72a934fb0c
This commit is contained in:
Catrope 2012-10-19 11:06:46 -07:00
parent 7ee5245a2d
commit bfb7e6f40c

View file

@ -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