Open x-yuri opened 11 years ago
At least call the previous handler. This is how I resolved the problem:
<script src="/js/dropfile.js"></script>
<script>var windowOnLoad1 = window.onload;</script>
<script src="/js/native.history.js"></script>
<script>
var windowOnLoad2 = window.onload;
if (windowOnLoad1 && windowOnLoad2 && windowOnLoad1 != windowOnLoad2)
window.onload = function() {
windowOnLoad1 && windowOnLoad1.apply(this, arguments);
windowOnLoad2 && windowOnLoad2.apply(this, arguments);
};
</script>
I particularly have an issue with history.js, overwriting dropfile's event handler.