Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
939996e4
Commit
939996e4
authored
Apr 29, 2015
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emptyThread.isNew() -> false
parent
b03705f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
thread-test.coffee
h/static/scripts/directive/test/thread-test.coffee
+8
-0
thread.coffee
h/static/scripts/directive/thread.coffee
+1
-1
No files found.
h/static/scripts/directive/test/thread-test.coffee
View file @
939996e4
...
...
@@ -61,6 +61,14 @@ describe 'thread', ->
assert
(
not
controller
.
isNew
())
it
'returns false from isNew() for a null annotation'
,
->
createDirective
()
# The ThreadController may be an empty container.
controller
.
container
=
{}
assert
(
not
controller
.
isNew
())
describe
'#toggleCollapsed'
,
->
count
=
null
...
...
h/static/scripts/directive/thread.coffee
View file @
939996e4
...
...
@@ -147,7 +147,7 @@ ThreadController = [
# false otherwise.
###
this.isNew = ->
return (this.
id
and not this.container?.message?.id)
return (this.
container?.message?
and not this.container?.message?.id)
this._isFilterActive = ->
if @filter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment