Skip to content

Commit

Permalink
minor changes/fixes to a few snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Swedberg committed Apr 28, 2010
1 parent 360dd75 commit f6d72eb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Snippets/$_getJSON.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>\$.get('${1:/path/to/file}'${2/(.+)/(?1:, {:)/}${2:param1: 'value1'}${2/(.+)/(?1:}:)/}${3/(.+)/(?1:, function\(json, textStatus\) {
<string>\$.getJSON('${1:/path/to/file}'${2/(.+)/(?1:, {:)/}${2:param1: 'value1'}${2/(.+)/(?1:}:)/}${3/(.+)/(?1:, function\(json, textStatus\) {
:)/}${3://optional stuff to do after success}${3/(.+)/(?1:
}:)/});
$0</string>
Expand Down
3 changes: 1 addition & 2 deletions Snippets/$_inArray.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>\$.inArray(${1:value}, ${2:array});
$0</string>
<string>\$.inArray(${1:value}, ${2:array});$0</string>
<key>name</key>
<string>$.inArray</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/add.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>.add('${1:selector expression}')$0</string>
<string>.add('${1:selector/elements/html}')$0</string>
<key>name</key>
<string>add</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/live.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>.live('${1:click/dblclick/mousedown/mouseup/mousemove/mouseover/mouseout/keydown/keypress/keyup}', function(${2:event}) {
<string>.live('${1:event type(s)}', function(${2:event}) {
${0:// Act on the event}
});</string>
<key>name</key>
Expand Down
20 changes: 14 additions & 6 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -89,31 +89,37 @@
<dict>
<key>items</key>
<array>
<string>FD88DCF4-58A9-496A-9210-F20156700868</string>
<string>F4F59773-66ED-49A5-A47F-F2DF95DFF6F2</string>
<string>4E59B953-8663-41A5-BACE-34094480ED3B</string>
<string>D8442C25-F005-4995-8918-D51658FD75FA</string>
<string>A6D9E0E1-5232-4B30-9D96-A085F4B8C721</string>
<string>326083F8-59EA-4872-8EDB-32DFACF6C6A7</string>
<string>54F78638-036C-4B57-8B6D-78C64BEC84E0</string>
<string>D01A7D64-EBFB-40BF-8BEB-D53D6854AF3F</string>
<string>3D9DFC6C-3EC9-419C-9545-4067501F55AA</string>
<string>361494C4-C20F-41CB-83BE-F7CB7EEACA0C</string>
<string>1F1C3DA9-9CD9-44A4-BA0F-102959108394</string>
<string>2CD51B4A-9744-464D-BD42-587918A3E7F8</string>
<string>FF6E4F76-165C-4673-98C6-AA62304321A3</string>
<string>9E93C422-17DF-4E4C-94A6-E1EAB208EE17</string>
<string>89678DD7-52FB-44AF-B047-4FA67FFAD6C0</string>
<string>B05CC61E-22C0-44E6-BB70-38221EF78144</string>
<string>CAC309A6-0B2C-414F-A72B-A299B63C6EE0</string>
<string>E92F75EC-8F73-4A9F-8B0F-D78B8CDB1F2F</string>
<string>A151477E-0403-4A7B-9EF4-32154D482A34</string>
<string>6D4E72DF-9184-429A-BDCF-79E7D311E7A2</string>
<string>3BE44D61-FEC7-42E9-BE5F-2BA37CABE013</string>
<string>21E9EBE5-19BA-4F90-A3BE-5608DB9793EF</string>
<string>44D8A9F3-9942-472D-82B0-F5E015D8BABA</string>
<string>65A0B862-1F5E-47D4-9D11-28AE2AD7FB16</string>
<string>2FBEE286-9869-4984-B439-4332E4A9A5A8</string>
<string>715AA817-1F63-407A-B281-7CC606E0878A</string>
<string>13B7CD6B-13B4-4102-9A23-F821108267FD</string>
<string>04E58859-1465-4FA4-94FA-7AD641DD3484</string>
<string>2AB83C8D-6707-474C-844E-27DFF2743C1B</string>
<string>3E876164-424E-4B23-A302-F41F39BC5613</string>
<string>AE5D42AE-75F6-4AB5-8D47-1717B1E864C2</string>
<string>F5374FF3-7309-4278-B141-284CBC9AF0D6</string>
<string>5F1FD7E2-BD1F-4AAD-925A-B7CD2896B376</string>
<string>315E1038-A2D7-4224-8021-A7A436DB5C60</string>
<string>3A2A0A5F-B5F8-4DD9-81EF-2206DB50FBB7</string>
<string>192DDDDC-BA7F-4B31-B6A6-4BB127A0B8F8</string>
<string>E2DB157D-D4F0-4459-9BED-7E8BBC4EC8CA</string>
</array>
<key>name</key>
Expand Down Expand Up @@ -276,6 +282,7 @@
<string>02F87930-5CDC-414A-BA7F-D74CCFD2CBA3</string>
<string>27C91862-CFF5-4D6F-8BBB-7DCF2122FA74</string>
<string>D2949488-1293-4CF9-B57A-43BC8E4089FF</string>
<string>1A278053-D804-4EBC-A03B-27D719E862AB</string>
</array>
<key>name</key>
<string>Plugins</string>
Expand Down Expand Up @@ -327,7 +334,6 @@
<string>544979B1-A28A-45F4-A29E-75121373095B</string>
<string>55BFEE67-1062-48BD-86BB-9AAB92DECD75</string>
<string>02B7D7B0-F9B5-4CE0-8259-BB192E966237</string>
<string>4BDF4129-8CB5-4361-AD71-A0ABDDB4D5A5</string>
<string>57F5AE77-4616-4DE0-9D61-2D066E6273D3</string>
<string>6DDA60D4-9051-49A4-90CC-F6F4E6E05E31</string>
<string>08E49FD4-15A2-4356-893B-75C719253BC3</string>
Expand Down Expand Up @@ -384,6 +390,7 @@
<string>48ED79F8-E373-4A10-8652-88704526AD5A</string>
<string>DA0A31DD-4C8B-4B96-A4D4-EA734BFCA9D4</string>
<string>E0ED9E7C-9EF4-4588-9D3C-03A2896F496D</string>
<string>4BDF4129-8CB5-4361-AD71-A0ABDDB4D5A5</string>
<string>BF3A7B2E-75B9-4F59-8A5F-C94E275D7105</string>
<string>3E97CCBD-C903-4263-9FBB-A9F63B1F9F34</string>
<string>8A70859E-0F5F-46F4-B098-59815DD3FB7C</string>
Expand Down Expand Up @@ -459,6 +466,7 @@
<string>3E876164-424E-4B23-A302-F41F39BC5613</string>
<string>F5374FF3-7309-4278-B141-284CBC9AF0D6</string>
<string>02F87930-5CDC-414A-BA7F-D74CCFD2CBA3</string>
<string>1A278053-D804-4EBC-A03B-27D719E862AB</string>
<string>27C91862-CFF5-4D6F-8BBB-7DCF2122FA74</string>
<string>D2949488-1293-4CF9-B57A-43BC8E4089FF</string>
</array>
Expand Down

0 comments on commit f6d72eb

Please sign in to comment.