File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3
+ <CodeSnippet Format="1.5.0">
4
+ <Header>
5
+ <SnippetTypes>
6
+ <SnippetType>Expansion</SnippetType>
7
+ </SnippetTypes>
8
+ <Title>jqOn</Title>
9
+ <Author>Kyle Spearrin (www.kylespearrin.com)</Author>
10
+ <Description>Attach an event handler function for one or more events to the selected elements.</Description>
11
+ <HelpUrl>https://github.com/kspearrin/Visual-Studio-jQuery-Code-Snippets</HelpUrl>
12
+ <Shortcut>jqOn</Shortcut>
13
+ </Header>
14
+ <Snippet>
15
+ <Declarations>
16
+ <Literal Editable="true">
17
+ <ID>selector</ID>
18
+ <ToolTip>Element(s) to bind to</ToolTip>
19
+ <Default>selector</Default>
20
+ <Function>
21
+ </Function>
22
+ </Literal>
23
+ <Literal Editable="true">
24
+ <ID>events</ID>
25
+ <ToolTip>One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".</ToolTip>
26
+ <Default>events</Default>
27
+ <Function>
28
+ </Function>
29
+ </Literal>
30
+ </Declarations>
31
+ <Code Language="javascript"><![CDATA[$$(document).on($events$, $selector$, function () {
32
+ $end$
33
+ });]]></Code>
34
+ </Snippet>
35
+ </CodeSnippet>
36
+ </CodeSnippets>
Original file line number Diff line number Diff line change 455
455
</Content >
456
456
<Content Include =" JavaScript\jQuery\jqSlideToggle.snippet" />
457
457
<Content Include =" JavaScript\jQuery\jqSlideToggleFull.snippet" />
458
+ <Content Include =" JavaScript\jQuery\jqOnSel.snippet" />
458
459
<None Include =" source.extension.vsixmanifest" >
459
460
<SubType >Designer</SubType >
460
461
</None >
You can’t perform that action at this time.
0 commit comments