Created
July 2, 2015 08:29
-
-
Save hwclass/8020adaef708531c92e6 to your computer and use it in GitHub Desktop.
Singleton Pattern (base.js)
This file contains 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
// base.js | |
var Config = require(‘models/Config’); | |
var configInstance = new Config(); | |
var config = configInstance.getConfig(); | |
configInstance = null; | |
$(‘.error).html(config.messages.errors.default); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment