force new object
force new object
if i have something like this
- myObject{
- settings{
- target: "#someID",
destination : 0,
- mode: "a"
- }
start : function(){
- //blah blah blah
- }
- }
Is there any way to force instantiation of a new instance of this object if it is to be used.
so this will work
- var newInstance = new myObject();
newInstance.start();
but this will not work
- myObject.start();