             @setState(select_entire_directory : 'hidden')
 
     check_all_click_handler : ->
-        if @props.checked_files.size is 0
+        if @props.checked_files.size == 0
             files_on_page = @props.listing[@props.page_size * @props.page_number...@props.page_size * (@props.page_number + 1)]
             @props.actions.set_file_list_checked(misc.path_to_file(@props.current_path, file.name) for file in files_on_page)
 

            <ProjectState state={project_state} />
        </div>

    render : ->
        if not @props.checked_files?  # hasn't loaded/initialized at all
            return <Loading />

        else if listing?
            <FileListing
                listing       = {listing}
                page_size     = {@file_listing_page_size()}
                page_number   = {@props.page_number}
                file_map      = {file_map}
                checked_files = {@props.checked_files}
