rniemeyer / knockout-sortable

A Knockout.js binding to connect observableArrays with jQuery UI sortable functionality
MIT License
547 stars 128 forks source link

Set templateEngine on template options #110

Closed konstanto closed 10 years ago

konstanto commented 10 years ago

Apply an instance of the TemplateEngine to the options so it won't fail to render in knockout executeTemplate(). Right now it won’t render anything because TemplateEngine is undefined. I'm not sure why this works, but it does for me.

rniemeyer commented 10 years ago

@konstanto - Do you have some sample code or a scenario that I can look at where you were seeing a failure? With the change that you are suggesting it would potentially replace any custom template engine that a dev is already using. Thanks!

rniemeyer commented 10 years ago

Closing this one. If you have a reproduction of the failure, then I can take another look. Thanks!