ember.jsshowdown

ember or showdown : Uncaught TypeError: Cannot call method 'replace' of undefined


Tom Dayle's Lecture: Intro to Ember
http://www.youtube.com/watch?feature=player_embedded&v=Ga99hMi7wfY

i used both github.com/cmoel/tom_dale_embe­r_screencast github.com/cmoel/tom_dale_ember_screencast And
github.com/jielimanyili/tom-dale-screencast_building-an-app-with-ember-js_code

In Chrome Dev: Uncaught TypeError: Cannot call method 'replace' of undefined (showdown.js:62)
If i remove the use of "markdown" from the template.. the App works.

In FireBug: a is undefined (showdown.js: 62)

Not sure if it is Ember or Showdown that is causing this.

Thanks


Solution

  • I think you will be...little angry... this was just a typo I think... in the template you refer {{extended}}, but in the fixtures, the property is extentded. So obviously the Showdown plugin complains because you're trying to use it with undefined.

    http://jsfiddle.net/Sly7/7vfLD/7/