Joined September 2012
·

davide

rome
·
·

Sure, the ifree number will be refreshed :)

that's right ;) thank you for the feedback

Posted to JavaScript design patterns over 1 year ago

i think you can edit something ,..

var mySing = (function () {
var inst;

return {
getInstance: function() {
instance = init();
}
};

})();

maybe would be corret to write this insted:

var Singleton = (function () {
var instance;

return {
getInstance: function() {
instance = init();
}
};

})()

Achievements
1 Karma
9,020 Total ProTip Views
Interests & Skills