Has anyone ever come across a function syntax like given below in javascript or jquery. It is there in my project and I am not able to figure out what it is.
function a::b(arg1, arg2)
{}
Has anyone ever come across a function syntax like given below in javascript or jquery. It is there in my project and I am not able to figure out what it is.
function a::b(arg1, arg2)
{}
No, that's invalid javascript. So if you ever come across such syntax you have 2 choices:
you can either use normal function
function xyz(){} or you can use singleton
xyz:function(){}
This is invalid javascript syntax: