mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-01-28 11:52:10 +08:00
Unique attribute names. close #119
This commit is contained in:
@@ -247,3 +247,15 @@ function! zencoding#util#isImageMagickInstalled()
|
||||
endif
|
||||
return executable('identify')
|
||||
endfunction
|
||||
|
||||
function! zencoding#util#unique(arr)
|
||||
let m = {}
|
||||
let r = []
|
||||
for i in a:arr
|
||||
if !has_key(m, i)
|
||||
let m[i] = 1
|
||||
call add(r, i)
|
||||
endif
|
||||
endfor
|
||||
return r
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user