evilstreak/markdown-js — pull request #190 by eviltrout (2014-04-09 14:52:29+00:00)
Title: FIX: Uncaught TypeError: Cannot call method 'shift' of undefined

This was discovered in Discourse. The fix is a simple `if` check to see if a variable is defined. Tests provided.

see https://meta.discourse.org/t/js-exception-in-composer-method-shift/14589