File tree Expand file tree Collapse file tree 3 files changed +58
-0
lines changed Expand file tree Collapse file tree 3 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
2
+ <CodeSnippet Format="1.4.0">
3
+ <Header>
4
+ <SnippetTypes>
5
+ <SnippetType>Expansion</SnippetType>
6
+ </SnippetTypes>
7
+ <Title>jQuery: A generic iterator function</Title>
8
+ <Author>Graham Charles</Author>
9
+ <Shortcut>jqEach</Shortcut>
10
+ <HelpUrl>https://github.com/xxkylexx/Visual-Studio-jQuery-Code-Snippets</HelpUrl>
11
+ </Header>
12
+ <Snippet>
13
+ <Declarations>
14
+ <Literal>
15
+ <ID>collection</ID>
16
+ <ToolTip>Array or Object to iterate over</ToolTip>
17
+ <Default>collection</Default>
18
+ </Literal>
19
+ </Declarations>
20
+ <Code Language="JavaScript">
21
+ <![CDATA[$$.each($collection$, function( indexInArray, valueOfElement ) { $end$ } );]]>
22
+ </Code>
23
+ </Snippet>
24
+ </CodeSnippet>
25
+ </CodeSnippets>
26
+
Original file line number Diff line number Diff line change
1
+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
2
+ <CodeSnippet Format="1.4.0">
3
+ <Header>
4
+ <SnippetTypes>
5
+ <SnippetType>Expansion</SnippetType>
6
+ </SnippetTypes>
7
+ <Title>jQuery: Translate all items in an array or object to new array of items</Title>
8
+ <Author>Graham Charles</Author>
9
+ <Shortcut>jqMap</Shortcut>
10
+ <HelpUrl>https://github.com/xxkylexx/Visual-Studio-jQuery-Code-Snippets</HelpUrl>
11
+ </Header>
12
+ <Snippet>
13
+ <Declarations>
14
+ <Literal>
15
+ <ID>arrayOrObject</ID>
16
+ <ToolTip>Array or Object to be mapped</ToolTip>
17
+ <Default>arrayOrObject</Default>
18
+ </Literal>
19
+ </Declarations>
20
+ <Code Language="JavaScript">
21
+ <![CDATA[$$.map($arrayOrObject$, function( elementOrValue, indexOrKey ) { $end$ } );]]>
22
+ </Code>
23
+ </Snippet>
24
+ </CodeSnippet>
25
+ </CodeSnippets>
26
+
Original file line number Diff line number Diff line change 147
147
<Content Include =" JavaScript\jQuery\jqDocReadyShort.snippet" >
148
148
<IncludeInVSIX >true</IncludeInVSIX >
149
149
</Content >
150
+ <Content Include =" JavaScript\jQuery\jqEach.snippet" >
151
+ <IncludeInVSIX >true</IncludeInVSIX >
152
+ </Content >
150
153
<Content Include =" JavaScript\jQuery\jqEachElement.snippet" >
151
154
<IncludeInVSIX >true</IncludeInVSIX >
152
155
</Content >
240
243
<Content Include =" JavaScript\jQuery\jqLoadPost.snippet" >
241
244
<IncludeInVSIX >true</IncludeInVSIX >
242
245
</Content >
246
+ <Content Include =" JavaScript\jQuery\jqMap.snippet" >
247
+ <IncludeInVSIX >true</IncludeInVSIX >
248
+ </Content >
243
249
<Content Include =" JavaScript\jQuery\jqMouseDown.snippet" >
244
250
<IncludeInVSIX >true</IncludeInVSIX >
245
251
</Content >
You can’t perform that action at this time.
0 commit comments