About SectionStack hideSection()

Hello, Hi:
sometimes, when I call SectionStack.hideSection(), there is a error popup :
In IE: ‘target’ is null or not an object
In FireFox:Error: _1 has no properties
Source File: http://localhost:8080/isomorphic/system/modules/ISC_Foundation.js?isc_version=5.7.1.js
Line: 54

What’s problem?

May hideSection() destroy some object impliedly?

Thx

You might be able to trigger that if you were to enable animation in a SectionStack, call hideSection() such that animation is started, then immediately destroy() one of the components being animated.

If you can get it to happen consistently, please provide a test case and we can take a deeper look.

one SectionStack contains section array: var allSections = new Array(‘SS’,‘BI’,‘IS’,‘PC’,‘PP’) ;

test cast as following:

  1. hideSection(‘SS’,‘BI’,‘IS’,‘PC’,‘PP’); (it is ok)
  2. showSection(‘SS’,‘BI’,‘IS’,‘PC’,‘PP’); (it is ok)
  3. hideSection(‘SS’,‘BI’,‘IS’,‘PC’,‘PP’); (it is ok)
  4. showSection(‘SS’,‘BI’); (it is ok)

then hideSection(‘SS’,‘BI’,‘IS’,‘PC’,‘PP’); then get described exception.

Hi deadcow,

It’s unlikely that this has to do with a series of shows and hides with no other factors involved. By a test case, we mean a runnable, standalone example demonstrating the problem.

I think it caused by the actions between hideSection() and showSection():
before completed hideSection(), then call showSection() may get this error.

do you have any good ideas to check whether completed hideSection()?