javascript - Code completion in RubyMine/Intellj IDEA for coffeescript global variables -
i trying separate coffeescript code several files. created global object share code between files(see below). unfortunately rubymine, using not understand such approach , not provide code completion. there workaround that?
code
// --- global.js --- // define root namespace if (typeof _ === "undefined") { var _ = {}; } # --- utils.coffee --- # sprockets requires #= require global class _.myexception # --- somecode.coffee --- #= require utils class someclass f: -> throw new _.myexception
Comments
Post a Comment