Skip to content
This repository
Browse code

fixed most jquery snippets

Signed-off-by: Martin Grenfell <martin_grenfell@msn.com>
  • Loading branch information...
commit 9e7789e116f5440dab484b57d6e51fcfd4a88405 1 parent 9bd74e2
Reza Jelveh <> authored committed

Showing 92 changed files with 183 additions and 184 deletions. Show diff stats Hide diff stats

  1. +1 1  javascript-jquery/add.snippet
  2. +1 1  javascript-jquery/addClass.snippet
  3. +1 1  javascript-jquery/after.snippet
  4. +13 13 javascript-jquery/ajax.snippet
  5. +3 3 javascript-jquery/ajaxerror.snippet
  6. +3 3 javascript-jquery/ajaxget.snippet
  7. +2 2 javascript-jquery/ajaxgetif.snippet
  8. +3 3 javascript-jquery/ajaxsend.snippet
  9. +13 13 javascript-jquery/ajaxsetup.snippet
  10. +2 2 javascript-jquery/ajaxstart.snippet
  11. +2 2 javascript-jquery/ajaxstop.snippet
  12. +2 2 javascript-jquery/ajaxsuccess.snippet
  13. +1 1  javascript-jquery/animate.snippet
  14. +1 1  javascript-jquery/append.snippet
  15. +1 1  javascript-jquery/appendTo.snippet
  16. +1 1  javascript-jquery/before.snippet
  17. +3 3 javascript-jquery/bind.snippet
  18. +3 3 javascript-jquery/blur.snippet
  19. +3 3 javascript-jquery/change.snippet
  20. +1 1  javascript-jquery/children.snippet
  21. +3 3 javascript-jquery/click.snippet
  22. +1 1  javascript-jquery/clone.snippet
  23. +1 1  javascript-jquery/contains.snippet
  24. +1 1  javascript-jquery/css.snippet
  25. +1 1  javascript-jquery/cssm.snippet
  26. +3 3 javascript-jquery/dblclick.snippet
  27. +3 3 javascript-jquery/each.snippet
  28. +1 1  javascript-jquery/el.snippet
  29. +1 1  javascript-jquery/eltrim.snippet
  30. +1 1  javascript-jquery/end.snippet
  31. +3 3 javascript-jquery/error.snippet
  32. +1 1  javascript-jquery/fadein.snippet
  33. +2 2 javascript-jquery/fadeinc.snippet
  34. +1 1  javascript-jquery/fadeout.snippet
  35. +2 2 javascript-jquery/fadeoutc.snippet
  36. +1 1  javascript-jquery/fadeto.snippet
  37. +2 2 javascript-jquery/fadetoc.snippet
  38. +1 1  javascript-jquery/filter.snippet
  39. +1 1  javascript-jquery/find.snippet
  40. +3 3 javascript-jquery/focus.snippet
  41. +1 1  javascript-jquery/get.snippet
  42. +2 2 javascript-jquery/getscript.snippet
  43. +1 1  javascript-jquery/height.snippet
  44. +1 1  javascript-jquery/hide.snippet
  45. +2 2 javascript-jquery/hidec.snippet
  46. +4 4 javascript-jquery/hover.snippet
  47. +1 1  javascript-jquery/html.snippet
  48. +1 1  javascript-jquery/insertAfter.snippet
  49. +1 1  javascript-jquery/insertBefore.snippet
  50. +1 1  javascript-jquery/is.snippet
  51. +3 3 javascript-jquery/load.snippet
  52. +3 3 javascript-jquery/mdown.snippet
  53. +3 3 javascript-jquery/mmove.snippet
  54. +3 3 javascript-jquery/mout.snippet
  55. +3 3 javascript-jquery/mover.snippet
  56. +3 3 javascript-jquery/mup.snippet
  57. +1 1  javascript-jquery/next.snippet
  58. +1 1  javascript-jquery/not.snippet
  59. +3 3 javascript-jquery/one.snippet
  60. +1 1  javascript-jquery/parent.snippet
  61. +1 1  javascript-jquery/parents.snippet
  62. +1 1  javascript-jquery/prepend.snippet
  63. +1 1  javascript-jquery/prependto.snippet
  64. +1 1  javascript-jquery/prev.snippet
  65. +1 1  javascript-jquery/ready.snippet
  66. +1 1  javascript-jquery/remove.snippet
  67. +1 1  javascript-jquery/removeattr.snippet
  68. +1 1  javascript-jquery/removeclass.snippet
  69. +3 3 javascript-jquery/reset.snippet
  70. +3 3 javascript-jquery/resize.snippet
  71. +3 3 javascript-jquery/scroll.snippet
  72. +1 1  javascript-jquery/sdown.snippet
  73. +3 3 javascript-jquery/sdownc.snippet
  74. +3 3 javascript-jquery/sdupc.snippet
  75. +3 3 javascript-jquery/select.snippet
  76. +1 1  javascript-jquery/show.snippet
  77. +3 3 javascript-jquery/showc.snippet
  78. +1 1  javascript-jquery/sib.snippet
  79. +1 1  javascript-jquery/size.snippet
  80. +1 1  javascript-jquery/stoggle.snippet
  81. +3 3 javascript-jquery/submit.snippet
  82. +1 1  javascript-jquery/sup.snippet
  83. +1 1  javascript-jquery/text.snippet
  84. +1 1  javascript-jquery/this.snippet
  85. +4 4 javascript-jquery/tog.snippet
  86. +1 1  javascript-jquery/togclass.snippet
  87. +1 1  javascript-jquery/togsh.snippet
  88. +1 1  javascript-jquery/trig.snippet
  89. +1 1  javascript-jquery/unbind.snippet
  90. +1 2  javascript-jquery/val.snippet
  91. +1 1  javascript-jquery/width.snippet
  92. +1 1  javascript-jquery/wrap.snippet
2  javascript-jquery/add.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.add('<+selector expression+>')<++>
  1 +${1:obj}.add('${2:selector expression}')${3}
2  javascript-jquery/addClass.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.addClass('<+class name+>')<++>
  1 +${1:obj}.addClass('${2:class name}')${3}
2  javascript-jquery/after.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.after('<+Some text <b>and bold!</b>+>')<++>
  1 +${1:obj}.after('${2:Some text <b>and bold!</b>}')${3}
26 javascript-jquery/ajax.snippet
... ... @@ -1,18 +1,18 @@
1 1 $.ajax({
2   - url: "<+mydomain.com/url+>",
3   - type: "<+POST+>",
4   - dataType: "<+xml/html/script/json+>",
5   - data: $.param( $("<+Element or Expression+>") ),
  2 + url: "${1:mydomain.com/url}",
  3 + type: "${2:POST}",
  4 + dataType: "${3:xml/html/script/json}",
  5 + data: $.param( $("${4:Element or Expression}") ),
6 6
7   - complete: function() {
8   - <+//called when complete+>
9   - },
  7 + complete: function() {
  8 + ${5://called when complete}
  9 + },
10 10
11   - success: function() {
12   - <+//called when successful+>
13   - },
  11 + success: function() {
  12 + ${6://called when successful}
  13 + },
14 14
15   - error: function() {
16   - <+//called when there is an error+>
17   - },
  15 + error: function() {
  16 + ${7://called when there is an error}
  17 + },
18 18 });
6 javascript-jquery/ajaxerror.snippet
... ... @@ -1,4 +1,4 @@
1   -.ajaxError(function(<+request, settings+>) {
2   - <+//stuff to do when an AJAX call returns an error+>;
  1 +.ajaxError(function(${1:request, settings}) {
  2 + ${2://stuff to do when an AJAX call returns an error};
3 3 });
4   -<++>
  4 +${3}
6 javascript-jquery/ajaxget.snippet
... ... @@ -1,3 +1,3 @@
1   -$.get('<+/test/ajax-test.xml+>', function(xml){
2   - <+alert( ("title",xml).text() ) //optional stuff to do after get;+>
3   -});
  1 +$.get('${1:/test/ajax-test.xml}', function(xml){
  2 + ${2:alert( ("title",xml).text() ) //optional stuff to do after get;}
  3 +});
4 javascript-jquery/ajaxgetif.snippet
... ... @@ -1,3 +1,3 @@
1   -$.getIfModified('<+/test/test.cgi+>', function(data){
2   - <+alert( "Data loaded: " + data ) //optional stuff to do after get;+>
  1 +$.getIfModified('${1:/test/test.cgi}', function(data){
  2 + ${2:alert( "Data loaded: " + data ) //optional stuff to do after get;}
3 3 });
6 javascript-jquery/ajaxsend.snippet
... ... @@ -1,4 +1,4 @@
1   -.ajaxSend(function(<+request, settings+>) {
2   - <+//stuff to do when an AJAX call returns an error+>;
  1 +.ajaxSend(function(${1:request, settings}) {
  2 + ${2://stuff to do when an AJAX call returns an error};
3 3 });
4   -<++>
  4 +${3}
26 javascript-jquery/ajaxsetup.snippet
... ... @@ -1,18 +1,18 @@
1 1 $.ajaxSetup({
2   - url: "<+mydomain.com/url+>",
3   - type: "<+POST+>",
4   - dataType: "<+xml/html/script/json+>",
5   - data: $.param( $("<+Element or Expression+>") ),
  2 + url: "${1:mydomain.com/url}",
  3 + type: "${2:POST}",
  4 + dataType: "${3:xml/html/script/json}",
  5 + data: $.param( $("${4:Element or Expression}") ),
6 6
7   - complete: function() {
8   - <+//called when complete+>
9   - },
  7 + complete: function() {
  8 + ${5://called when complete}
  9 + },
10 10
11   - success: function() {
12   - <+//called when successful+>
13   - },
  11 + success: function() {
  12 + ${6://called when successful}
  13 + },
14 14
15   - error: function() {
16   - <+//called when there is an error+>
17   - },
  15 + error: function() {
  16 + ${7://called when there is an error}
  17 + },
18 18 });
4 javascript-jquery/ajaxstart.snippet
... ... @@ -1,4 +1,4 @@
1 1 $.ajaxStart(function() {
2   - <+//stuff to do when an AJAX call is started and no other AJAX calls are in progress+>;
  2 + ${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
3 3 });
4   -<++>
  4 +${2}
4 javascript-jquery/ajaxstop.snippet
... ... @@ -1,4 +1,4 @@
1 1 $.ajaxStop(function() {
2   - <+//stuff to do when an AJAX call is started and no other AJAX calls are in progress+>;
  2 + ${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
3 3 });
4   -<++>
  4 +${2}
4 javascript-jquery/ajaxsuccess.snippet
... ... @@ -1,4 +1,4 @@
1 1 $.ajaxSuccess(function() {
2   - <+//stuff to do when an AJAX call is started and no other AJAX calls are in progress+>;
  2 + ${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
3 3 });
4   -<++>
  4 +${2}
2  javascript-jquery/animate.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.animate({<+param1: value1, param2: value2+>}, <+speed+>)<++>
  1 +${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})${4}
2  javascript-jquery/append.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.append('<+Some text <b>and bold!</b>+>')<++>
  1 +${1:obj}.append('${2:Some text <b>and bold!</b>}')${3}
2  javascript-jquery/appendTo.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.appendTo('<+selector expression+>')<++>
  1 +${1:obj}.appendTo('${2:selector expression}')${3}
2  javascript-jquery/before.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.before('<+Some text <b>and bold!</b>+>')<++>
  1 +${1:obj}.before('${2:Some text <b>and bold!</b>}')${3}
6 javascript-jquery/bind.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.bind('<+event name+>', function(<+event+>) {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.bind('${2:event name}', function(${3:event}) {
  2 + ${4:// Act on the event}
  3 +});
6 javascript-jquery/blur.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.blur(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.blur(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/change.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.change(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.change(function() {
  2 + ${2:// Act on the event}
  3 +});
2  javascript-jquery/children.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.children('<+selector expression+>')<++>
  1 +${1:obj}.children('${2:selector expression}')${3}
6 javascript-jquery/click.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.click(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.click(function() {
  2 + ${2:// Act on the event}
  3 +});
2  javascript-jquery/clone.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.clone()<++>
  1 +${1:obj}.clone()${2}
2  javascript-jquery/contains.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.contains('<+text to find+>')<++>
  1 +${1:obj}.contains('${2:text to find}')${3}
2  javascript-jquery/css.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.css('<+attribute+>', '<+value+>')<++>
  1 +${1:obj}.css('${2:attribute}', '${3:value}')${4}
2  javascript-jquery/cssm.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.css({<+attribute1+>: '<+value1+>', <+attribute2+>: '<+value2+>'})<++>
  1 +${1:obj}.css({${2:attribute1}: '${3:value1}', ${4:attribute2}: '${5:value2}'})${6}
6 javascript-jquery/dblclick.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.dblclick(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.dblclick(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/each.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.each(function(index) {
2   - <+this.innerHTML = this + " is the element, " + index + " is the position";+>
3   -});
  1 +${1:obj}.each(function(index) {
  2 + ${2:this.innerHTML = this + " is the element, " + index + " is the position";}
  3 +});
2  javascript-jquery/el.snippet
... ... @@ -1 +1 @@
1   -$('<++>')<++>
  1 +$('${1}')${2:}
2  javascript-jquery/eltrim.snippet
... ... @@ -1 +1 @@
1   -$.trim('<+string+>')<++>
  1 +$.trim('${1:string}')${2}
2  javascript-jquery/end.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.end()<++>
  1 +${1:obj}.end()${2}
6 javascript-jquery/error.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.error(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.error(function() {
  2 + ${2:// Act on the event}
  3 +});
2  javascript-jquery/fadein.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.fadeIn('<+slow/400/fast+>')<++>
  1 +${1:obj}.fadeIn('${2:slow/400/fast}')${3}
4 javascript-jquery/fadeinc.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.fadeIn('slow/400/fast', function() {
2   - <+//Stuff to do *after* the animation takes place+>;
  1 +${1:obj}.fadeIn('slow/400/fast', function() {
  2 + ${2://Stuff to do *after* the animation takes place};
3 3 });
2  javascript-jquery/fadeout.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.fadeOut('<+slow/400/fast+>')<++>
  1 +${1:obj}.fadeOut('${2:slow/400/fast}')${3}
4 javascript-jquery/fadeoutc.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.fadeOut('slow/400/fast', function() {
2   - <+//Stuff to do *after* the animation takes place+>;
  1 +${1:obj}.fadeOut('slow/400/fast', function() {
  2 + ${2://Stuff to do *after* the animation takes place};
3 3 });
2  javascript-jquery/fadeto.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.fadeTo('<+slow/400/fast+>', <+0.5+>)<++>
  1 +${1:obj}.fadeTo('${2:slow/400/fast}', ${3:0.5})${4}
4 javascript-jquery/fadetoc.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.fadeTo('slow/400/fast', <+0.5+>, function() {
2   - <+//Stuff to do *after* the animation takes place+>;
  1 +${1:obj}.fadeTo('slow/400/fast', ${2:0.5}, function() {
  2 + ${3://Stuff to do *after* the animation takes place};
3 3 });
2  javascript-jquery/filter.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.filter('<+selector expression+>')<++>
  1 +${1:obj}.filter('${2:selector expression}')${3}
2  javascript-jquery/find.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.find('<+selector expression+>')<++>
  1 +${1:obj}.find('${2:selector expression}')${3}
6 javascript-jquery/focus.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.focus(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.focus(function() {
  2 + ${2:// Act on the event}
  3 +});
2  javascript-jquery/get.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.get(<+element index+>)<++>
  1 +${1:obj}.get(${2:element index})${3}
4 javascript-jquery/getscript.snippet
... ... @@ -1,3 +1,3 @@
1   -$.getScript('<+somescript.js+>', function(){
2   - <+//optional stuff to do after getScript;+>
  1 +$.getScript('${1:somescript.js}', function(){
  2 + ${2://optional stuff to do after getScript;}
3 3 });
2  javascript-jquery/height.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.height(<+integer+>)<++>
  1 +${1:obj}.height(${2:integer})${3}
2  javascript-jquery/hide.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.hide('<+slow/400/fast+>')<++>
  1 +${1:obj}.hide('${2:slow/400/fast}')${3}
4 javascript-jquery/hidec.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.hide('<+slow/400/fast+>', function() {
2   - <+//Stuff to do *after* the animation takes place+>
  1 +${1:obj}.hide('${2:slow/400/fast}', function() {
  2 + ${3://Stuff to do *after* the animation takes place}
3 3 });
8 javascript-jquery/hover.snippet
... ... @@ -1,5 +1,5 @@
1   -<+obj+>.hover(function() {
2   - <+// Stuff to do when the mouse enters the element;+>
  1 +${1:obj}.hover(function() {
  2 + ${2:// Stuff to do when the mouse enters the element;}
3 3 }, function() {
4   - <+// Stuff to do when the mouse leaves the element;+>
5   -});<++>
  4 + ${3:// Stuff to do when the mouse leaves the element;}
  5 +});${4}
2  javascript-jquery/html.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.html('<+Some text <b>and bold!</b>+>')<++>
  1 +${1:obj}.html('${2:Some text <b>and bold!</b>}')${3}
2  javascript-jquery/insertAfter.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.insertAfter('<+selector expression+>')<++>
  1 +${1:obj}.insertAfter('${2:selector expression}')${3}
2  javascript-jquery/insertBefore.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.insertBefore('<+selector expression+>')<++>
  1 +${1:obj}.insertBefore('${2:selector expression}')${3}
2  javascript-jquery/is.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.is('<+selector expression+>')<++>
  1 +${1:obj}.is('${2:selector expression}')${3}
6 javascript-jquery/load.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.load(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.load(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/mdown.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.mousedown(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.mousedown(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/mmove.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.mousemove(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.mousemove(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/mout.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.mouseout(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.mouseout(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/mover.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.mouseover(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.mouseover(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/mup.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.mouseup(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.mouseup(function() {
  2 + ${2:// Act on the event}
  3 +});
2  javascript-jquery/next.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.next('<+selector expression+>')<++>
  1 +${1:obj}.next('${2:selector expression}')${3}
2  javascript-jquery/not.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.not('<+selector expression+>')<++>
  1 +${1:obj}.not('${2:selector expression}')${3}
6 javascript-jquery/one.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.one('<+event name+>', function(<+event+>) {
2   - <+// Act on the event once+>
3   -});
  1 +${1:obj}.one('${2:event name}', function(${3:event}) {
  2 + ${4:// Act on the event once}
  3 +});
2  javascript-jquery/parent.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.parent('<+selector expression+>')<++>
  1 +${1:obj}.parent('${2:selector expression}')${3}
2  javascript-jquery/parents.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.parents('<+selector expression+>')<++>
  1 +${1:obj}.parents('${2:selector expression}')${3}
2  javascript-jquery/prepend.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.prepend('<+Some text <b>and bold!</b>+>')<++>
  1 +${1:obj}.prepend('${2:Some text <b>and bold!</b>}')${3}
2  javascript-jquery/prependto.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.prependTo('<+selector expression+>')<++>
  1 +${1:obj}.prependTo('${2:selector expression}')${3}
2  javascript-jquery/prev.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.prev('<+selector expression+>')<++>
  1 +${1:obj}.prev('${2:selector expression}')${3}
2  javascript-jquery/ready.snippet
... ... @@ -1,3 +1,3 @@
1 1 $(document).ready(function() {
2   - <+// Stuff to do as soon as the DOM is ready;+>
  2 + ${1:// Stuff to do as soon as the DOM is ready;}
3 3 });
2  javascript-jquery/remove.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.remove()<++>
  1 +${1:obj}.remove()${2}
2  javascript-jquery/removeattr.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.removeAttr('<+attribute name+>')<++>
  1 +${1:obj}.removeAttr('${2:attribute name}')${3}
2  javascript-jquery/removeclass.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.removeClass('<+class name+>')<++>
  1 +${1:obj}.removeClass('${2:class name}')${3}
6 javascript-jquery/reset.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.reset(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.reset(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/resize.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.resize(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.resize(function() {
  2 + ${2:// Act on the event}
  3 +});
6 javascript-jquery/scroll.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.scroll(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.scroll(function() {
  2 + ${2:// Act on the event}
  3 +});
2  javascript-jquery/sdown.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.slideDown('<+slow/400/fast+>')<++>
  1 +${1:obj}.slideDown('${2:slow/400/fast}')${3}
6 javascript-jquery/sdownc.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.slideDown('<+slow/400/fast+>', function() {
2   - <+//Stuff to do *after* the animation takes place+>;
3   -});
  1 +${1:obj}.slideDown('${2:slow/400/fast}', function() {
  2 + ${3://Stuff to do *after* the animation takes place};
  3 +});
6 javascript-jquery/sdupc.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.slideUp('<+slow/400/fast+>', function() {
2   - <+//Stuff to do *after* the animation takes place+>;
3   -});
  1 +${1:obj}.slideUp('${2:slow/400/fast}', function() {
  2 + ${3://Stuff to do *after* the animation takes place};
  3 +});
6 javascript-jquery/select.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.select(function() {
2   - <+// Act on the event+>
3   -});
  1 +${1:obj}.select(function() {
  2 + ${2:// Act on the event}
  3 +});
2  javascript-jquery/show.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.show('<+slow/400/fast+>')<++>
  1 +${1:obj}.show('${2:slow/400/fast}')${3}
6 javascript-jquery/showc.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.show('<+slow/400/fast+>', function() {
2   - <+//Stuff to do *after* the animation takes place+>
3   -});
  1 +${1:obj}.show('${2:slow/400/fast}', function() {
  2 + ${3://Stuff to do *after* the animation takes place}
  3 +});
2  javascript-jquery/sib.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.siblings('<+selector expression+>')<++>
  1 +${1:obj}.siblings('${2:selector expression}')${3}
2  javascript-jquery/size.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.size()<++>
  1 +${1:obj}.size()${2}
2  javascript-jquery/stoggle.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.slideToggle('<+slow/400/fast+>')<++>
  1 +${1:obj}.slideToggle('${2:slow/400/fast}')${3}
6 javascript-jquery/submit.snippet
... ... @@ -1,3 +1,3 @@
1   -<+obj+>.submit(function() {
2   - <+// Act on the event once+>
3   -});
  1 +${1:obj}.submit(function() {
  2 + ${2:// Act on the event once}
  3 +});
2  javascript-jquery/sup.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.slideUp('<+slow/400/fast+>')<++>
  1 +${1:obj}.slideUp('${2:slow/400/fast}')${3}
2  javascript-jquery/text.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.text(<+'some text'+>)<++>
  1 +${1:obj}.text(${2:'some text'})${3}
2  javascript-jquery/this.snippet
... ... @@ -1 +1 @@
1   -$(this)<++>
  1 +$(this)${1}
8 javascript-jquery/tog.snippet
... ... @@ -1,6 +1,6 @@
1   -<+obj+>.toggle(function() {
2   - <+// Stuff to do every *odd* time the element is clicked;+>
  1 +${1:obj}.toggle(function() {
  2 + ${2:// Stuff to do every *odd* time the element is clicked;}
3 3 }, function() {
4   - <+// Stuff to do every *even* time the element is clicked;+>
  4 + ${3:// Stuff to do every *even* time the element is clicked;}
5 5 });
6   -<++>
  6 +${4}
2  javascript-jquery/togclass.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.toggleClass('<+class name+>')<++>
  1 +${1:obj}.toggleClass('${2:class name}')${3}
2  javascript-jquery/togsh.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.toggle('<+slow/400/fast+>')<++>
  1 +${1:obj}.toggle('${2:slow/400/fast}')${3}
2  javascript-jquery/trig.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.trigger('<+event name+>')<++>
  1 +${1:obj}.trigger('${2:event name}')${3}
2  javascript-jquery/unbind.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.unbind('<+event name+>')<++>
  1 +${1:obj}.unbind('${2:event name}')${3}
3  javascript-jquery/val.snippet
... ... @@ -1,2 +1 @@
1   -<+obj+>.val('<+text+>')<++>
2   -
  1 +${1:obj}.val('${2:text}')${3}
2  javascript-jquery/width.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.width(<+integer+>)<++>
  1 +${1:obj}.width(${2:integer})${3}
2  javascript-jquery/wrap.snippet
... ... @@ -1 +1 @@
1   -<+obj+>.wrap('<+&lt;div class="extra-wrapper"&gt;&lt;/div&gt;+>')<++>
  1 +${1:obj}.wrap('${2:&lt;div class="extra-wrapper"&gt;&lt;/div&gt;}')${3}

0 comments on commit 9e7789e

Please sign in to comment.
Something went wrong with that request. Please try again.