Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Unified Diff: sky/examples/spinning-square.sky

Issue 942923002: Fix spinning-square to spin again. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/spinning-square.sky
diff --git a/sky/examples/spinning-square.sky b/sky/examples/spinning-square.sky
index 673716b738fe7e731182d810f83d10f301c60989..a570732892a906c7cc7c1e4418812f5342a08e35 100644
--- a/sky/examples/spinning-square.sky
+++ b/sky/examples/spinning-square.sky
@@ -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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698