Skip to content

"onLoad" was being called outside the require for "sproutcore." #1

Merged
merged 1 commit into from Nov 29, 2011

2 participants

@acarr
acarr commented Nov 29, 2011

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.

@acarr acarr onLoad was being called outside the require for "sproutcore." 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.
b03fb1e
@SlexAxton
Owner

Yep.

@SlexAxton SlexAxton merged commit 37c2f5b into SlexAxton:master Nov 29, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.