Permalink
Browse files

Autocompile safety wrapper fix

  • Loading branch information...
1 parent ab104d1 commit 9e2b5014cac5df040132ee2f589660fc5724855a @dstepanov committed Jul 12, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/coffeescript/nb/CoffeeScriptParser.java
@@ -13,6 +13,7 @@
// limitations under the License.
package coffeescript.nb;
+import coffeescript.nb.options.CoffeeScriptSettings;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@@ -48,7 +49,7 @@ public void parse(final Snapshot snapshot, Task task, SourceModificationEvent ev
public ParsingResult call() throws Exception {
CharSequence text = snapshot.getText();
- CoffeeScriptRhinoCompiler.CompilerResult compilerResult = CoffeeScriptRhinoCompiler.get().compile(text.toString(), true);
+ CoffeeScriptRhinoCompiler.CompilerResult compilerResult = CoffeeScriptRhinoCompiler.get().compile(text.toString(), CoffeeScriptSettings.get().isBare());
return new ParsingResult(snapshot, compilerResult);
}
});

0 comments on commit 9e2b501

Please sign in to comment.