JSFiddle - React, Tailwind, and code Playground
by Ronny
JavaScript
a = new Class({
options: {},
initialize: function(){
var fields = ['swf', 'id', 'width', 'height', 'version', 'backgroundcolor', 'quality', 'xiRedirectUrl','redirectUrl', 'detectKey'];
var l = arguments.length;
for (var i = 0 ; i < l ; i++){
this.options[fields[i]] = arguments[i];
}
}
});
var hi = new a(1,2,3,4,5,6,7,8);
console.log(hi.options);