honeinc / hone-embed

Simple interactions with embedded Hone Questions and Quizzes
http://gohone.com
2 stars 0 forks source link

Add some more rigorous error handling. #6

Closed andyburke closed 10 years ago

andyburke commented 10 years ago

Also, attempts to avoid a string allocation by using slice() instead of replace(). (Who knows if JS will actually avoid the allocation, but it should if it's smart.)

andyburke commented 10 years ago

Made your suggested changes.