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
// the object to proxy | |
var obj = new SomeObject(); | |
// standard proxy with same-name getter/setter | |
var stdProxy = { | |
getXsetY: function (value) { | |
if (arguments.length) { | |
if (typeof value === 'number') { | |
obj.y = value; | |
return true; |
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
/** | |
* localStorage test | |
* copied from http://jsbin.com/hofove | |
*/ | |
#placer { position: absolute; left: 2.5%; width: 95%; top: 7.5em; bottom: 1.5em;}#placer iframe { background: #eee; width: 100%; height: 100%;} |
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> | |
<body> | |
<span id="output"></span> | |
</body> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script src="main.js"></script> | |
</html> |