locomotivecms/engine — pull request #895 by tenpaiyomi (2014-03-17 21:45:11+00:00)
Title: Fixing an issue that causes a JS error when fields are created or read with leading/trailing white space on ICanHandlebarz.js

I was unsure of where exactly this PR should point to, as it seems ICanHandlebarz hasn't been updated for a while. The problem, essentially, is that when ICanHandlebarz.js:26 is called, if there is any whitespace (trailing or leading) on $(result), it will cause the method to throw an error, like so:

````
Uncaught Error: Syntax error, unrecognized expression:
````

This, in turn, results in the field that is supposed to be displayed not and getting removed from the DOM. In order to resolve this, I just issued a trim on result before we try to load it and pass it back.