Code Duplication    Length = 8-8 lines in 3 locations

Ajax/Jquery.php 3 locations

@@ 419-426 (lines=8) @@
416
	 * @param boolean $immediatly defers the execution if set to false
417
	 * @return string
418
	 */
419
	public function after($element='this', $value='', $immediatly=false){
420
		$element=$this->_prep_element($element);
421
		$value=$this->_prep_value($value);
422
		$str="$({$element}).after({$value});";
423
		if ($immediatly)
424
			$this->jquery_code_for_compile[]=$str;
425
		return $str;
426
	}
427
	
428
	/**
429
	 * Get or set the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
@@ 687-694 (lines=8) @@
684
	 * @param boolean $immediatly delayed if false
685
	 * @return string
686
	 */
687
	public function _toggle($element='this', $immediatly=false) {
688
		$element=$this->_prep_element($element);
689
		$str="$({$element}).toggle();";
690
691
		if ($immediatly)
692
			$this->jquery_code_for_compile[]=$str;
693
		return $str;
694
	}
695
696
	// --------------------------------------------------------------------
697
@@ 704-711 (lines=8) @@
701
	 * @param string $event
702
	 * @param boolean $immediatly delayed if false
703
	 */
704
	public function _trigger($element='this', $event='click', $immediatly=false) {
705
		$element=$this->_prep_element($element);
706
		$str="$({$element}).trigger(\"$event\");";
707
708
		if ($immediatly)
709
			$this->jquery_code_for_compile[]=$str;
710
		return $str;
711
	}
712
713
	// --------------------------------------------------------------------
714