Skip to content

Commit

Permalink
Merge pull request #2 from integrum/master
Browse files Browse the repository at this point in the history
Fix for ST3
  • Loading branch information
gja committed Dec 15, 2013
2 parents 353f346 + e5714e6 commit 004b501
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions run_jasmine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import re
import thread
import subprocess
import functools
import time
Expand Down Expand Up @@ -31,11 +30,11 @@ def current_file(self):
return JasmineSwitchBetweenCodeAndSpec.BaseFile(file_name)

def is_enabled(self):
return self.current_file().possible_alternate_files()
return not not self.current_file().possible_alternate_files()

def run(self, args):
possible_alternates = self.current_file().possible_alternate_files()
alternates = self.project_files(lambda(file): file in possible_alternates)
alternates = self.project_files(lambda file: file in possible_alternates)
if alternates:
self.window().open_file(alternates.pop())
else:
Expand Down

0 comments on commit 004b501

Please sign in to comment.