v3.21.1

Net loss per share attributable to common stockholders | 3 Months Ended
--- | ---
Mar. 31, 2021
Net loss per share attributable to common stockholders |
Net loss per share attributable to common stockholders | 15. Net loss per share attributable to common stockholders The following table sets forth the computation of basic and diluted net loss per share attributable to common stockholders:
​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Three Months Ended
​ | ​ | March 31,
​ |  | 2021 |  | 2020
​ | ​ | (in thousands)
Numerator: | ​ | ​ | ​ | ​ | ​ | ​
Net loss attributable to common stockholders, basic and diluted | ​ | $ | (6,444) | ​ | $ | (4,633)
Denominator: | ​ | ​ | ​ | ​ | ​ | ​
Weighted average common stock, basic and diluted | ​ | ​ | 44,690 | ​ | ​ | 44,272
Net loss per share attributable to common stockholders: | ​ | ​ | ​ | ​ | ​ | ​
Basic and diluted | ​ | $ | (0.14) | ​ | $ | (0.10)
​ For the three months ended March 31, 2021 and 2020, we excluded all assumed exercises of stock options and the assumed issuance of common stock under RSUs from the computation of diluted net loss per share as the effect would be anti-dilutive due to the net loss for the periods. Prior to the adoption of ASU 2020-06, diluted EPS for our Convertible Notes was calculated under the treasury method in accordance with ASC 260, Earnings Per Share, as we had the intent and ability to settle the principal amount of the Convertible Notes in cash. Accordingly, no shares associated with the Convertible Notes were included in the weighted average number of common stock outstanding for any periods presented. Subsequent to the adoption of ASU 2020-06, diluted EPS for our Convertible Notes is calculated under the if-converted method. For the three months ended March 31, 2021 and 2020, we excluded the shares that would be issuable assuming conversion of all the Convertible Notes and the shares for the capped call as their effect would be anti-dilutive under both the if-converted method and the treasury method, respectively.

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The entire disclosure for earnings per share. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -URI http://asc.fasb.org/topic&trid=2144383 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257 + Details
Name: | us-gaap_EarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration