feat(SublimeText2.WebPackages): cache packages
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$('${1:string/element/array/function/jQuery object/string, context}')$0]]></content>
|
||||
<tabTrigger>$</tabTrigger>
|
||||
<description>$('#select DOM Element')</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.ajaxSend(function(${1:event, xhr, settings}) {
|
||||
${2://stuff to do before an AJAX request is sent};
|
||||
});
|
||||
$0]]></content>
|
||||
<tabTrigger>.ajaxsend</tabTrigger>
|
||||
<description>$.ajaxSend()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -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>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.ajaxStart(function() {
|
||||
${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
|
||||
});
|
||||
$0]]></content>
|
||||
<tabTrigger>.ajaxstart</tabTrigger>
|
||||
<description>$.ajaxStart()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.ajaxStop((function() {
|
||||
${1://stuff to do when all AJAX calls have completed};
|
||||
});
|
||||
$0]]></content>
|
||||
<tabTrigger>.ajaxstop</tabTrigger>
|
||||
<description>$.ajaxStop()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.ajaxSuccess(function(event, xhr, settings) {
|
||||
${1:// executes whenever an AJAX request completes successfully}
|
||||
});$0]]></content>
|
||||
<tabTrigger>.ajaxsuccess</tabTrigger>
|
||||
<description>$.ajaxSuccess()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,7 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.boxModel(${1:DOMelementArray});
|
||||
$0]]></content>
|
||||
<tabTrigger>.boxmodel</tabTrigger>
|
||||
<description>$.boxModel()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\\$.browser.version]]></content>
|
||||
<tabTrigger>.browser</tabTrigger>
|
||||
<description>$.browser.version</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.browser${1/(.+)/(?1:.:)/}${1:webkit/opera/msie/mozilla}${1/(.+)/(?1: :)/}$0]]></content>
|
||||
<tabTrigger>.browser</tabTrigger>
|
||||
<description>$.browser()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.each(${1:array/object}, function(${2:index}${3:, ${4:val}}) {
|
||||
${0: //iterate through array or object}
|
||||
});]]></content>
|
||||
<tabTrigger>.each</tabTrigger>
|
||||
<description>$.each()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,7 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.extend(${1:true, }${2:target object}, ${3:object1});
|
||||
$0]]></content>
|
||||
<tabTrigger>.extend</tabTrigger>
|
||||
<description>$.extend()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.get('${1:/path/to/file}'${2/(.+)/(?1:, {:)/}${2:param1: 'value1'}${2/(.+)/(?1:}:)/}${3/(.+)/(?1:, function\(data, textStatus, xhr\) {
|
||||
:)/}${3://optional stuff to do after success}${3/(.+)/(?1:
|
||||
}:)/});
|
||||
$0]]></content>
|
||||
<tabTrigger>.get</tabTrigger>
|
||||
<description>$.get()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.getScript('${1:path/to/file}'${2/(.+)/(?1:, function\(data, textStatus\) {
|
||||
:)/}${2://optional stuff to do after getScript}${2/(.+)/(?1:
|
||||
}:)/});
|
||||
$0]]></content>
|
||||
<tabTrigger>.get</tabTrigger>
|
||||
<description>$.getScript()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\\$.holdReady(${1:true/false});]]></content>
|
||||
<tabTrigger>.holdready</tabTrigger>
|
||||
<description>$.holdReady</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.inArray(${1:value}, ${2:array});$0]]></content>
|
||||
<tabTrigger>.inarray</tabTrigger>
|
||||
<description>$.inArray()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.isEmptyObject('${1:object}');$0]]></content>
|
||||
<tabTrigger>.is</tabTrigger>
|
||||
<description>$.isEmptyObject()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.isNumeric('${1:object}');$0]]></content>
|
||||
<tabTrigger>.is</tabTrigger>
|
||||
<description>$.isNumeric()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.isPlainObject('${1:object}');$0]]></content>
|
||||
<tabTrigger>.is</tabTrigger>
|
||||
<description>$.isPlainObject()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.isWindow('${1:object}');$0]]></content>
|
||||
<tabTrigger>.is</tabTrigger>
|
||||
<description>$.isWindow()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.map(${1:array}, function(${2:item}${3:, ${4:index}}) {
|
||||
${5:return ${6:something};}
|
||||
});]]></content>
|
||||
<tabTrigger>.map</tabTrigger>
|
||||
<description>$.map()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.merge(${1:array1}, ${2:array2});]]></content>
|
||||
<tabTrigger>.merge</tabTrigger>
|
||||
<description>$.merge()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.noop();$0]]></content>
|
||||
<tabTrigger>.noop</tabTrigger>
|
||||
<description>$.noop()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.now();$0]]></content>
|
||||
<tabTrigger>.now</tabTrigger>
|
||||
<description>$.now()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.parseJSON('${1:json}');$0]]></content>
|
||||
<tabTrigger>.parse</tabTrigger>
|
||||
<description>$.parseJSON()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.parseXML('${1:XML}');$0]]></content>
|
||||
<tabTrigger>.parse</tabTrigger>
|
||||
<description>$.parseXML()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.post('${1:/path/to/file}'${2/(.+)/(?1:, {:)/}${2:param1: 'value1'}${2/(.+)/(?1:}:)/}${3/(.+)/(?1:, function\(data, textStatus, xhr\) {
|
||||
:)/}${3://optional stuff to do after success}${3/(.+)/(?1:
|
||||
}:)/});
|
||||
$0]]></content>
|
||||
<tabTrigger>.post</tabTrigger>
|
||||
<description>$.post()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.sub();$0]]></content>
|
||||
<tabTrigger>.sub</tabTrigger>
|
||||
<description>$.sub()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\\$.trim(${1:'${2:string}'})$0]]></content>
|
||||
<tabTrigger>.trim</tabTrigger>
|
||||
<description>$.trim()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.type(${1:DOMelementArray});$0]]></content>
|
||||
<tabTrigger>.type</tabTrigger>
|
||||
<description>$.type()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,7 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.unique(${1:DOMelementArray});
|
||||
$0]]></content>
|
||||
<tabTrigger>.unique</tabTrigger>
|
||||
<description>$.unique()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,7 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.when(${1:deferreds});
|
||||
$0]]></content>
|
||||
<tabTrigger>.when</tabTrigger>
|
||||
<description>$.when()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
4
EthanBrown.SublimeText2.WebPackages/tools/PackageCache/jQuery/.gitignore
vendored
Normal file
4
EthanBrown.SublimeText2.WebPackages/tools/PackageCache/jQuery/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
tmp/*
|
||||
*.DS_Store
|
||||
*.svn
|
||||
Support/test/*
|
@@ -0,0 +1,18 @@
|
||||
# jQuery Package for Sublime Text
|
||||
|
||||
This is a Sublime Text bundle to help with jQuery functions.
|
||||
|
||||
## Authors
|
||||
|
||||
* Zander Martineau
|
||||
* Karl Swedberg
|
||||
* Jonathan Chaffer
|
||||
|
||||
## License
|
||||
|
||||
This bundle is dual-licensed under MIT and GPL licenses (just like jQuery).
|
||||
|
||||
* [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)
|
||||
* [http://www.gnu.org/licenses/gpl.html](http://www.gnu.org/licenses/gpl.html)
|
||||
|
||||
Use it, change it, fork it, sell it. Do what you will, but please leave the author attribution.
|
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>module('${1:module name}'${2:, {${6/(.+)/(?1:
|
||||
setup\: function\(\) {
|
||||
:)/}${6:// setup for $1 }${6/(.+)/(?1:
|
||||
}:)/}${7/(.+)/(?1:,
|
||||
teardown\: function\(\) {
|
||||
:)/}${7://teardown for $1}${7/(.+)/(?1:
|
||||
}:)/}
|
||||
\}});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>QUnit module</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>module</string>
|
||||
<key>uuid</key>
|
||||
<string>08389AF0-8A25-4FC4-9AF2-D18C42CBD051</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>test('${1:description}'${2/(.+)/(?1:, :)/}${2:numberexpected}${3:, ${4:function() {
|
||||
$0
|
||||
\}}});</string>
|
||||
<key>name</key>
|
||||
<string>QUnit test</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>test</string>
|
||||
<key>uuid</key>
|
||||
<string>002C9C57-F00E-4338-B3FF-601D8E93F122</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>.done(${1:doneCallbacks})$0</string>
|
||||
<key>name</key>
|
||||
<string>deferred.done</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>.done</string>
|
||||
<key>uuid</key>
|
||||
<string>79F89635-37BB-4BA9-8415-981C8598013B</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>.fail(${1:failCallbacks})$0</string>
|
||||
<key>name</key>
|
||||
<string>deferred.fail</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>.fail</string>
|
||||
<key>uuid</key>
|
||||
<string>2951E2A1-1F48-466F-8F43-04C1BC71A2DE</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>.isRejected()$0</string>
|
||||
<key>name</key>
|
||||
<string>deferred.isRejected</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>.isRejected</string>
|
||||
<key>uuid</key>
|
||||
<string>9090253A-EDB0-4E86-AFBD-02776C5DBCBE</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>.isResolved()$0</string>
|
||||
<key>name</key>
|
||||
<string>deferred.isResolved</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>.isResolved</string>
|
||||
<key>uuid</key>
|
||||
<string>9E2BF3EE-B220-454A-9132-0EE3A5E5F0C4</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>.reject(${1:args})$0</string>
|
||||
<key>name</key>
|
||||
<string>deferred.reject</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>.reject</string>
|
||||
<key>uuid</key>
|
||||
<string>D05CC3EE-718F-47D6-AA8B-FD5FDCA57282</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>.rejectWith(${1:context}${2/(^,).*|.+/(?1::, )/}${2:args})$0</string>
|
||||
<key>name</key>
|
||||
<string>deferred.rejectWith</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>.rejectWith</string>
|
||||
<key>uuid</key>
|
||||
<string>C6D45B8E-3494-45C4-BEDD-3C0B71B414E1</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>.then(${1:doneCallbacks}, ${2:failCallbacks})$0</string>
|
||||
<key>name</key>
|
||||
<string>deferred.then</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>.then</string>
|
||||
<key>uuid</key>
|
||||
<string>6129A0BF-7084-44F7-89C7-AB36526DAD87</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.ajax({
|
||||
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</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.ajax</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.ajax</string>
|
||||
<key>uuid</key>
|
||||
<string>F18DAC78-14B2-4D02-AFBC-A9C47F915590</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.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</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.ajaxSetup</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.ajaxSetup</string>
|
||||
<key>uuid</key>
|
||||
<string>D65B8AE7-6504-4CC4-9EFB-4012D980DFB5</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.boxModel</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.boxModel</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.boxModel</string>
|
||||
<key>uuid</key>
|
||||
<string>928C97F0-0994-4F91-BDDA-40C8E77A3666</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.browser${1/(.+)/(?1:.:)/}${1:webkit/opera/msie/mozilla}${1/(.+)/(?1: :)/}$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.browser</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.browser</string>
|
||||
<key>uuid</key>
|
||||
<string>E53A000B-0E54-4DCD-A53B-89FFA80B7F9E</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.browser.version</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.browser.version</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.browser</string>
|
||||
<key>uuid</key>
|
||||
<string>6F342C78-D195-4062-81D2-A6B91C8DAD72</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.each(${1:array/object}, function(${2:index}${3:, ${4:val}}) {
|
||||
${0://iterate through array or object}
|
||||
});</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.each</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.each</string>
|
||||
<key>uuid</key>
|
||||
<string>A16AD94D-AA5D-4CDB-81F2-D7DBC87EB03D</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.extend(${1:true, }${2:target object}, ${3:object1});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.extend</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.extend</string>
|
||||
<key>uuid</key>
|
||||
<string>71CE8077-FA1A-44DE-AD87-9C809702BAC4</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.get('${1:/path/to/file}'${2/(.+)/(?1:, {:)/}${2:param1: 'value1'}${2/(.+)/(?1:}:)/}${3/(.+)/(?1:, function\(data, textStatus, xhr\) {
|
||||
:)/}${3://optional stuff to do after success}${3/(.+)/(?1:
|
||||
}:)/});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.get</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.get</string>
|
||||
<key>uuid</key>
|
||||
<string>8F8BE76F-F6AC-448A-9F75-339275ED18BF</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.getJSON('${1:/path/to/file}'${2/(.+)/(?1:, {:)/}${2:param1: 'value1'}${2/(.+)/(?1:}:)/}${3/(.+)/(?1:, function\(json, textStatus\) {
|
||||
:)/}${3://optional stuff to do after success}${3/(.+)/(?1:
|
||||
}:)/});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.getJSON</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.getJSON</string>
|
||||
<key>uuid</key>
|
||||
<string>1E5851C8-C77F-48B1-B81E-CCF2E9F50E90</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.getScript('${1:path/to/file}'${2/(.+)/(?1:, function\(data, textStatus\) {
|
||||
:)/}${2://optional stuff to do after getScript}${2/(.+)/(?1:
|
||||
}:)/});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.getScript</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.getScript</string>
|
||||
<key>uuid</key>
|
||||
<string>E7A389DC-77F8-4D48-9B4E-35C966A9722B</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.inArray(${1:value}, ${2:array});$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.inArray</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.inArray</string>
|
||||
<key>uuid</key>
|
||||
<string>E96A90AC-73ED-46A6-A0C5-6E47043B8F4B</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.isEmptyObject('${1:object}')$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.isEmptyObject</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.isEmptyObject</string>
|
||||
<key>uuid</key>
|
||||
<string>C91FAB3B-AB50-4113-B29A-A93B79930A56</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.isPlainObject('${1:object}')$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.isPlainObject</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.isPlainObject</string>
|
||||
<key>uuid</key>
|
||||
<string>BB98D569-21AB-4A7A-BA0B-95322E41715E</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.isWindow('${1:object}')$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.isWindow</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.isWindow</string>
|
||||
<key>uuid</key>
|
||||
<string>085903F9-746E-42A6-A075-701E666B1080</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.map(${1:array}, function(${2:item}${3:, ${4:index}}) {
|
||||
${5:return ${6:something};}
|
||||
});</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.map</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.map</string>
|
||||
<key>uuid</key>
|
||||
<string>AE82E287-8D4F-4077-85C3-75CF4B1083C7</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.merge(${1:array1}, ${2:array2});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.merge</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.merge</string>
|
||||
<key>uuid</key>
|
||||
<string>55304395-C690-4D69-B696-1837C5A5B03D</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.noop()${0:;}${1:}</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.noop</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.noop</string>
|
||||
<key>uuid</key>
|
||||
<string>390F8483-BB8F-45F1-B2EB-C943AC5B24CA</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.parseJSON(${1:json});${0:}</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.parseJSON</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.parseJSON</string>
|
||||
<key>uuid</key>
|
||||
<string>D502E460-8AD5-487D-9AAD-D39FC1A62127</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.parseXML(${1:data});${0:}</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.parseXML</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.parseXML</string>
|
||||
<key>uuid</key>
|
||||
<string>71C02AD2-0CD3-44EA-931A-D9A3C04D6C47</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.post('${1:/path/to/file}'${2/(.+)/(?1:, {:)/}${2:param1: 'value1'}${2/(.+)/(?1:}:)/}${3/(.+)/(?1:, function\(data, textStatus, xhr\) {
|
||||
:)/}${3://optional stuff to do after success}${3/(.+)/(?1:
|
||||
}:)/});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.post</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.post</string>
|
||||
<key>uuid</key>
|
||||
<string>5E500FD9-6E49-4D3F-91F2-733051DE2CD9</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.sub()$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.sub</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.sub</string>
|
||||
<key>uuid</key>
|
||||
<string>D89081D7-8E1A-454D-B6A5-1ACFE9C10A5C</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.trim(${1:'${2:string}'})$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.trim</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.trim</string>
|
||||
<key>uuid</key>
|
||||
<string>C4C61E6A-6FA9-491A-97B0-23C645338713</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.type(${1:object})$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.type</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.type</string>
|
||||
<key>uuid</key>
|
||||
<string>0A75E731-B728-4968-BA71-4EEBACC3F6E0</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.unique(${1:DOMelementArray});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.unique</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.unique</string>
|
||||
<key>uuid</key>
|
||||
<string>7CE997DA-D8B8-4908-BFAF-2299C067CDAE</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.when(${1:deferreds});
|
||||
$0</string>
|
||||
<key>name</key>
|
||||
<string>jQuery.when</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>jQuery.when</string>
|
||||
<key>uuid</key>
|
||||
<string>2872872D-9EEC-417E-955A-107AF523FE5D</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>jQuery.fn.${1:myeffect} = function(speed, easing, callback) {
|
||||
return this.animate({${2:param1}: ${3:'value'}}, speed, easing, callback);
|
||||
};</string>
|
||||
<key>name</key>
|
||||
<string>plugin (animation)</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>plugin</string>
|
||||
<key>uuid</key>
|
||||
<string>D2949488-1293-4CF9-B57A-43BC8E4089FF</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>// jQuery ${1:pluginName} Plugin
|
||||
(function( \$ ) {
|
||||
var settings = {
|
||||
${30:}
|
||||
};
|
||||
|
||||
var methods = {
|
||||
init: function( options ) {
|
||||
|
||||
this.each(function() {
|
||||
var data, dataId, opts,
|
||||
${10:\$this} = $(this);
|
||||
|
||||
$10.$1('options', options);
|
||||
data = $10.data('$1') || {};
|
||||
opts = data.options;
|
||||
|
||||
// If the plugin hasn't been initialized yet
|
||||
if ( !data.$1 ) {
|
||||
dataId = +new Date;
|
||||
|
||||
data = {
|
||||
cluetip: $1,
|
||||
options: opts,
|
||||
id: dataId
|
||||
};
|
||||
|
||||
$10.data('$1', data);
|
||||
${14:
|
||||
// create element and append to body
|
||||
var $1 = \$('<div />', {
|
||||
'class': '$1'
|
||||
\}).appendTo( 'body' );
|
||||
|
||||
$1.data( '$1', {target: $10, id: dataId\} );
|
||||
}
|
||||
|
||||
} // !data.$1
|
||||
|
||||
$0
|
||||
|
||||
});
|
||||
|
||||
return this;
|
||||
},
|
||||
destroy: function( ) {
|
||||
|
||||
this.each(function() {
|
||||
|
||||
var $10 = \$(this),
|
||||
data = $10.data( '$1' );
|
||||
|
||||
// Remove created elements, unbind namespaced events, and remove data
|
||||
\$(document).unbind( '.$1' );
|
||||
data.$1.remove();
|
||||
$10.unbind( '.$1' )
|
||||
.removeData( '$1' );
|
||||
|
||||
});
|
||||
|
||||
return this;
|
||||
},
|
||||
options: function( options ) {
|
||||
|
||||
this.each(function() {
|
||||
var $10 = \$(this),
|
||||
// don't use our getData() function here
|
||||
// because we want an object regardless
|
||||
data = $10.data( '$1' ) || {},
|
||||
opts = data.options || {};
|
||||
|
||||
// deep extend (merge) default settings, per-call options, and options set with:
|
||||
// html10 data-$1 options JSON and \$('selector').$1( 'options', {} );
|
||||
opts = \$.extend( true, {}, \$.fn.cluetip.defaults, opts, options || {} );
|
||||
data.options = opts;
|
||||
\$.data( this, '$1', data );
|
||||
});
|
||||
|
||||
return this;
|
||||
}${20/(.+)/(?1:,
|
||||
:)/}${20:someOtherMethod}${20/(.+)/(?1:\: function\(\) {
|
||||
|
||||
}:)/}
|
||||
};
|
||||
|
||||
var protoSlice = Array.prototype.slice;
|
||||
|
||||
\$.fn.$1 = function( method ) {
|
||||
|
||||
if ( methods[method] ) {
|
||||
return methods[method].apply( this, protoSlice.call( arguments, 1 ) );
|
||||
} else if ( typeof method === 'object' || ! method ) {
|
||||
return methods.init.apply( this, arguments );
|
||||
} else {
|
||||
\$.error( 'Method ' + method + ' does not exist on jQuery.fn.$1' );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
\$.extend(\$.fn.$1, {
|
||||
defaults: settings
|
||||
});
|
||||
|
||||
function getData(el) {
|
||||
var $1, opts,
|
||||
$10 = \$(el),
|
||||
data = $10.data( '$1' ) || {};
|
||||
|
||||
if (!data.$1) { return false; }
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
})( jQuery );</string>
|
||||
<key>name</key>
|
||||
<string>plugin (method extras)</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>plugin</string>
|
||||
<key>uuid</key>
|
||||
<string>39192EFA-D490-4E52-B7F8-D68584397A41</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>(function(\$) {
|
||||
\$.extend(\$.expr[':'], {
|
||||
${1:selectorName}: function(element, index, matches, set) {
|
||||
$0
|
||||
return something;
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
</string>
|
||||
<key>name</key>
|
||||
<string>plugin (selector)</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>plugin</string>
|
||||
<key>uuid</key>
|
||||
<string>27C91862-CFF5-4D6F-8BBB-7DCF2122FA74</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>(function(\$) {
|
||||
${2:// ${3:What does the $1 plugin do?}}
|
||||
\$.fn.${1:pluginName} = function(options) {
|
||||
|
||||
if (!this.length) { return this; }
|
||||
|
||||
var opts = \$.extend(${5:true, }{}, \$.fn.$1.defaults, options);
|
||||
|
||||
this.each(function() {
|
||||
var ${6:\$this} = \$(this);
|
||||
$0
|
||||
});
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
// default options
|
||||
\$.fn.$1.defaults = {
|
||||
${4:defaultOne: true,
|
||||
defaultTwo: false,
|
||||
defaultThree: 'yay!'}
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
</string>
|
||||
<key>name</key>
|
||||
<string>plugin (method basic)</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>plugin</string>
|
||||
<key>uuid</key>
|
||||
<string>02F87930-5CDC-414A-BA7F-D74CCFD2CBA3</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string><!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>${1:}</title>
|
||||
<link rel="stylesheet" href="${2:}qunit.css" type="text/css" media="screen">
|
||||
<script src="${3:http://code.jquery.com/jquery-latest.js}"></script>
|
||||
<script src="${4:}qunit.js"></script>
|
||||
<script src="${5:myscript.js}"></script>${6:
|
||||
<script src="${7:test.js}"></script>}
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="qunit-header">${8:$1}</h1>
|
||||
<h2 id="qunit-banner"></h2>
|
||||
<div id="qunit-testrunner-toolbar"></div>
|
||||
<h2 id="qunit-userAgent"></h2>
|
||||
<ol id="qunit-tests"></ol>
|
||||
<div id="qunit-fixture">
|
||||
${9:<!-- my test markup goes here -->}
|
||||
</div>
|
||||
</body>
|
||||
</html></string>
|
||||
<key>name</key>
|
||||
<string>QUnit HTML</string>
|
||||
<key>scope</key>
|
||||
<string>text.html</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>qhtml</string>
|
||||
<key>uuid</key>
|
||||
<string>A3107EF3-17D8-4453-9DB3-4F5CE1B502D9</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,600 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>comment</key>
|
||||
<string>jQuery Javascript Library. Sublime Text 2 package forked by Zander Martineau from original Textmate bundle by Jonathan Chaffer & Karl Swedberg. Dual licensed under MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://www.gnu.org/licenses/gpl.html) licenses.</string>
|
||||
<key>fileTypes</key>
|
||||
<array>
|
||||
<string>js</string>
|
||||
</array>
|
||||
<key>foldingStartMarker</key>
|
||||
<string>(^.*\{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)</string>
|
||||
<key>foldingStopMarker</key>
|
||||
<string>(^\s*\}|^\s*\)|^(?!.*/\*).*\*/)</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^~J</string>
|
||||
<key>name</key>
|
||||
<string>jQuery (JavaScript)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(\$|jQuery)(\((?!('|")<))</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.class.js.jquery</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.class.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>contentName</key>
|
||||
<string>meta.selector.jquery</string>
|
||||
<key>end</key>
|
||||
<string>(\))</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.class.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested-parens</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>'</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>'</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#css-selector</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>"</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>"</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#css-selector</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\b(add|appendTo|children|closest|detach|filter|find|has|index|insertAfter|insertBefore|is|next|nextAll|nextUntil|not|parent|parents|parentsUntil|prependTo|prev|prevAll|prevUntil|remove|replaceAll|siblings)\s*(\((?!('|")<))</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.function.js.jquery</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.function.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>contentName</key>
|
||||
<string>meta.selector.jquery</string>
|
||||
<key>end</key>
|
||||
<string>(\))</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.function.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested-parens</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>'</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>'</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#css-selector</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>"</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>"</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.selector.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#css-selector</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(\$|jQuery)(\((?=('|")<))</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.class.js.jquery</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.class.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>contentName</key>
|
||||
<string>meta.markup.jquery</string>
|
||||
<key>end</key>
|
||||
<string>(\))</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.class.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>'</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>'</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#html-markup-single</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>"</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>"</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#html-markup-double</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\b(add|after|append|before|html|prepend|replaceWith|wrap|wrapAll|wrapInner)\s*(\((?=('|")<))</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.function.js.jquery</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.class.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>contentName</key>
|
||||
<string>meta.markup.jquery</string>
|
||||
<key>end</key>
|
||||
<string>(\))</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.class.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>'</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>'</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#html-markup-single</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>"</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.begin.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>"</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markup.end.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#html-markup-double</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.class.js</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.constant.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(\$|jQuery)\.(ajaxSettings|boxModel|browser|fx|isReady|support|fn)</string>
|
||||
<key>name</key>
|
||||
<string>meta.property.jquery</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?<=\.)(length|selector|context)\b</string>
|
||||
<key>name</key>
|
||||
<string>support.constant.js.jquery</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?<=\.)(add|addClass|after|ajaxComplete|ajaxError|ajaxSend|ajaxStart|ajaxStop|ajaxSuccess|always|andSelf|animate|append|appendTo|attr|before|bind|blur|change|children|clearQueue|click|clone|closest|contents|css|data|dblclick|delay|delegate|dequeue|detach|disable|disabled|die|domManip|done|each|empty|end|eq|error|fadeIn|fadeOut|fadeTo|fadeToggle|fail|filter|find|first|fire|fired|fireWith|focus|focusin|focusout|get|has|hasClass|height|hide|hover|html|index|innerHeight|innerWidth|insertAfter|insertBefore|is|isRejected|isResolved|keydown|keypress|keyup|last|live|load|lock|locked|map|mousedown|mouseenter|mouseleave|mousemove|mouseout|mouseover|mouseup|next|nextAll|nextUntil|not|notify|notifyWith|off|offset|offsetParent|on|one|outerHeight|outerWidth|parent|parents|parentsUntil|pipe|position|prepend|prependTo|prev|prevAll|prevUntil|progress|promise|prop|pushStack|queue|ready|reject|rejectWith|remove|removeAttr|removeClass|removeData|replaceAll|replaceWith|resize|resolve|resolveWith|scroll|scrollLeft|scrollTop|select|serialize|serializeArray|show|siblings|size|slice|slideDown|slideToggle|slideUp|state|stop|submit|text|then|toArray|toggle|toggleClass|trigger|triggerHandler|unbind|undelegate|unload|unwrap|val|width|wrap|wrapAll|wrapInner)\b</string>
|
||||
<key>name</key>
|
||||
<string>support.function.js.jquery</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.class.js</string>
|
||||
</dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support.function.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(\$|jQuery)(\.)(Callbacks|Deferred|Event|ajax|ajaxPrefilter|ajaxSetup|ajaxTransport|bindReady|clean|cleanData|contains|css|data|dequeue|each|error|extend|Event|get|getJSON|getScript|globalEval|grep|inArray|isArray|isEmptyObject|isFunction|isNumeric|isPlainObject|isWindow|isXMLDoc|makeArray|map|merge|noConflict|noop|param|parseJSON|parseXML|post|proxy|queue|ready|removeData|sibling|sub|text|triggerGlobal|trim|type|unique|when)\b</string>
|
||||
<key>name</key>
|
||||
<string>support.function.js.jquery</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>repository</key>
|
||||
<dict>
|
||||
<key>css-selector</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?=\s*[.*#a-zA-Z])</string>
|
||||
<key>end</key>
|
||||
<string>(?=["'])</string>
|
||||
<key>name</key>
|
||||
<string>meta.selector.css</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|command|code|col|colgroup|datalist|dd|del|details|device|dfn|div|dl|dt|em|embed|fieldset|fig(ure|caption)|footer|form|frame|frameset|(h[1-6])|head(er)?|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|menu|meta|meter|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|summary|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\b</string>
|
||||
<key>name</key>
|
||||
<string>entity.name.tag.css</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.attribute-name.css</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(\.)[a-zA-Z0-9_-]+</string>
|
||||
<key>name</key>
|
||||
<string>entity.other.attribute-name.class.css</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.attribute-name.css</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(#)[a-zA-Z0-9_-]+</string>
|
||||
<key>name</key>
|
||||
<string>entity.other.attribute-name.id.css</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\*</string>
|
||||
<key>name</key>
|
||||
<string>entity.name.tag.wildcard.css</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.attribute-name.css</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(:)\b(active|after|before|first-letter|first-line|hover|link|target|visited)\b</string>
|
||||
<key>name</key>
|
||||
<string>entity.other.attribute-name.pseudo-class.css</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>html-markup-double</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.markup.html</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>text.html.basic</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\\(")</string>
|
||||
<key>name</key>
|
||||
<string>constant.character.escape.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>html-markup-single</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>meta.markup.html</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>text.html.basic</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\\(')</string>
|
||||
<key>name</key>
|
||||
<string>constant.character.escape.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>nested-parens</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\(</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.scope.js</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested-parens</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>scopeName</key>
|
||||
<string>source.js.jquery</string>
|
||||
<key>uuid</key>
|
||||
<string>1AD8EB10-62BE-417C-BC4B-29B5C6F0B36A</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,5 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.add('${1:selector/elements/html}')$0]]></content>
|
||||
<tabTrigger>.add</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,5 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.addClass('${1:class_name}')$0]]></content>
|
||||
<tabTrigger>.addClass</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,5 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.after('${1:Some text <b>and bold!</b>}')$0]]></content>
|
||||
<tabTrigger>.after</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,20 @@
|
||||
<snippet>
|
||||
<content><![CDATA[\$.ajax({
|
||||
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>.ajax</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.ajaxComplete(function(event, xhr, settings) {
|
||||
${1:// executes whenever an AJAX request completes}
|
||||
});$0]]></content>
|
||||
<tabTrigger>.ajaxComplete</tabTrigger>
|
||||
<description>.ajaxComplete()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.ajaxError(function(${1:event, xhr, settings, thrownError}) {
|
||||
${2://stuff to do when an AJAX call returns an error};
|
||||
});
|
||||
$0]]></content>
|
||||
<tabTrigger>.ajaxerror</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,5 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.andSelf()$0]]></content>
|
||||
<tabTrigger>.andSelf</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,11 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.animate({
|
||||
${2:param1}: ${3:value1}${4:,
|
||||
${5:param2}: ${6:value2}}},
|
||||
${7:speed}, function() {
|
||||
${0:// stuff to do after animation is complete}
|
||||
});]]></content>
|
||||
<tabTrigger>.animate</tabTrigger>
|
||||
<description>.animate() with callback</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,5 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.animate({${1:${2:param1}: ${3:value1}${4:, ${5:param2}: ${6:value2}}}}, ${7:speed})$0]]></content>
|
||||
<tabTrigger>.animate</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.append('${1:Some text <b>and bold!</b>}')$0]]></content>
|
||||
<tabTrigger>.append</tabTrigger>
|
||||
<description>.append</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.appendTo('${1:selector expression}')$0]]></content>
|
||||
<tabTrigger>.appendTo</tabTrigger>
|
||||
<description>.appendTo</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.attr({
|
||||
${1:property1}: '${2:value1}'${3:,
|
||||
${4:property2}: '${5:value2}'
|
||||
\}});$0]]></content>
|
||||
<tabTrigger>.attr</tabTrigger>
|
||||
<description>.attr() - multiple</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.attr('${1:attribute}', '${2:value}');$0]]></content>
|
||||
<tabTrigger>.attr</tabTrigger>
|
||||
<description>.attr() - single</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.before('${1:content}');$0]]></content>
|
||||
<tabTrigger>.before</tabTrigger>
|
||||
<description>.before()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.bind('${1:event name}'${2/(^,).*|.+/(?1::, )/}${2:eventData}, function(${3:event}) {
|
||||
${0:// Act on the event}
|
||||
});]]></content>
|
||||
<tabTrigger>.bind</tabTrigger>
|
||||
<description>.bind</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.blur(${1:function(${2:event}) {
|
||||
${0:// Act on the event}
|
||||
\}});]]></content>
|
||||
<tabTrigger>.blur</tabTrigger>
|
||||
<description>.blur</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,8 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.change(${1:function(${2:event}) {
|
||||
${0:// Act on the event}
|
||||
\}});]]></content>
|
||||
<tabTrigger>.change</tabTrigger>
|
||||
<description>.change</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.children(${1/(.+)/(?1:':)/}${1:selector expression}${1/(.+)/(?1:':)/})$0]]></content>
|
||||
<tabTrigger>.children</tabTrigger>
|
||||
<description>.children</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.clearQueue(${1:queueName});$0]]></content>
|
||||
<tabTrigger>.clearQueue</tabTrigger>
|
||||
<description>.clearQueue()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,7 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.click(${1:function(${2:event}) {
|
||||
${0:// Act on the event}
|
||||
\}});]]></content>
|
||||
<tabTrigger>.click</tabTrigger>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.clone(${1:withDataAndEvents}${2/(^,).*|.+/(?1::, )/}${2:deepWithDataAndEvents})$0]]></content>
|
||||
<tabTrigger>.clone</tabTrigger>
|
||||
<description>.clone</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.closest('${1:selector expression}')$0]]></content>
|
||||
<tabTrigger>.closest</tabTrigger>
|
||||
<description>.closest</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.contains('${1:text to find}');$0]]></content>
|
||||
<tabTrigger>.contains</tabTrigger>
|
||||
<description>.contains()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.contents();$0]]></content>
|
||||
<tabTrigger>.contents</tabTrigger>
|
||||
<description>.contents()</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,9 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.css({
|
||||
${1:property1}: '${2:value1}'${3:,
|
||||
${4:property2}: '${5:value2}'
|
||||
\}});$0]]></content>
|
||||
<tabTrigger>.css</tabTrigger>
|
||||
<description>.css() - multiple</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.css('${1:property}', '${2:value}');$0]]></content>
|
||||
<tabTrigger>.css</tabTrigger>
|
||||
<description>.css() - single</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
@@ -0,0 +1,6 @@
|
||||
<snippet>
|
||||
<content><![CDATA[.data('${1:data}'${2/(.+)/(?1:, :)/}${2/(^[0-9]+$)|.+/(?1::')/}${2:value}${2/(^[0-9]+$)|.+/(?1::')/})$0]]></content>
|
||||
<tabTrigger>.data</tabTrigger>
|
||||
<description>.data</description>
|
||||
<scope>source.js</scope>
|
||||
</snippet>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user