Code Duplication    Length = 8-8 lines in 2 locations

Ajax/common/traits/JqueryActionsTrait.php 2 locations

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