forked from fprochazka/phpstorm-livetemplates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jQuery.xml
43 lines (43 loc) · 2.75 KB
/
jQuery.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<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="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="SQL" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="true" />
<option name="TypeScript" value="false" />
<option name="PHP" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="proxy" value="$.proxy($SELECTION$, this)" description="Proxy call" toReformat="false" toShortenFQNames="true">
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="SQL" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="true" />
<option name="TypeScript" value="false" />
<option name="PHP" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
</templateSet>