Created
November 12, 2011 00:30
-
-
Save koenbok/1359775 to your computer and use it in GitHub Desktop.
UILayer Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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