Skip to content

Commit

Permalink
Added jsonp and jsons to coffee.snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
tUrG0n committed Jan 5, 2014
1 parent bd04745 commit 9bee487
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions snippets/coffee/coffee.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,8 @@ snippet req
snippet exp
${0:root} = exports ? this


snippet ajax
$.ajax
url: "${1:mydomain.com/url}"
type: "${2:POST}"
dataType: "${3:xml/html/script/json}"
data: ${4:data}
complete: (jqXHR, textStatus) ->
${5:// callback}
success: (data, textStatus, jqXHR) ->
${6:// success callback}
error: (jqXHR, textStatus, errorThrown) ->
${0:// error callback}
snippet jsonp
JSON.parse ${0:jstr}
# JSON.stringify
snippet jsons
JSON.stringify ${0:object}

0 comments on commit 9bee487

Please sign in to comment.