Skip to content

Commit 9bee487

Browse files
author
tUrG0n
committed
Added jsonp and jsons to coffee.snippet
1 parent bd04745 commit 9bee487

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

snippets/coffee/coffee.snippets

+5-13
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,8 @@ snippet req
9494
snippet exp
9595
${0:root} = exports ? this
9696

97-
98-
snippet ajax
99-
$.ajax
100-
url: "${1:mydomain.com/url}"
101-
type: "${2:POST}"
102-
dataType: "${3:xml/html/script/json}"
103-
data: ${4:data}
104-
complete: (jqXHR, textStatus) ->
105-
${5:// callback}
106-
success: (data, textStatus, jqXHR) ->
107-
${6:// success callback}
108-
error: (jqXHR, textStatus, errorThrown) ->
109-
${0:// error callback}
97+
snippet jsonp
98+
JSON.parse ${0:jstr}
99+
# JSON.stringify
100+
snippet jsons
101+
JSON.stringify ${0:object}

0 commit comments

Comments
 (0)