ember-addons / bootstrap-for-ember

Bootstrap for Ember.js
http://ember-addons.github.io/bootstrap-for-ember
Apache License 2.0
704 stars 103 forks source link

Documentation: Programatically Modal Creation #114

Closed ggando closed 10 years ago

ggando commented 10 years ago

Hi, I believe the following code gives an error.

  myModalButtons: [
    {title: 'Submit', clicked: "submit"},
    {title: 'Cancel', clicked: "cancel", dismiss: 'modal'}
  ],

I've tested and it works with the following

myModalButtons: [
    Ember.Object.create({title: 'Submit', type: 'primary', clicked: 'submit'}),
    Ember.Object.create({title: 'Cancel', dismiss: 'modal'})
  ],
asaf commented 10 years ago

Indeed, please use ember objects, i'll fix the docs.