Skip to content

Commit

Permalink
Added a snippet for a SC.TextField subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Jun 5, 2011
1 parent 1a18e63 commit 1d4e32c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Snippets/SC_TextField.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?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>${2:App}.${4:Item}View = SC.TextField.extend({
insertNewline: function() {
var value = this.get('value');
if (value) {
$0
}
}
});
</string>
<key>name</key>
<string>SC.TextField</string>
<key>scope</key>
<string>source.js.sproutcore</string>
<key>tabTrigger</key>
<string>tf</string>
<key>uuid</key>
<string>ACBAFD3C-E8C5-4B36-932E-85F5EEAB90DB</string>
</dict>
</plist>
1 change: 1 addition & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
<string>9B9B3E77-BDCF-4E08-86E9-1B8EC875E4F4</string>
<string>7EBE9B4F-27BE-4588-920F-A579A7E086C5</string>
<string>2FBB3CF7-5C91-4BFC-BA35-18BFDEC40C86</string>
<string>ACBAFD3C-E8C5-4B36-932E-85F5EEAB90DB</string>
<string>4541CE33-F7BA-4155-A9ED-5D0B30E9E508</string>
<string>21156872-5743-4A36-9B84-96E1345D1FBA</string>
<string>FE9B2CB5-069B-4E1C-92F8-C8DB36FF009F</string>
Expand Down

0 comments on commit 1d4e32c

Please sign in to comment.