Created
February 11, 2014 14:50
-
-
Save dogles/8936228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModelEntity.init = function(completion) { | |
var componentError = null; | |
var postFork = function() { | |
if ( componentError != null ) Log.error(componentError); | |
completion(componentError); | |
} | |
ForkJoin.fork(entity.m_components,function(component,join) { | |
component.onInit(function(error) { | |
if(error != null) componentError = error; | |
join(postFork); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment