mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 18:34:17 +00:00
Fix: moved snippets/js2-mode to snippets/js-mode
This commit is contained in:
19
snippets/js-mode/prop.yasnippet
Normal file
19
snippets/js-mode/prop.yasnippet
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: prop
|
||||
# key: prop
|
||||
# --
|
||||
|
||||
var $1 = (function(){
|
||||
|
||||
var value = undefined;
|
||||
|
||||
return function $1(newValue){
|
||||
|
||||
if( $1.arguments.length > 0 ){
|
||||
value = newValue;
|
||||
}
|
||||
|
||||
return value;
|
||||
};
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user