Lines Matching defs:Element
259 case 1: return 'element';
397 if (!win.Element){
398 win.Element = $empty;
400 win.Element.prototype = (Browser.Engine.webkit) ? window["[[DOMElement.prototype]]"] : {};
1294 Script: Element.js
1302 var Element = new Native({
1304 name: 'Element',
1306 legacy: window.Element,
1309 var konstructor = Element.Constructors.get(tag);
1316 Element.Prototype[key] = value;
1323 if (elements) elements = ($type(returns) == 'element');
1331 Element.Prototype = {$family: {name: 'element'}};
1333 Element.Constructors = new Hash;
1348 iframe = new Element(iframe || 'iframe', props);
1356 $extend(win.Element.prototype, Element.Prototype);
1374 var el = $.element(elements[i], !options.cash);
1410 return $.element(this.createElement(tag)).set(props);
1442 case 'element': elements.push(item); break;
1461 return (id) ? $.element(id, nocash) : null;
1464 $.element = function(el, nocash){
1467 var proto = Element.Prototype;
1474 if (obj.toElement) return $.element(obj.toElement(doc), nocash);
1480 Native.implement([Element, Document], {
1523 Element.dispose(item);
1537 var walk = function(element, walk, start, match, all, nocash){
1538 var el = element[start || walk];
1541 if (el.nodeType == 1 && (!match || Element.match(el, match))){
1566 before: function(context, element){
1567 if (element.parentNode) element.parentNode.insertBefore(context, element);
1570 after: function(context, element){
1571 if (!element.parentNode) return;
1572 var next = element.nextSibling;
1573 (next) ? element.parentNode.insertBefore(context, next) : element.parentNode.appendChild(context);
1576 bottom: function(context, element){
1577 element.appendChild(context);
1580 top: function(context, element){
1581 var first = element.firstChild;
1582 (first) ? element.insertBefore(context, first) : element.appendChild(context);
1593 Element.implement('inject' + where, function(el){
1598 Element.implement('grab' + where, function(el){
1605 Element.implement({
1613 var property = Element.Properties.get(prop);
1620 var property = Element.Properties.get(prop);
1625 var property = Element.Properties.get(prop);
1684 Array.flatten(arguments).each(function(element){
1685 element = $(element, true);
1686 if (element) this.appendChild(element);
1770 return $.element(el, nocash);
1789 var value = (el.tagName.toLowerCase() == 'select') ? Element.getSelected(el).map(function(opt){
1802 var clean = function(node, element){
1806 node.mergeAttributes(element);
1809 var no = node.options, eo = element.options;
1813 var prop = props[element.tagName.toLowerCase()];
1814 if (prop && element[prop]) node[prop] = element[prop];
1827 Element.empty(this);
1828 Element.dispose(this);
1835 Element.destroy(node);
1852 return (!tag || (tag == this) || (Element.get(this, 'tag') == tag));
1857 Native.implement([Element, Window, Document], {
1904 Element.Properties = new Hash;
1906 Element.Properties.style = {
1922 Element.Properties.tag = {
1930 Element.Properties.html = (function(){
1961 if (Browser.Engine.webkit && Browser.Engine.version < 420) Element.Properties.text = {
1973 Script: Element.Event.js
1974 Contains Element methods for dealing with events, and custom Events.
1980 Element.Properties.events = {set: function(events){
1984 Native.implement([Element, Window, Document], {
1991 var realType = type, custom = Element.Events.get(type), condition = fn, self = this;
2005 var nativeEvent = Element.NativeEvents[realType];
2026 var custom = Element.Events.get(type);
2031 return (Element.NativeEvents[type]) ? this.removeListener(type, value) : this;
2082 Element.NativeEvents = {
2101 Element.Events = new Hash({
2123 Script: Element.Style.js
2130 Element.Properties.styles = {set: function(styles){
2134 Element.Properties.opacity = {
2156 Element.implement({
2173 var map = (Element.Styles.get(property) || '@').split(' ');
2194 for (var style in Element.ShortStyles){
2196 for (var s in Element.ShortStyles[style]) result.push(this.getStyle(s));
2235 Element.Styles = new Hash({
2245 Element.ShortStyles = {margin: {}, padding: {}, border: {}, borderWidth: {}, borderStyle: {}, borderColor: {}};
2248 var Short = Element.ShortStyles;
2249 var All = Element.Styles;
2265 Script: Element.Dimensions.js
2272 - Element positioning based on the [qooxdoo](http://qooxdoo.org/) code and smart browser fixes, [LGPL License](http://www.gnu.org/licenses/lgpl.html).
2278 Element.implement({
2306 var element = this, position = {x: 0, y: 0};
2307 while (element && !isBody(element)){
2308 position.x += element.scrollLeft;
2309 position.y += element.scrollTop;
2310 element = element.parentNode;
2316 var element = this;
2317 if (isBody(element)) return null;
2318 if (!Browser.Engine.trident) return element.offsetParent;
2319 while ((element = element.parentNode) && !isBody(element)){
2320 if (styleString(element, 'position') != 'static') return element;
2335 var element = this, position = {x: 0, y: 0};
2338 while (element && !isBody(element)){
2339 position.x += element.offsetLeft;
2340 position.y += element.offsetTop;
2343 if (!borderBox(element)){
2344 position.x += leftBorder(element);
2345 position.y += topBorder(element);
2347 var parent = element.parentNode;
2352 } else if (element != this && Browser.Engine.webkit){
2353 position.x += leftBorder(element);
2354 position.y += topBorder(element);
2357 element = element.offsetParent;
2374 getCoordinates: function(element){
2376 var position = this.getPosition(element), size = this.getSize();
2427 var styleString = Element.getComputedStyle;
2429 function styleNumber(element, style){
2430 return styleString(element, style).toInt() || 0;
2433 function borderBox(element){
2434 return styleString(element, '-moz-box-sizing') == 'border-box';
2437 function topBorder(element){
2438 return styleNumber(element, 'border-top-width');
2441 function leftBorder(element){
2442 return styleNumber(element, 'border-left-width');
2445 function isBody(element){
2446 return (/^(?:body|html)$/i).test(element.tagName);
2449 function getCompatElement(element){
2450 var doc = element.getDocument();
2458 Native.implement([Window, Document, Element], {
2503 Native.implement([Document, Element], {
2518 Element.implement({
2632 var item = (ctx.getElementById) ? ctx.getElementById(id, true) : Element.getElementById(ctx, id, true);
2751 var result = Element.prototype.getProperty.call(self, name);
2781 return !Element.match(this, selector);
2793 var element = this;
2794 while ((element = element.nextSibling)){
2795 if (element.nodeType == 1) return false;
2838 var element = this, count = 0;
2839 while ((element = element.previousSibling)){
2840 if (element.nodeType == 1 && ++count > index) return false;
2868 Element.Events.domready = {
3101 this.object = ((container) ? container.empty() : new Element('div')).set('html', build).firstChild;
3104 replaces: function(element){
3105 element = $(element, true);
3106 element.parentNode.replaceChild(this.toElement(), element);
3110 inject: function(element){
3111 $(element, true).appendChild(this.toElement());
3276 prepare: function(element, property, values){
3281 values[0] = element.getStyle(property);
3327 //renders the change to an element
3329 render: function(element, property, value, unit){
3330 element.setStyle(property, this.serve(value, unit));
3348 Element.Styles.each(function(value, style){
3349 if (!rule.style[style] || Element.ShortStyles[style]) return;
3398 Formerly Fx.Style, effect to transition any CSS property for an element.
3408 initialize: function(element, options){
3409 this.element = this.subject = $(element);
3418 this.render(this.element, property, now, this.options.unit);
3426 var parsed = this.prepare(this.element, this.property, args);
3432 Element.Properties.tween = {
3450 Element.implement({
3495 Formerly Fx.Styles, effect to transition any number of CSS properties for an element using an object of rules, or CSS based selector rules.
3505 initialize: function(element, options){
3506 this.element = this.subject = $(element);
3512 for (var p in now) this.render(this.element, p, now[p], this.options.unit);
3527 var parsed = this.prepare(this.element, p, properties[p]);
3536 Element.Properties.morph = {
3554 Element.implement({
3774 if (type == 'string' || type == 'element') options = {data: options};
3781 case 'element': data = $(data).toQueryString(); break;
3880 var container = new Element('div');
3894 var child = Element.clone(root.childNodes[i], true, true);
3923 Element.Properties.send = {
3943 Element.Properties.load = {
3961 Element.implement({