Skip to content
Browse files

most normal js snips fixed

Signed-off-by: Martin Grenfell <martin_grenfell@msn.com>
  • Loading branch information...
1 parent f274d94 commit f6f1d905a6b96011807a36ac6eb7eb434f05026a Reza Jelveh committed with
View
2 javascript/anon.snippet
@@ -1 +1 @@
-function(<++>) { <++> };
+function(${1}) { ${2} };
View
4 javascript/for.snippet
@@ -1,3 +1,3 @@
for (var <+i+>=0; <+i+> < <+<+Things+>.length+>; <+i+>++) {
- <+<+Things+>[<+i+>]+>
-};
+<+<+Things+>[<+i+>]+>
+};
View
6 javascript/fun.snippet
@@ -1,3 +1,3 @@
-function <+function_name+> (<+argument+>) {
- <+// body+>
-}
+function ${1:function_name} (${2:argument}) {
+ ${3:// body}
+}
View
2 javascript/if.snippet
@@ -1 +1 @@
-if (<+true+>) { <++> };
+if (${1:true}) { ${2} };
View
6 javascript/ife.snippet
@@ -1,5 +1,5 @@
-if (<+true+>) {
- <++>
+if (${1:true}) {
+ ${2}
} else {
- <++>
+ ${3}
};
View
6 javascript/met.snippet
@@ -1,3 +1,3 @@
-<+method_name+>: function(<+attribute+>){
- <++>
-}<+, +>
+${1:method_name}: function(${2:attribute}){
+ ${3}
+}${4:, }
View
4 javascript/proto.snippet
@@ -1,3 +1,3 @@
-<+class_name+>.prototype.<+method_name+> = function(<+first_argument+>) {
- <+// body+>
+${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
+ ${4:// body}
};
View
2 javascript/timeout.snippet
@@ -1 +1 @@
-setTimeout(function() { <++> }, <+10+>);
+setTimeout(function() { ${1} }, ${2:10});

0 comments on commit f6f1d90

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