a83775cfeb
The snippet that generates a require block is called `reqjs` in order to have no collision with the existing `req` snippet.
15 lines
347 B
Plaintext
15 lines
347 B
Plaintext
snippet def
|
|
define(["${1:#dependencies1}"], function (${2:#dependencies2}) {
|
|
return ${0:TARGET};
|
|
});
|
|
|
|
snippet defn
|
|
define("${1:#name}", ["${2:#dependencies1}"], function (${3:#dependencies2}) {
|
|
return ${0:TARGET};
|
|
});
|
|
|
|
snippet reqjs
|
|
require(["${1:#dependencies1}"], function (${2:#dependencies2}) {
|
|
return ${0:TARGET};
|
|
});
|