/javascript-mode/extjs_find

http://github.com/ridgetang/snippets · #! · 14 lines · 13 code · 1 blank · 0 comment · 0 complexity · aee4821b8dc2a7df5dcd6ed5ea9f3abe MD5 · raw file

  1. # name : find
  2. # key : find
  3. # group : extjs
  4. # contributor : crazycode@gmail.com
  5. # This was cloned from a TextMate bundle for yasnippet.
  6. # --
  7. ${1:ModelName}.findById(${2:id}, {${3:
  8. loadFailure: function(response) {
  9. \},}
  10. loadSuccess: function(${4:${1/(.+)\.([A-Za-z]*)$/\l$2/}}) {
  11. $0
  12. }
  13. });