Replaced 'RequireJS' with 'AMD'.

These snippets are more general AMD snippets, rather than being specific
to RequireJS i.e. they can be used by anyone using an AMD script loader,
not just RequireJS.
This commit is contained in:
Ian Oxley 2013-08-20 11:42:10 +01:00
parent ccc524c2e9
commit bc322038d2

View File

@ -115,13 +115,13 @@ snippet ctrace "console.trace"
console.trace();
endsnippet
# RequireJS snippets
# AMD (Asynchronous Module Definition) snippets
snippet def "Boilerplate for calling define" !w
snippet def "define an AMD module"
define(${1:optional_name, }[${2:'jquery'}], ${3:callback});
endsnippet
snippet req "Boilerplate for calling require" !w
snippet req "require an AMD module"
require([${1:'dependencies'}], ${2:callback});
endsnippet