mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-25 07:32:35 +01:00
fixed bug with dotted filetypes
This commit is contained in:
@@ -2,6 +2,8 @@ if !exists('loaded_snips') || exists('s:did_js_snips')
|
||||
fini
|
||||
en
|
||||
let s:did_js_snips = 1
|
||||
let ft = &ft
|
||||
let &ft ='javascript'
|
||||
|
||||
" Prototype
|
||||
exe "Snipp proto ${1:class_name}.prototype.${2:method_name} =\nfunction(${3:first_argument}) {\n\t${4:// body...}\n};"
|
||||
@@ -35,3 +37,5 @@ exe 'Snipp timeout setTimeout(function() {${3}}${2}, ${1:10};'
|
||||
exe "Snipp get getElementsBy${1:TagName}('${2}')${3}"
|
||||
" Get Element
|
||||
exe "Snipp gett getElementBy${1:Id}('${2}')${3}"
|
||||
|
||||
let &ft = ft
|
||||
|
||||
Reference in New Issue
Block a user