Skip to content

Instantly share code, notes, and snippets.

@koenbok
Created November 12, 2011 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koenbok/1359775 to your computer and use it in GitHub Desktop.
Save koenbok/1359775 to your computer and use it in GitHub Desktop.
UILayer Bug
<html lang="en">
<head>
<script type="text/javascript" src="http://movelang.org/move-0.4.5-rt.js"></script>
<script type="text/javascript" src="http://rsms.me/uilayer/uilayer.js"></script>
</head>
<body>
<script type="text/javascript">
var UILayer = Move.require("UILayer");
UILayer.debug = true;
var layer = new UILayer();
document.body.appendChild(layer.element);
layer.frame = {x:100, y:100, width:100, height:100};
// layer.animationDuration // Remove me and it won't work!
layer.animated = true;
layer.animationDuration = 500;
layer.frame.x = 500
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment