Sha256: a42d7f372eac059c5edbf393b93a00a444d472c3d1d8eb87ef0edd7b5b521b28
Contents?: true
Size: 691 Bytes
Versions: 18
Compression:
Stored size: 691 Bytes
Contents
Element.addMethods('iframe', { document: function(element) { element = $(element); if (element.contentWindow) return element.contentWindow.document; else if (element.contentDocument) return element.contentDocument; else return null; }, $: function(element, frameElement) { element = $(element); var frameDocument = element.document(); if (arguments.length > 2) { for (var i = 1, frameElements = [], length = arguments.length; i < length; i++) frameElements.push(element.$(arguments[i])); return frameElements; } if (Object.isString(frameElement)) frameElement = frameDocument.getElementById(frameElement); return frameElement || element; } });
Version data entries
18 entries across 18 versions & 1 rubygems