INNER CODE UNIT · JavaScript

eventIndex

moddio/taro · engine/components/network/net.io/net.io-server/index.js:378

						eventIndex = eventCount2 - eventCount;
						var tempEvt = this._eventListeners[eventName][eventIndex];

						// If the sendEventName flag is set, overwrite the arguments with the event name
						if (tempEvt.sendEventName) { finalArgs = [eventName]; }

						// Call the callback
						var retVal = tempEvt.call.apply(tempEvt.context || this, finalArgs);

						// If the retVal === true then store the cancel flag and return to the emitting method
						// TO-DO - Make this a constant that can be named
						if (retVal === true) {
							// The receiver method asked us to send a cancel request back to the emitter
							cancelFlag = true;
						}

						// Check if we should now cancel the event
						if (tempEvt.oneShot) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…