function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lukesh KarmoreLukesh Karmore 

What is the meaning of this line "instance of an event "

What is the meaning of this line "instance of an event "
i faced it many times and the meaning is the server of salesforce u used.
But the another meaning of "instance of an event is the record of perticular data" i'm i right i don't know please any one clear it...
Thank you.
RituSharmaRituSharma
It's like instance of an object. For e.g. when we write like below in Apex:

Account acc = new Account();

In above line we have declared an instance of Account object. Same way client-side controller gets an instance of the event using below line:

var cmpEvent = cmp.getEvent("cmpEvent");
Lukesh KarmoreLukesh Karmore
Thank u ritu
RituSharmaRituSharma
Please mark my answer as the best answer if that helped. It would help others in future.
Lukesh KarmoreLukesh Karmore
Means in simple words it create a reference or space .