implements the singleton pattern
source | function | the constructor function |
function | the constructor function |
var myobj = function(){ ... };
myobj = webix.single(myobj);
var t1 = new myobj();
var t2 = new myobj(); //t2 === t1
Back to top