Skip to content

Commit 80cbeab

Browse files
committed
minor
1 parent f9251c7 commit 80cbeab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ define(function (require, exports, module) {
2727
var sketchSelectRenderer = Mustache.compile (sketchSelectMst);
2828
var runtimeSelectRenderer = Mustache.compile (runtimeSelectMst);
2929

30+
var getModulePath = ExtensionUtils.getModulePath.bind (ExtensionUtils, module);
31+
3032
// completion in another file, easy to move code to external project
31-
var completion = require ([ExtensionUtils.getModulePath (module, 'completion.js')], function () {
32-
console.log ("loaded completion");
33+
var completion = require ([getModulePath ('completion.js')], function (completion) {
34+
3335
});
3436

3537
var prefs = PreferencesManager.getExtensionPrefs (moduleId);
@@ -44,7 +46,7 @@ define(function (require, exports, module) {
4446
// prefs.definePreference ("patterns", "array", []).on("change", function () {
4547
// });
4648

47-
var cuwireDomain = new NodeDomain ("cuwire", ExtensionUtils.getModulePath (module, "node/cuwireDomain.js"));
49+
var cuwireDomain = new NodeDomain ("cuwire", getModulePath ("node/cuwireDomain.js"));
4850
ExtensionUtils.loadStyleSheet (module, "assets/style.css");
4951

5052
function CuWireExt (require, domain) {

0 commit comments

Comments
 (0)