You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A singleton class is a single instance of itself. Because a class instance can't have static members, JSDuck will print a warning when a singleton class contains a member marked with @static. Parent classes may contain static members though.
This tag is auto-detected when class comment is right above Ext.define which contains singleton: true. The following code is equivalent of the above one:
/** * Provides searching of Components. */Ext.define("Ext.ComponentQuery",{singleton: true,});
If for some odd reason you don't want the class to be auto-detected as singleton, use the @ignore tag: