Sha256: 6076b3c6f9654b650113ef1553fb87c350a7dfc988a53adaf5f70118ee8a9dce
Contents?: true
Size: 608 Bytes
Versions: 34
Compression:
Stored size: 608 Bytes
Contents
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toIObject = require('./$.to-iobject') , getNames = require('./$').getNames , toString = {}.toString; var windowNames = typeof window == 'object' && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function(it){ try { return getNames(it); } catch(e){ return windowNames.slice(); } }; module.exports.get = function getOwnPropertyNames(it){ if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it); return getNames(toIObject(it)); };
Version data entries
34 entries across 17 versions & 7 rubygems