SharpVectors.Dom.Events.EventTarget.WillTriggerNs C# (CSharp) Method

WillTriggerNs() public method

public WillTriggerNs ( string namespaceUri, string type ) : bool
namespaceUri string
type string
return bool
        public bool WillTriggerNs(
			string namespaceUri,
			string type)
        {
            XmlNode node = (XmlNode)this.eventTarget;
            XmlNodeList ancestors = node.SelectNodes("ancestor::node()");

            for (int i = 0; i < ancestors.Count; i++)
            {
                IEventTarget ancestor = ancestors[i] as IEventTarget;

                if (ancestor.HasEventListenerNs(namespaceUri, type))
                {
                    return true;
                }
            }

            return false;
        }