remove() public static method

..
public static remove ( DOMNode | phpQueryObject | string $document, $node, unknown_type $type = null, unknown_type $callback = null )
$document DOMNode | phpQueryObject | string
$type unknown_type
$callback unknown_type
Ejemplo n.º 1
0
 /**
  * Enter description here...
  *
  * @param unknown_type $type
  * @param unknown_type $callback
  * @return unknown
  * @TODO namespace events
  * @TODO support more than event in $type (space-separated)
  */
 public function unbind($type = null, $callback = null)
 {
     foreach ($this->elements as $node) {
         phpQueryEvents::remove($this->getDocumentID(), $node, $type, $callback);
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Enter description here...
  *
  * @param unknown_type $type
  * @param unknown_type $callback
  * @return unknown
  * @TODO namespace events
  * @TODO support more than event in $type (space-separated)
  */
 public function unbind($type = null, $callback = null)
 {
     foreach ($this->elements as $node) {
         $newEvent = new phpQueryEvents($this->phpquery);
         $newEvent->remove($this->getDocumentID(), $node, $type, $callback);
     }
     return $this;
 }