Skip to content
#

polyfill

Here are 478 public repositories matching this topic...

eu81273
eu81273 commented May 19, 2017

If the document.domain property is set in the page, _has module throws error "Access is denied" when try to check window's property for example 'hasOwnProperty'.

So I think it is better to change _has module like below.

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function(it, key){
  try {
    return hasOwnProperty.call(it, key);
  } catch(e){
    return 
prabirshrestha
prabirshrestha commented Sep 29, 2017

https://developers.google.com/web/updates/2017/09/abortable-fetch

Currently it is only implemented in Firefox 57 and is coming to other browsers soon.

const controller = new AbortController();
const signal = controller.signal;

setTimeout(() => controller.abort(), 5000);

fetch(url, { signal }).then(response => {
  return response.text();
}).then(text => {
  console.lo
praxiq
praxiq commented Mar 16, 2017

Sometimes it's useful to think of an incompletely-specified date as a range. "March 4" refers to a whole day: from March 4 at 12:00:00 AM to March 5 at 12:00:00 AM. "March 4th 2:00 pm" refers to a whole minute: from March 4th at 2:00:00 PM to March 4th at 2:01:00 PM."

To put it another way, there's a big difference between telling someone, "Do this on March 4th" and "Do this on March 4th at 12:

Improve this page

Add a description, image, and links to the polyfill topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the polyfill topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.