iron-ajax
iron-ajax copied to clipboard
dispatch error event only if iron-ajax-error allows it.
This change adds the ability for listeners of "iron-ajax-error" to prevent "error" event.
ajaxElement.addEventListener('iron-ajax-error', function (event) {
event.preventDefault(); // now "error" will never fire.
})
Great feature. Can you write a simple test and also rebase onto master?