Created
February 26, 2015 20:45
-
-
Save Comandeer/f9f965f572d0957b51bf to your computer and use it in GitHub Desktop.
Polymer's polyfill for lacking support for arrays in form.elements. It really sucks.
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
//it's one of the ugliest hacks I've ever created… | |
for(var x in this.$) | |
{ | |
if(!this.$.hasOwnProperty(x) ||x.indexOf('chars') !== 0) | |
continue; | |
var tmp = this.$[x]; | |
if(tmp.checked) | |
range += chars[tmp.value]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment