* Returns shared event manager instance. * @return {EventManager}
()
| 64 | * @return {EventManager} |
| 65 | */ |
| 66 | static getSharedInstance () { |
| 67 | if (sharedInstance === null) { |
| 68 | sharedInstance = new EventManager() |
| 69 | } |
| 70 | return sharedInstance |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Notifies observers of the shared instance about given event. |