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:
subtlegradient
2007-12-09 08:19:31 +00:00
parent f6ff90bedc
commit 1f347c3df7
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -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>
+2 -2
View File
@@ -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>
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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>