Skip to content

Instantly share code, notes, and snippets.


  • Central Arizona, USA
Block or report user

Report or block IAMtheIAM

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dispatching-action-creators.js
// approach 1: define action object in the component
payload : {
item : {itemID, itemType},
newAttributes : newValue,
// approach 2: use an action creator function
IAMtheIAM / javascript_loader.js
Last active Jan 12, 2017 — forked from hagenburger/javascript_loader.js
Dynamically load JavaScript files with callback when finished
View javascript_loader.js
// Example:
function myCallback() {
// cool stuff here
// don't invoke the function here with () i.e. myCallback(), just reference the name of it it - myCallback.
JavaScript.load("/javascripts/something.js", myCallback);
// With callback (that’s the good thing):
You can’t perform that action at this time.