gerd
4/18/2017 - 4:51 PM

Extend A Module

var Module = (function(){
 var set = {}
 set.show = function(){
   alert('Module method')
 }
 return set
})()
//So now I will extend current Module.

var Ext = (function(Module){

 Module.get = function(){
   Module.show()
 }

 return Module

})(Module)
//Now I can do this:

Module.get()
Ext.get()