feat(SublimeText2.WebPackages): cache packages
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.ajaxSetup({
|
||||
url: '${1:/path/to/file}',
|
||||
${2/(.+)/(?1: type\: ':)/}${2:POST}${2/(.+)/(?1:',
|
||||
:)/}${3/(.+)/(?1: dataType\: ':)/}${3:xml/html/script/json/jsonp}${3/(.+)/(?1:',
|
||||
:)/}${4/(.+)/(?1: data\: {:)/}${4:param1: 'value1'}${4/(.+)/(?1:},
|
||||
:)/}${5/(.+)/(?1: complete\: function\(xhr, textStatus\) {
|
||||
:)/}${5://called when complete}${5/(.+)/(?1:
|
||||
},
|
||||
:)/}${6/(.+)/(?1: success\: function\(data, textStatus, xhr\) {
|
||||
:)/}${6://called when successful}${6/(.+)/(?1:
|
||||
},
|
||||
:)/}${7/(.+)/(?1: error\: function\(xhr, textStatus, errorThrown\) {
|
||||
:)/}${7://called when there is an error}
|
||||
${7/(.+)/(?1: }
|
||||
:)/}});
|
||||
$0]]></content>
|
||||
<tabTrigger>.ajaxsetup</tabTrigger>
|
||||
<description>$.ajaxSetup()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
Reference in New Issue
Block a user