
                             onClick: onClick,
                             title: typeof title === 'string' ? title : ''
                         });
                     }

                     // curate and move user's states into
                     // the _states for internal use
                     this._states = [];

                     for(var i = 0; i < this.options.states.length; i++){
                         this._states.push( new State(this.options.states[i], this) );
                     }