Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added on()

  • Loading branch information...
commit ed715ddcae05ad58f4bf3350d285829d669ad0fd 1 parent 6a3bf4a
@tj authored
Showing with 36 additions and 0 deletions.
  1. +16 −0 Snippets/inherit.tmSnippet
  2. +18 −0 Snippets/on().tmSnippet
  3. +2 −0  info.plist
View
16 Snippets/inherit.tmSnippet
@@ -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>$1.prototype.__proto__ = $2.prototype;</string>
+ <key>name</key>
+ <string>inherit</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>in</string>
+ <key>uuid</key>
+ <string>8BF6EB4B-C406-4625-8122-A140C6D32175</string>
+</dict>
+</plist>
View
18 Snippets/on().tmSnippet
@@ -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>on('${1:event}', function($2){
+ $0
+});</string>
+ <key>name</key>
+ <string>on()</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>on</string>
+ <key>uuid</key>
+ <string>40964157-4789-4091-835F-17981A7F2DBB</string>
+</dict>
+</plist>
View
2  info.plist
@@ -7,6 +7,7 @@
<key>ordering</key>
<array>
<string>02ABB4AD-057E-4CD4-9906-9AA60D87EE14</string>
+ <string>8BF6EB4B-C406-4625-8122-A140C6D32175</string>
<string>6F61CC38-80F3-47AC-ACD8-E74402A6DBC8</string>
<string>477416DB-4E72-4BB2-8A65-106E4EEA916D</string>
<string>EFFC1DA7-2673-4A08-9F46-284CA1FBCD56</string>
@@ -27,6 +28,7 @@
<string>7C5B8176-B98C-4463-9392-C6E7BA7DE6A6</string>
<string>BBB59C6E-4BFB-468D-95D6-0FE6609A1F7C</string>
<string>51E48DFB-02AA-40E2-A1E4-1E015E95FAAC</string>
+ <string>40964157-4789-4091-835F-17981A7F2DBB</string>
<string>33020223-7A16-47CF-B0B7-9E406ACC8412</string>
<string>A2B36379-4541-4CD8-982D-9DD13923DDF2</string>
<string>88736740-3FE2-419C-8FC7-11FC76C6F832</string>
Please sign in to comment.
Something went wrong with that request. Please try again.