Meanwhile in bootstrap.js ... 

// construct an object
var data = new Modal(this, options)

// attach it to the DOM node
$(this).data('modal', data)

// retrieve it from the DOM node
var data = $this.data('modal')

// call a method on the object
if(typeof option == 'string') data[option]()