Fix spinning-square to spin again.

TBR=abarth@chromium.org

Review URL: https://codereview.chromium.org/942923002
This commit is contained in:
Eric Seidel 2015-02-20 10:28:03 -08:00
parent c54e1688e8
commit 26629785a9

View File

@ -21,7 +21,7 @@ void main() {
timeBase = time;
double delta = time - timeBase;
int rotation = (delta / 10).floor();
square.style.setProperty("transform", 'rotate(${rotation}deg)');
square.style["transform"] = "rotate(${rotation}deg)";
window.requestAnimationFrame(animate);
}