Skip to content

Instantly share code, notes, and snippets.

@Cfeusier
Last active September 19, 2015 01:13
Show Gist options
  • Save Cfeusier/e9b79897a4202805dafb to your computer and use it in GitHub Desktop.
Save Cfeusier/e9b79897a4202805dafb to your computer and use it in GitHub Desktop.
var BrowsersManager = {
bindMtds: function() {
bindAll(this,
'setupReporters',
'setConfigs',
'setBrowsers',
'startMainWindow',
'loadClientApp',
'displayMainWindow',
'registerEvents',
'registerIpc',
'removeWindow',
'shouldSave',
...
);
},
setupReporters: function() { ... },
setConfigs: function() { ... },
setBrowsers: function() { ... },
startMainWindow: function() { ... },
...
};
BrowsersManager.bindMtds();
// all methods, the names of which were passed to .bindAll, are now bound to the BrowsersManager object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment