Skip to content
Browse files

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.
  • Loading branch information...
1 parent 0585362 commit b03fb1e573a9f44bbcbf90fcf79e84e12f073aee @acarr acarr committed Nov 29, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 extras/tmpl.js
View
3 extras/tmpl.js
@@ -216,9 +216,10 @@
if ( ! SC.TEMPLATES[ scName ] ) {
SC.TEMPLATES[ scName ] = SC.Handlebars.compile( content );
}
+
+ onLoad(content);
});
// END TMPL SPECIFICS
- onLoad(content);
},
load: function (name, req, onLoad, config) {

0 comments on commit b03fb1e

Please sign in to comment.
Something went wrong with that request. Please try again.