How to call any javascript function whenever object is created.
well i am not sure but, is there any way to call javascript function when i create any object.?
var myScroll = new iScroll("wrapper");
function objectCreated() {
alert("yes created")
}
here i want to call function objectCreated function when i create iScroll object. i know i can call function objectCreated from iScroll constructor but i dont want to make change in iscroll.