Moved RequireJS snippets into javascript.snippets.

The two snippets are at the end of javascript.snippets, and the javascript_requirejs.snippets file has been deleted.
This commit is contained in:
Ian Oxley 2013-08-15 16:38:09 +01:00
parent f8a5dfb05b
commit ccc524c2e9
2 changed files with 10 additions and 7 deletions

View File

@ -115,4 +115,14 @@ snippet ctrace "console.trace"
console.trace();
endsnippet
# RequireJS snippets
snippet def "Boilerplate for calling define" !w
define(${1:optional_name, }[${2:'jquery'}], ${3:callback});
endsnippet
snippet req "Boilerplate for calling require" !w
require([${1:'dependencies'}], ${2:callback});
endsnippet
# vim:ft=snippets:

View File

@ -1,7 +0,0 @@
snippet def "Boilerplate for calling define" !w
define(${1:optional_name, }[${2:'jquery'}], ${3:callback});
endsnippet
snippet req "Boilerplate for calling require" !w
require([${1:'dependencies'}], ${2:callback});
endsnippet