Code Duplication    Length = 8-8 lines in 2 locations

Ajax/common/traits/JqueryActionsTrait.php 2 locations

@@ 249-256 (lines=8) @@
246
	 * @param boolean $immediatly delayed if false
247
	 * @return string
248
	 */
249
	public function _toggle($element='this', $immediatly=false) {
250
		$element=$this->_prep_element($element);
251
		$str="$({$element}).toggle();";
252
253
		if ($immediatly)
254
			$this->jquery_code_for_compile[]=$str;
255
			return $str;
256
	}
257
258
	// --------------------------------------------------------------------
259
@@ 266-273 (lines=8) @@
263
	 * @param string $event
264
	 * @param boolean $immediatly delayed if false
265
	 */
266
	public function _trigger($element='this', $event='click', $immediatly=false) {
267
		$element=$this->_prep_element($element);
268
		$str="$({$element}).trigger(\"$event\");";
269
270
		if ($immediatly)
271
			$this->jquery_code_for_compile[]=$str;
272
			return $str;
273
	}
274
275
	// --------------------------------------------------------------------
276