Code Duplication    Length = 3-3 lines in 2 locations

Ajax/Jquery.php 2 locations

@@ 923-925 (lines=3) @@
920
	 * @return string
921
	 */
922
	public function _prep_element($element) {
923
		if (strrpos($element, 'this')===false&&strrpos($element, 'event')===false&&strrpos($element, 'self')===false) {
924
			$element='"'.addslashes($element).'"';
925
		}
926
		return $element;
927
	}
928
@@ 941-943 (lines=3) @@
938
		if (is_array($value)) {
939
			$value=implode(",", $value);
940
		}
941
		if (strrpos($value, 'this')===false&&strrpos($value, 'event')===false&&strrpos($value, 'self')===false) {
942
			$value='"'.$value.'"';
943
		}
944
		return $value;
945
	}
946