Permalink
Browse files

cleanup

  • Loading branch information...
1 parent fe96825 commit 1b861e156f749c34c37050c7f6e42b03768f86ab @crcn crcn committed Nov 14, 2012
Showing with 2,556 additions and 5 deletions.
  1. +8 −5 lib/plugins/command.api.js
  2. +2,548 −0 project.sublime-workspace
View
@@ -82,12 +82,15 @@ exports.plugin = function(cli) {
var wapi = dsync(api);
- flattenMethods(normalizeApi(wapi), []).forEach(function(cmd) {
+ /*flattenMethods(normalizeApi(wapi), []).forEach(function(cmd) {
cli.addHelp(cmd);
- });
+ });*/
+
// console.log(demormalizeApi(api).cli.toString())
// Structr.copy(demormalizeApi(api), target);
- _.extend(target, wapi);
+ _.extend(target, wapi);
+ console.log(target)
+
}
return {
@@ -97,8 +100,8 @@ exports.plugin = function(cli) {
run: function(buffer, data) {
try {
- var ret = eval("with(target) " + buffer);
-
+ var ret = eval("target." + buffer);
+
if(ret != undefined) console.log(ret);
return true;
} catch(e) {
Oops, something went wrong.

0 comments on commit 1b861e1

Please sign in to comment.