v3.20.4

Net loss per share attributable to common stockholders | 12 Months Ended
--- | ---
Dec. 31, 2020
Net loss per share attributable to common stockholders |
Net loss per share attributable to common stockholders | 21. 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: ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Year Ended December 31,
​ |  | 2020 |  | 2019 |  | 2018
​ | ​ | (in thousands)
Numerator: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Net loss attributable to common stockholders, basic and diluted | ​ | $ | (17,093) | ​ | $ | (10,296) | ​ | $ | (1,220)
Denominator: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Weighted average common stock, basic and diluted | ​ | ​ | 44,440 | ​ | ​ | 43,977 | ​ | ​ | 42,066
Net loss per share attributable to common stockholders: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Basic and diluted | ​ | $ | (0.38) | ​ | $ | (0.23) | ​ | $ | (0.03)
​ For the years ended December 31, 2020, 2019 and 2018, 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. For the years ended December 31, 2020, 2019, and 2018, we also excluded the shares that would be issuable assuming conversion of all of the Convertible Notes and the shares for the capped call as their effect would be anti-dilutive. Diluted EPS for our Convertible Notes is calculated under the treasury method in accordance with ASC 260, Earnings Per Share, as we have 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.

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