Skip to content

Commit

Permalink
Closes #46. Use ActivationEvents to speed up loading time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Jul 10, 2014
1 parent 16dd4a6 commit 4271bfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/atom-beautify.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var plugin = module.exports;
// Dependencies
var fs = require('fs');
var path = require('path');
var nopt = require('nopt');
// var nopt = require('nopt');
var _ = require('lodash');
var strip = require('strip-json-comments');
var yaml = require('js-yaml');
Expand Down Expand Up @@ -57,10 +57,10 @@ function getUserHome() {
return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
}

function cleanOptions(data, types) {
nopt.clean(data, types);
return data;
}
// function cleanOptions(data, types) {
// nopt.clean(data, types);
// return data;
// }

function getCursors(editor) {
var cursors = editor.getCursors();
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
"emissary": "^1.0.0",
"extend": "^1.2.1",
"js-beautify": "~1.5.1",
"nopt": "^3.0.0",
"lodash": "2.4.1",
"strip-json-comments": "^0.1.3",
"js-yaml": "^3.0.2",
"temp": "^0.8.0"
}
},
"activationEvents": ["beautify"]
}

0 comments on commit 4271bfe

Please sign in to comment.