mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
Cleaned up snippets
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@8633 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!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>${1:method_name}: function(${3:attribute}){
|
||||
<string>${1:}: function(${3:argument}){
|
||||
$0
|
||||
}${10:,}</string>
|
||||
},</string>
|
||||
<key>name</key>
|
||||
<string>Object Method</string>
|
||||
<key>scope</key>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!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 ${1:function_name} (${2:argument}) {
|
||||
<string>function ${1:function_name}(${2:argument}) {
|
||||
${0:// body...}
|
||||
}</string>
|
||||
<key>name</key>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>function($1){${0:$TM_SELECTED_TEXT}}</string>
|
||||
<string>function($1){${0:${TM_SELECTED_TEXT}}}</string>
|
||||
<key>name</key>
|
||||
<string>Anonymous Function</string>
|
||||
<key>scope</key>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!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>setTimeout(function() {$0}${2:}, ${1:10});</string>
|
||||
<string>setTimeout(${20:function(){$0\}}, ${10:10});</string>
|
||||
<key>name</key>
|
||||
<string>setTimeout function</string>
|
||||
<key>scope</key>
|
||||
|
||||
Reference in New Issue
Block a user