v3.19.2

Net income (loss) per share attributable to common stockholders (Tables) | 6 Months Ended
--- | ---
Jun. 30, 2019
Net income (loss) per share attributable to common stockholders |
Schedule of computation of basic and diluted net income (loss) per share attributable to common stockholders |
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Three Months Ended | ​ | Six Months Ended
​ | ​ | June 30, | ​ | June 30,
​ |  | 2019 |  | 2018 |  | 2019 |  | 2018
​ | ​ | (in thousands)
Numerator: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Net income (loss) attributable to common stockholders, basic and diluted | ​ | $ | 216 | ​ | $ | 2,115 | ​ | $ | (4,937) | ​ | $ | (1,114)
Denominator: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Weighted average common stock, basic | ​ |  | 44,041 | ​ |  | 41,961 | ​ | ​ | 43,786 | ​ | ​ | 41,645
Effect of dilutive stock options | ​ | ​ | 191 | ​ | ​ | 472 | ​ | ​ | — | ​ | ​ | —
Effect of dilutive RSUs | ​ | ​ | 146 | ​ | ​ | 2,786 | ​ | ​ | — | ​ | ​ | —
Weighted average common stock, diluted | ​ | ​ | 44,378 | ​ | ​ | 45,219 | ​ | ​ | 43,786 | ​ | ​ | 41,645
Net income (loss) per share attributable to common stockholders: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Basic | ​ | $ | 0.00 | ​ | $ | 0.05 | ​ | $ | (0.11) | ​ | $ | (0.03)
Diluted | ​ | $ | 0.00 | ​ | ​ | 0.05 | ​ | $ | (0.11) | ​ | ​ | (0.03)
​

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 Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration