Skip to content

TypeError: Cannot read property 'firstRun' of undefined #498

Closed
@shaunjohansen

Description

@shaunjohansen

We are intermittently seeing this error in our logs using v3.5.14. It has been seen on desktop Chrome, iOS and Android.

I have tracked it down to the settings[iframeId].firstRun in this function:

		function checkReset(){
			// Reduce scope of firstRun to function, because IE8's JS execution
			// context stack is borked and this value gets externally
			// changed midway through running this function!!!
			var
				firstRun           = settings[iframeId].firstRun,
				resetRequertMethod = settings[iframeId].heightCalculationMethod in resetRequiredMethods;

			if (!firstRun && resetRequertMethod){
				resetIFrame({iframe:iframe, height:0, width:0, type:'init'});
			}
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions