SlexAxton/sc-handlebars — pull request #1 by acarr (2011-11-29 20:04:51+00:00)
Title: "onLoad" was being called outside the require for "sproutcore."

Sometimes templates will not be available when the view looks in SC.TEMPLATES for it. This is due to the onLoad method within the plugin being called prior to the template being loaded.

"onLoad" would be called prior to Sproutcore being available if the plugin has to load it. Moving onLoad into the sproutcore load callback fixes the issue.