forked from fprochazka/phpstorm-livetemplates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jQuery.icls
22 lines (21 loc) · 1.76 KB
/
jQuery.icls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="jQuery">
<template name="fn" value="/** * $DESCRIPTION$ */ (function ($, undefined) { 	var $CLASS$ = function (el$CLASS_ARGS$) { 	 $CONSTRUCTOR$ 	}; 	$CLASS$.prototype.$METHOD$ = function ($ARGS$) { 		$END$ 	}; 	/** 	 * Register as jquery plugin 	 */ 	$.fn.$CLASS_CALL$ = function () { 		this.each(function () { // iterate and reformat each matched element 			var el = $(this); 			el.data('$CLASS_CALL$', new $CLASS$(el$CLASS_ARGS$)); 		}); 		return this; 	}; })(jQuery);" description="jQuery selection module" toReformat="true" toShortenFQNames="true">
<variable name="CLASS" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="CLASS_CALL" expression="decapitalize(CLASS)" defaultValue="" alwaysStopAt="false" />
<variable name="CLASS_ARGS" expression="" defaultValue=", " alwaysStopAt="true" />
<variable name="CONSTRUCTOR" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="DESCRIPTION" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="METHOD" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="ARGS" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="proxy" value="$.proxy($SELECTION$, this)" description="Proxy call" toReformat="false" toShortenFQNames="true">
<variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
</templateSet>