If the function
$$f ( x ) = \begin{cases} \frac { x ^ { 2 } - 2 x + A } { \sin x } & \text { if } x \neq 0 \\ B & \text { if } x = 0 \end{cases}$$
is continuous at $x = 0$, then\\
(A) $A = 0 , B = 0$\\
(B) $A = 0 , B = - 2$\\
(C) $A = 1 , B = 1$\\
(D) $A = 1 , B = 0$