Skip to content

Commit

Permalink
onLoad was being called outside the require for "sproutcore." onLoad …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
acarr committed Nov 29, 2011
1 parent 0585362 commit b03fb1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extras/tmpl.js
Expand Up @@ -216,9 +216,10 @@
if ( ! SC.TEMPLATES[ scName ] ) { if ( ! SC.TEMPLATES[ scName ] ) {
SC.TEMPLATES[ scName ] = SC.Handlebars.compile( content ); SC.TEMPLATES[ scName ] = SC.Handlebars.compile( content );
} }

onLoad(content);
}); });
// END TMPL SPECIFICS // END TMPL SPECIFICS
onLoad(content);
}, },


load: function (name, req, onLoad, config) { load: function (name, req, onLoad, config) {
Expand Down

0 comments on commit b03fb1e

Please sign in to comment.