I view a file and see that
var Modal = {
presets: {....},
initialize: function(){...},
addClick: function(){...},
extend: $extend
}
Modal.extend(Events.prototype);
Modal.extend(Options.prototype);
Modal.extend(Chain.prototype);
i think Modal is a object.
addClick key with value is a function
i call it like addClick function.
in this function have a line
this.setOptions();
and i catch a error : this.setOptions is not a function