PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/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  \},}
11  loadSuccess: function(${4:${1/(.+)\.([A-Za-z]*)$/\l$2/}}) {
12    $0
13  }
14});