emmetio / sublime-tern

TernJS plugin for Sublime Text
222 stars 13 forks source link

controller.js has bug! #50

Open zqjimlove opened 8 years ago

zqjimlove commented 8 years ago

tern.py call the startServer ,the params project is

{"config": {"libs": ["jquery"], "files": ["/Users/inwoo/work/FrontEnd_Git/ibary-mobile/dist/**/*.js"]}, "id": "/Users/inwoo/Library/Application Support/Sublime Text 3/Packages/User/Projects/project.sublime-project", "dir": "/Users/inwoo/Library/Application Support/Sublime Text 3/Packages/User/Projects", "files": []}

but the controller.js line 15 is: var files = project && project.files ? project.files : [];

must be var files = project && project.config ? project.config.files : [];