Lines Matching defs:state
133 * as well. A state indicator is inserted into the handle and can be styled
143 * @param {int} state initial state (-1 = open, 1 = closed)
145 makeToggle: function(handle, content, state){
168 $handle[0].setState = function(state){
170 if(!state) state = 1;
178 // was a state given or do we toggle?
179 if(state === -1) {
181 } else if(state === 1) {
187 // update the state
198 // the state indicator
206 // initial state
207 $handle[0].setState(state);