Fires an alert event.
@param {String} name - The name of the event.
@param {Object=} args - Any optional arguments.
513183
function fire(name, args) {
            ngAlertsEvent.fire(name, args);
            ngAlertsEvent.fire('change', args);
        }
1073980
public void postMessage (String name, Object... args)
    {
        postMessage(Transport.DEFAULT, name, args);
    }
693210
public function trigger($name, ...$args)
    {
        if ($this->addThisToEvents) {
            array_unshift($args, $this);
        }
        if (isset($this->eventHandlers[$name])) {
            $this->lastEventName = $name;
            foreach ($this->eventHandlers[$name] as $cb) {
                if ($cb(...$args) === true) {
                    return $this;
                }
            }
        }
        return $this;
    }
479146
def _trigger(self, event_name, *args, **kwargs):
        
        self.log('event: %s' % event_name, *args)
        for f in self._events[event_name]:
            f(*args, **kwargs)
642309
public void add(String name, MessageArg arg) {
    args.add(arg);
    if (map == null) {
      map = new HashMap<>();
    }
    map.put(name, arg);
  }
769579
function (name) {
        return this.each(function () {
          if (typeof name == 'object') {
            Event.fire(this, name.type, name);
          } else {
            Event.fire(this, name);
          }
        });
      }
625468
public function trigger($name, $args = array(), $halt = false)
    {
        $this->curName = $name;
        $this->loadEvent && call_user_func($this->loadEvent, $name);

        if (!is_array($args)) {
            $args = array($args);
        }

        $results = array();
        if (isset($this->handlers[$name])) {
            krsort($this->handlers[$name]);
            foreach ($this->handlers[$name] as $handlers) {
                foreach ($handlers as $handler) {
                    $results[] = $result = call_user_func_array($handler, $args);

                    if ($result !== null && $halt) {
                        return $result;
                    }

                    if (false === $result) {
                        break 2;
                    }
                }
            }
        }

        return $halt ? null : $results;
    }
541222
public void InvokeEvent(String eventName, JSONArray args)
    {
        HubOnDataCallback subscription;
        if(mSubscriptions.containsKey(eventName))
        {
        	subscription = mSubscriptions.get(eventName);
            subscription.OnReceived(args);
        }
    }
341787
function dispatchCallback(name, args) {
                    if(_initialized) {
                        var callback = _currentPreparedOptions.callbacks[name];
                        var extensionOnName = name;
                        var ext;

                        if(extensionOnName.substr(0, 2) === "on")
                            extensionOnName = extensionOnName.substr(2, 1).toLowerCase() + extensionOnName.substr(3);

                        if(type(callback) == TYPES.f)
                            callback.call(_base, args);

                        FRAMEWORK.each(_extensions, function() {
                            ext = this;
                            if(type(ext.on) == TYPES.f)
                                ext.on(extensionOnName, args);
                        });
                    }
                    else if(!_destroyed)
                        _callbacksInitQeueue.push({ n : name, a : args });
                }
1074096
function emitDevtool(name, arg) {
    /* istanbul ignore if */
    if (isBrowser && san4devtool && san4devtool.debug && window.__san_devtool__) {
        window.__san_devtool__.emit(name, arg);
    }
}
1095854
private void fireSingleLinePropertyParsedEvent(String name, String value)
	{
		SingleLinePropertyParsedEvent _event = new SingleLinePropertyParsedEvent(name, value);
		for (PropertiesParsingListener _listener : getListeners())
		{
			_listener.onSingleLinePropertyParsed(_event);
		}
	}
635692
public function emit($type, $name, $arguments = [])
    {
        $fullName = $type . '.' . $name;
        if (!empty($this->events) && isset($this->events[$fullName])) {
            foreach ($this->events[$fullName] as $e) {
                call_user_func_array($e, $arguments);
            }
        }
    }
201984
public static void fire(HasHandlers source, String jqmEventName,
	                        JavaScriptObject jQueryEvent) {

	    JQMEvent<?> event = JQMEventFactory.createEvent(jqmEventName, jQueryEvent);
	    source.fireEvent(event);
	}
335376
function triggerListeners(listeners, event, args)
  {
    if (listeners && event in listeners)
    {
      var eventListeners = listeners[ event ];
      var triggerGroup = ++triggerId;
      var next, node = eventListeners.next;

      while (node !== eventListeners)
      {
        next = node.next;
        node.trigger( triggerGroup, args, false );
        node = next;
      }

      node = eventListeners.next;

      while (node !== eventListeners)
      {
        next = node.next;
        node.trigger( triggerGroup, args, true );
        node = next;
      }
    }
  }
716361
def raise_event(self, event_name, **kwargs):
        
        handlers = list(self._event_handlers[event_name])
        logger.debug('Event: %s %s', event_name, handlers)
        for func in handlers:
            func(self, **kwargs)
959480
def fire_args(opts, jid, tag_data, prefix=''):
    '''
    
    '''
    try:
        tag_suffix = [jid, 'args']
    except NameError:
        pass
    else:
        tag = tagify(tag_suffix, prefix)
        try:
            _event = get_master_event(opts, opts['sock_dir'], listen=False)
            _event.fire_event(tag_data, tag=tag)
        except Exception as exc:
            # Don't let a problem here hold up the rest of the orchestration
            log.warning(
                'Failed to fire args event %s with data %s: %s',
                tag, tag_data, exc
            )
497383
@Override
    public void fireEvent(String configName, Optional<String> valueOpt)
    {
        this.emitEvent(configName, valueOpt);
    }