iron-ajax icon indicating copy to clipboard operation
iron-ajax copied to clipboard

dispatch error event only if iron-ajax-error allows it.

Open StefanLiebenberg opened this issue 7 years ago • 1 comments

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.
})

StefanLiebenberg avatar Apr 13 '17 08:04 StefanLiebenberg

Great feature. Can you write a simple test and also rebase onto master?

e111077 avatar May 24 '17 22:05 e111077