Skip to content

Commit

Permalink
added an event for domReady
Browse files Browse the repository at this point in the history
  • Loading branch information
designfrontier committed Jun 17, 2014
1 parent 193d5d4 commit b4823a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/javascripts/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,10 @@ var action = function(){
// throw errorIn;
});

document.addEventListener("DOMContentLoaded", function(){
action.emit('dom:ready');
});

//return the tweaked function
return action;
}(this);

0 comments on commit b4823a6

Please sign in to comment.