compat-debug.js revision e275a18d7f6fd57baf841eb4c8f82d790c1ef6bd
var COMPAT_ARG = '~yui|2|compat~';
// get any existing YAHOO obj props
// Make the YUI global the YAHOO global
// augment old YAHOO props
if (o) {
Y.mix(Y, o);
}
}
/*
if ((!globalUpdated) && (!(window.YAHOO instanceof YUI))) {
globalUpdated = true;
// get any existing YAHOO obj props
var o = (window.YAHOO) ? YUI.merge(window.YAHOO) : null;
// Make the YUI global the YAHOO global
// window.YAHOO = YUI().use('node', 'compat');
window.YAHOO = YUI().use('node', 'compat');
// augment old YAHOO props
if (o) {
Y.mix(Y, o);
}
}
*/
// add old namespaces
// support Y.register
modules: [],
listeners: [],
getVersion: function(name) {
}
});
var L = Y.lang;
// add old lang properties
Y.mix(L, {
augmentObject: function(r, s) {
},
augmentProto: function(r, s) {
},
// extend: Y.bind(Y.extend, Y),
// merge: Y.bind(Y.merge, Y)
}, true);
L.augment = L.augmentProto;
// IE won't enumerate this
L.hasOwnProperty = Y.Object.owns;
// L.merge = Y.merge;
Y.augmentProto = L.augmentProto;
// add register function
Y.mix(Y, {
}
m.version = v;
m.build = b;
// fire the module load listeners
ls[i](m);
}
// label the main class
if (mainClass) {
} else {
}
}
});
// add old load listeners
if ("undefined" !== typeof YAHOO_config) {
if (l) {
// if YAHOO is loaded multiple times we need to check to see if
// this is a new config object. If it is, add the new component
// load listener to the stack
if (ls[i]==l) {
unique=false;
break;
}
}
if (unique) {
}
}
}
// add old registration for yahoo
if (Y.Event) {
var o = {
/**
* Safari detection
* @property isSafari
* @private
* @static
* @deprecated use Y.Env.UA.webkit
*/
/**
* webkit version
* @property webkit
* @type string
* @private
* @static
* @deprecated use Y.Env.UA.webkit
*/
/**
* @property webkitKeymap
* @type {int: int}
* @private
* @static
* @final
*/
webkitKeymap: {
63232: 38, // up
63233: 40, // down
63234: 37, // left
63235: 39, // right
63276: 33, // page up
63277: 34, // page down
25: 9 // SHIFT-TAB (Safari provides a different key code in
// this case, even though the shiftKey modifier is set)
},
/**
* IE detection
* @property isIE
* @private
* @static
* @deprecated use Y.Env.UA.ie
*/
/**
* Returns scrollLeft
* @method _getScrollLeft
* @static
* @private
*/
_getScrollLeft: function() {
return this._getScroll()[1];
},
/**
* Returns scrollTop
* @method _getScrollTop
* @static
* @private
*/
_getScrollTop: function() {
return this._getScroll()[0];
},
/**
* Returns the scrollTop and scrollLeft. Used to calculate the
* pageX and pageY in Internet Explorer
* @method _getScroll
* @static
* @private
*/
_getScroll: function() {
} else if (db) {
} else {
return [0, 0];
}
},
/**
* Returns the event's pageX
* @method getPageX
* @param {Event} ev the event
* @return {int} the event's pageX
* @static
*/
if (!x && 0 !== x) {
x += this._getScrollLeft();
}
}
return x;
},
/**
* Returns the charcode for an event
* @method getCharCode
* @param {Event} ev the event
* @return {int} the event's charCode
* @static
*/
getCharCode: function(ev) {
// webkit normalization
}
return code;
},
/**
* Returns the event's pageY
* @method getPageY
* @param {Event} ev the event
* @return {int} the event's pageY
* @static
*/
if (!y && 0 !== y) {
y += this._getScrollTop();
}
}
return y;
},
/**
* Returns the pageX and pageY properties as an indexed array.
* @method getXY
* @param {Event} ev the event
* @return {[x, y]} the pageX and pageY properties of the event
* @static
*/
},
/**
* Returns the event's related target
* @method getRelatedTarget
* @param {Event} ev the event
* @return {HTMLElement} the event's relatedTarget
* @static
*/
getRelatedTarget: function(ev) {
var t = ev.relatedTarget;
if (!t) {
t = ev.fromElement;
}
}
return this.resolveTextNode(t);
},
/**
* Returns the time of the event. If the time is not included, the
* event is modified using the current time.
* @method getTime
* @param {Event} ev the event
* @return {Date} the time of the event
* @static
*/
var t = new Date().getTime();
try {
} catch(ex) {
return t;
}
}
},
/**
* Convenience method for stopPropagation + preventDefault
* @method stopEvent
* @param {Event} ev the event
* @static
*/
this.stopPropagation(ev);
this.preventDefault(ev);
},
/**
* Stops event propagation
* @method stopPropagation
* @param {Event} ev the event
* @static
*/
stopPropagation: function(ev) {
if (ev.stopPropagation) {
} else {
ev.cancelBubble = true;
}
},
/**
* Prevents the default behavior of the event
* @method preventDefault
* @param {Event} ev the event
* @static
*/
preventDefault: function(ev) {
if (ev.preventDefault) {
ev.preventDefault();
} else {
ev.returnValue = false;
}
},
/**
* Returns the event's target element. Safari sometimes provides
* a text node, and this is automatically resolved to the text
* node's parent so that it behaves like other browsers.
* @method getTarget
* @param {Event} ev the event
* @param {boolean} resolveTextNode when set to true the target's
* parent will be returned if the target is a
* text node. @deprecated, the text node is
* now resolved automatically
* @return {HTMLElement} the event's target
* @static
*/
return this.resolveTextNode(t);
},
/**
* In some cases, some browsers will return a text node inside
* the actual element that was targeted. This normalizes the
* return value for getTarget and getRelatedTarget.
* @method resolveTextNode
* @param {HTMLElement} node node to resolve
* @return {HTMLElement} the normized node
* @static
*/
resolveTextNode: function(node) {
return node.parentNode;
} else {
return node;
}
},
/**
* We cache elements bound by id because when the unload event
* fires, we can no longer use document.getElementById
* @method getEl
* @static
* @private
* @deprecated Elements are not cached any longer
*/
}
};
/**
* Calls Y.Event.attach with the correct argument order
* @method removeListener
*/
if (data) {
if (override) {
}
}
a.push(COMPAT_ARG);
};
/**
* Calls Y.Event.detach with the correct argument order
* @method addListener
*/
// Y.log('addListener:');
// Y.log(Y.Array(arguments, 0, true), 1);
// var a = Y.Array(arguments, 0, true), el = a.shift();
// a.splice(2, 0, el);
// return Y.Event.attach.apply(Y.Event, a);
if (data) {
if (override) {
}
}
a.push(COMPAT_ARG);
};
};
};
var a = Y.Array(arguments, 0, true);
a.unshift('event:ready');
};
//debugger;
var o = {
// signature: signature || CE.LIST
};
};
});
/**
* Subscriber listener sigature constant. The LIST type returns three
* parameters: the event type, the array of args passed to fire, and
* the optional custom object
* @property YAHOO.util.CustomEvent.LIST
* @static
* @type int
*/
/**
* Subscriber listener sigature constant. The FLAT type returns two
* parameters: the first argument passed to fire and the optional
* custom object
* @property YAHOO.util.CustomEvent.FLAT
* @static
* @type int
*/
var EP = function() {
//console.log('Compat CustomEvent constructor executed: ' + this._yuid);
if (!this._yuievt) {
this.__yuiepinit = function() {};
}
};
createEvent: function(type, o) {
o = o || {};
},
a = Y.Array(arguments);
// a[2] = override;
// a[1] = obj;
}
},
},
}
});
}
var propertyCache = {};
var patterns = {
};
var hyphenToCamel = function(property) {
return property; // no hyphens
}
return propertyCache[property];
}
}
return converted;
//return property.replace(/-([a-z])/gi, function(m0, m1) {return m1.toUpperCase()}) // cant use function as 2nd arg yet due to safari bug
};
var Dom = {
if (el) {
return el;
}
}
var c = [];
}
return c;
}
return el; // some other object, just pass it back
}
return null;
},
},
inDocument: function(el) {
},
return false;
}
if (args) {
}
if (args) {
} else {
}
};
}
var collection = [];
}
return collection;
},
// 2.x returns false if already present
return false;
}
return true;
},
// 2.x returns false if not present
return false;
}
return true;
},
// 2.x returns false if no newClass or same as oldClass
return false;
}
return true;
},
var nodes = [];
if (root) {
}
return nodes;
},
var nodes = [];
if (root) {
}
return nodes;
},
}
if (el) {
}
return id;
},
return false;
}
},
});
},
});
}
};
};
};
var wrapped = {
},
}
};
var batched = {
};
};
});
this.top = t;
this[1] = t;
this.right = r;
this.bottom = b;
this.left = l;
this[0] = l;
};
// this.logger.debug("does " + this + " contain " + region + " ... " + ret);
};
};
if (b >= t && r >= l) {
} else {
return null;
}
};
};
return ( "Region {" +
"top: " + this.top +
", right: " + this.right +
", bottom: " + this.bottom +
", left: " + this.left +
"}" );
};
};
y = x[1]; // dont blow away x yet
x = x[0];
}
};