PageRenderTime 147ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/javascript-mode/extjs_mod

http://github.com/ridgetang/snippets
#! | 16 lines | 16 code | 0 blank | 0 comment | 0 complexity | 94dc7909353612fb85ea6e101393e473 MD5 | raw file
  1. # name : mod
  2. # key : mod
  3. # group : extjs
  4. # contributor : crazycode@gmail.com
  5. # This was cloned from a TextMate bundle for yasnippet.
  6. # --
  7. /**
  8. * @class ${1:MyNamespace}.models.${2:${TM_FILENAME/(.+)\.js$/$1/}}
  9. * @extends ExtMVC.Model.Base
  10. */
  11. ExtMVC.model.define("${2:${TM_FILENAME/(.+)\.js$/$1/}}", {${3:
  12. adapter: '${4:REST}',}
  13. fields: [
  14. $0
  15. ]
  16. });