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

Version Path
refinerycms-0.9.5.31 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.30 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.29 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.28 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.27 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.26 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.25 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.24 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.23 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.22 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.21 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.20 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.19 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.18 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.17 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.16 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.15 public/javascripts/refinery/prototype.enhancements.js
refinerycms-0.9.5.14 public/javascripts/refinery/prototype.enhancements.js