JSFiddle - React, Tailwind, and code Playground
by bladnman
HTML
<script src="http://www.qubedpeas.com/files/currentVersion/QPTools.min.js"></script>
JavaScript
function establishPatch(patchScope) {
if ( ! QPU.isNoE(patchScope) ) {
var ourScope = null;
// string
if ( QPU.isString(patchScope) ) {
QPU.window[patchScope] = typeof(QPU.window[patchScope]) === "undefined" ? {} : QPU.window[patchScope];
ourScope = QPU.window[patchScope];
}
else {
ourScope = patchScope;
}
// ADD ON COMMON (standard)
ourScope.Common = typeof(ourScope.Common) === "undefined" ? {} : ourScope.Common;
}
}
log("hello");
establishPatch("DOG");
log("we got", DOG);