Fix tests, remove obsolete initializers

This commit is contained in:
2018-04-17 01:38:21 +02:00
parent c0b5c36115
commit 8d303ea5af
3 changed files with 2 additions and 33 deletions
-20
View File
@@ -1,20 +0,0 @@
/**
* This pauses the app's boot process until the window load event is fired.
* It allows the user provided Web3 instance (e.g. Metamask, Mist Browser)
* to be inserted before we try to use it.
*/
export default {
name: 'defer-loading',
initialize: function(application) {
// Load event already fired, so web3 should be loaded if available
if (window.windowLoadComplete) { return true; }
// Pause app loading
application.deferReadiness();
window.addEventListener('load', function() {
// Continue app loading
application.advanceReadiness();
});
}
};
-10
View File
@@ -1,10 +0,0 @@
import Contributor from 'kredits-web/models/contributor';
import Proposal from 'kredits-web/models/proposal';
export default {
name: 'register-models',
initialize: function(app) {
app.register('model:contributor', Contributor, { singleton: false });
app.register('model:proposal', Proposal, { singleton: false });
}
};