You are here: Custom Study Programming > Reference > Callback Functions > Functions > destroy

destroy

This callback functions gets called whenever study is being destroyed.

Syntax

destroy();

Example

The following example demonstrates the use of getParameter.

 

function init()

{

//add parameter

this.addParameter("Period", 10);

}

 

function destroy()

{

//cleanup any values

}

 

function calculate(beginIndex, endIndex)

{

var period = parseInt(this.getParameter("Period"));

}

 

 


Copyright © 2006-2009 ActiveTick LLC