JSFiddle - React, Tailwind, and code Playground
by Gerald Gillespie
HTML
<textarea rows="25" cols="100" id="myTXT"></textarea>
JavaScript
/*
*/
var data = {
};
var namespace = {
};
var _Sizing = function( opts ){drive
this.name = opts.uid;
return this;
};
_Sizing.prototype.toString = function(){
return JSON.stringify({
name : this.name
});
}
var Sizing = function( opts ){
if(typeof namespace[opts.uid] !== 'undefined'){
return namespace[opts.uid];
} else {
namespace[opts.uid] = new _Sizing( opts );
}
return namespace[opts.uid];
};
var mySize = Sizing( { uid : 'e89'});
var mySize2 = Sizing( { uid : 'e88' } );
jQuery('#myTXT').text(mySize.toString());
//alert( mySize.toString() );