Skip to content

Instantly share code, notes, and snippets.

@rileydutton
Created January 16, 2016 17:42
Show Gist options
  • Save rileydutton/93a2a270d2ae78a60e99 to your computer and use it in GitHub Desktop.
Save rileydutton/93a2a270d2ae78a60e99 to your computer and use it in GitHub Desktop.
Test: <input type="text" name="attr_Test" /><br />
test: <input type="text" name="attr_test" /><br />
TEST: <input type="text" name="attr_TEST" /><br />
<hr />
SheetWorker: <input type="text" name="attr_SheetWorker" style="pointer-events: none;" /><br />
SHEETWORKER: <input type="text" name="attr_SHEETWORKER" style="pointer-events: none;" />
<script type="text/worker">
on("change:test", function() {
console.log("Test changed!");
getAttrs(["test"], function(data) {
setAttrs({
SheetWorker: data.test
});
setAttrs({
SHEETWORKER: data.test
});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment