import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
122
webdir/javascript/yui/yahoo/yahoo-debug.js
vendored
122
webdir/javascript/yui/yahoo/yahoo-debug.js
vendored
@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* The YAHOO object is the single global object used by YUI Library. It
|
||||
@ -88,6 +88,10 @@ if (typeof YAHOO == "undefined" || !YAHOO) {
|
||||
* </pre>
|
||||
* This fails because "long" is a future reserved word in ECMAScript
|
||||
*
|
||||
* For implementation code that uses YUI, do not create your components
|
||||
* in the namespaces created by the library. defined by YUI -- create
|
||||
* your own (YAHOO.util, YAHOO.widget, YAHOO.lang, YAHOO.env)
|
||||
*
|
||||
* @method namespace
|
||||
* @static
|
||||
* @param {String*} arguments 1-n namespaces to create
|
||||
@ -96,7 +100,7 @@ if (typeof YAHOO == "undefined" || !YAHOO) {
|
||||
YAHOO.namespace = function() {
|
||||
var a=arguments, o=null, i, j, d;
|
||||
for (i=0; i<a.length; i=i+1) {
|
||||
d=a[i].split(".");
|
||||
d=(""+a[i]).split(".");
|
||||
o=YAHOO;
|
||||
|
||||
// YAHOO is implied, so it is ignored if it is included
|
||||
@ -146,19 +150,29 @@ YAHOO.log = function(msg, cat, src) {
|
||||
* and a "build" property at minimum.
|
||||
*/
|
||||
YAHOO.register = function(name, mainClass, data) {
|
||||
var mods = YAHOO.env.modules;
|
||||
var mods = YAHOO.env.modules, m, v, b, ls, i;
|
||||
|
||||
if (!mods[name]) {
|
||||
mods[name] = { versions:[], builds:[] };
|
||||
mods[name] = {
|
||||
versions:[],
|
||||
builds:[]
|
||||
};
|
||||
}
|
||||
var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;
|
||||
|
||||
m = mods[name];
|
||||
v = data.version;
|
||||
b = data.build;
|
||||
ls = YAHOO.env.listeners;
|
||||
|
||||
m.name = name;
|
||||
m.version = v;
|
||||
m.build = b;
|
||||
m.versions.push(v);
|
||||
m.builds.push(b);
|
||||
m.mainClass = mainClass;
|
||||
|
||||
// fire the module load listeners
|
||||
for (var i=0;i<ls.length;i=i+1) {
|
||||
for (i=0;i<ls.length;i=i+1) {
|
||||
ls[i](m);
|
||||
}
|
||||
// label the main class
|
||||
@ -308,11 +322,20 @@ YAHOO.env.ua = function() {
|
||||
* @property air
|
||||
* @type float
|
||||
*/
|
||||
air: 0
|
||||
air: 0,
|
||||
|
||||
};
|
||||
/**
|
||||
* Google Caja version number or 0.
|
||||
* @property caja
|
||||
* @type float
|
||||
*/
|
||||
caja: 0
|
||||
|
||||
var ua=navigator.userAgent, m;
|
||||
},
|
||||
|
||||
ua = navigator.userAgent,
|
||||
|
||||
m;
|
||||
|
||||
// Modern KHTML browsers should qualify as Safari X-Grade
|
||||
if ((/KHTML/).test(ua)) {
|
||||
@ -365,6 +388,11 @@ YAHOO.env.ua = function() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m=ua.match(/Caja\/([^\s]*)/);
|
||||
if (m&&m[1]) {
|
||||
o.caja=parseFloat(m[1]);
|
||||
}
|
||||
|
||||
return o;
|
||||
}();
|
||||
@ -379,6 +407,7 @@ YAHOO.env.ua = function() {
|
||||
*/
|
||||
(function() {
|
||||
YAHOO.namespace("util", "widget", "example");
|
||||
/*global YAHOO_config*/
|
||||
if ("undefined" !== typeof YAHOO_config) {
|
||||
var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;
|
||||
if (l) {
|
||||
@ -405,29 +434,26 @@ YAHOO.lang = YAHOO.lang || {};
|
||||
|
||||
(function() {
|
||||
|
||||
|
||||
var L = YAHOO.lang,
|
||||
|
||||
ARRAY_TOSTRING = '[object Array]',
|
||||
FUNCTION_TOSTRING = '[object Function]',
|
||||
OP = Object.prototype,
|
||||
|
||||
// ADD = ["toString", "valueOf", "hasOwnProperty"],
|
||||
ADD = ["toString", "valueOf"],
|
||||
|
||||
OB = {
|
||||
|
||||
/**
|
||||
* Determines whether or not the provided object is an array.
|
||||
* Testing typeof/instanceof/constructor of arrays across frame
|
||||
* boundaries isn't possible in Safari unless you have a reference
|
||||
* to the other frame to test against its Array prototype. To
|
||||
* handle this case, we test well-known array properties instead.
|
||||
* properties.
|
||||
* Determines wheather or not the provided object is an array.
|
||||
* @method isArray
|
||||
* @param {any} o The object being testing
|
||||
* @return {boolean} the result
|
||||
*/
|
||||
isArray: function(o) {
|
||||
if (o) {
|
||||
return L.isNumber(o.length) && L.isFunction(o.splice);
|
||||
}
|
||||
return false;
|
||||
return OP.toString.apply(o) === ARRAY_TOSTRING;
|
||||
},
|
||||
|
||||
/**
|
||||
@ -441,13 +467,24 @@ var L = YAHOO.lang,
|
||||
},
|
||||
|
||||
/**
|
||||
* Determines whether or not the provided object is a function
|
||||
* Determines whether or not the provided object is a function.
|
||||
* Note: Internet Explorer thinks certain functions are objects:
|
||||
*
|
||||
* var obj = document.createElement("object");
|
||||
* YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
|
||||
*
|
||||
* var input = document.createElement("input"); // append to body
|
||||
* YAHOO.lang.isFunction(input.focus) // reports false in IE
|
||||
*
|
||||
* You will have to implement additional tests if these functions
|
||||
* matter to you.
|
||||
*
|
||||
* @method isFunction
|
||||
* @param {any} o The object being testing
|
||||
* @return {boolean} the result
|
||||
*/
|
||||
isFunction: function(o) {
|
||||
return typeof o === 'function';
|
||||
return OP.toString.apply(o) === FUNCTION_TOSTRING;
|
||||
},
|
||||
|
||||
/**
|
||||
@ -513,9 +550,13 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
* @private
|
||||
*/
|
||||
_IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
|
||||
for (var i=0;i<ADD.length;i=i+1) {
|
||||
var fname=ADD[i],f=s[fname];
|
||||
if (L.isFunction(f) && f!=Object.prototype[fname]) {
|
||||
var i, fname, f;
|
||||
for (i=0;i<ADD.length;i=i+1) {
|
||||
|
||||
fname = ADD[i];
|
||||
f = s[fname];
|
||||
|
||||
if (L.isFunction(f) && f!=OP[fname]) {
|
||||
r[fname]=f;
|
||||
}
|
||||
}
|
||||
@ -540,17 +581,17 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
throw new Error("extend failed, please check that " +
|
||||
"all dependencies are included.");
|
||||
}
|
||||
var F = function() {};
|
||||
var F = function() {}, i;
|
||||
F.prototype=superc.prototype;
|
||||
subc.prototype=new F();
|
||||
subc.prototype.constructor=subc;
|
||||
subc.superclass=superc.prototype;
|
||||
if (superc.prototype.constructor == Object.prototype.constructor) {
|
||||
if (superc.prototype.constructor == OP.constructor) {
|
||||
superc.prototype.constructor=superc;
|
||||
}
|
||||
|
||||
if (overrides) {
|
||||
for (var i in overrides) {
|
||||
for (i in overrides) {
|
||||
if (L.hasOwnProperty(overrides, i)) {
|
||||
subc.prototype[i]=overrides[i];
|
||||
}
|
||||
@ -586,14 +627,14 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
if (!s||!r) {
|
||||
throw new Error("Absorb failed, verify dependencies.");
|
||||
}
|
||||
var a=arguments, i, p, override=a[2];
|
||||
if (override && override!==true) { // only absorb the specified properties
|
||||
var a=arguments, i, p, overrideList=a[2];
|
||||
if (overrideList && overrideList!==true) { // only absorb the specified properties
|
||||
for (i=2; i<a.length; i=i+1) {
|
||||
r[a[i]] = s[a[i]];
|
||||
}
|
||||
} else { // take everything, overwriting only if the third parameter is true
|
||||
for (p in s) {
|
||||
if (override || !(p in r)) {
|
||||
if (overrideList || !(p in r)) {
|
||||
r[p] = s[p];
|
||||
}
|
||||
}
|
||||
@ -621,8 +662,8 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
throw new Error("Augment failed, verify dependencies.");
|
||||
}
|
||||
//var a=[].concat(arguments);
|
||||
var a=[r.prototype,s.prototype];
|
||||
for (var i=2;i<arguments.length;i=i+1) {
|
||||
var a=[r.prototype,s.prototype], i;
|
||||
for (i=2;i<arguments.length;i=i+1) {
|
||||
a.push(arguments[i]);
|
||||
}
|
||||
L.augmentObject.apply(this, a);
|
||||
@ -722,7 +763,8 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
*/
|
||||
substitute: function (s, o, f) {
|
||||
var i, j, k, key, v, meta, saved=[], token,
|
||||
DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}';
|
||||
DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
|
||||
dump;
|
||||
|
||||
|
||||
for (;;) {
|
||||
@ -760,14 +802,14 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
meta = meta || "";
|
||||
|
||||
// look for the keyword 'dump', if found force obj dump
|
||||
var dump = meta.indexOf(DUMP);
|
||||
dump = meta.indexOf(DUMP);
|
||||
if (dump > -1) {
|
||||
meta = meta.substring(4);
|
||||
}
|
||||
|
||||
// use the toString if it is not the Object toString
|
||||
// and the 'dump' meta info was not found
|
||||
if (v.toString===Object.prototype.toString||dump>-1) {
|
||||
if (v.toString===OP.toString || dump>-1) {
|
||||
v = L.dump(v, parseInt(meta, 10));
|
||||
} else {
|
||||
v = v.toString();
|
||||
@ -821,8 +863,8 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
* @return the new merged object
|
||||
*/
|
||||
merge: function() {
|
||||
var o={}, a=arguments;
|
||||
for (var i=0, l=a.length; i<l; i=i+1) {
|
||||
var o={}, a=arguments, l=a.length, i;
|
||||
for (i=0; i<l; i=i+1) {
|
||||
L.augmentObject(o, a[i], true);
|
||||
}
|
||||
return o;
|
||||
@ -921,7 +963,7 @@ return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
|
||||
* @param prop {string} the name of the property to test
|
||||
* @return {boolean} the result
|
||||
*/
|
||||
L.hasOwnProperty = (Object.prototype.hasOwnProperty) ?
|
||||
L.hasOwnProperty = (OP.hasOwnProperty) ?
|
||||
function(o, prop) {
|
||||
return o && o.hasOwnProperty(prop);
|
||||
} : function(o, prop) {
|
||||
@ -983,4 +1025,4 @@ YAHOO.augment = L.augmentProto;
|
||||
YAHOO.extend = L.extend;
|
||||
|
||||
})();
|
||||
YAHOO.register("yahoo", YAHOO, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("yahoo", YAHOO, {version: "2.7.0", build: "1799"});
|
||||
|
6
webdir/javascript/yui/yahoo/yahoo-min.js
vendored
6
webdir/javascript/yui/yahoo/yahoo-min.js
vendored
File diff suppressed because one or more lines are too long
122
webdir/javascript/yui/yahoo/yahoo.js
vendored
122
webdir/javascript/yui/yahoo/yahoo.js
vendored
@ -1,8 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.6.0
|
||||
version: 2.7.0
|
||||
*/
|
||||
/**
|
||||
* The YAHOO object is the single global object used by YUI Library. It
|
||||
@ -88,6 +88,10 @@ if (typeof YAHOO == "undefined" || !YAHOO) {
|
||||
* </pre>
|
||||
* This fails because "long" is a future reserved word in ECMAScript
|
||||
*
|
||||
* For implementation code that uses YUI, do not create your components
|
||||
* in the namespaces created by the library. defined by YUI -- create
|
||||
* your own (YAHOO.util, YAHOO.widget, YAHOO.lang, YAHOO.env)
|
||||
*
|
||||
* @method namespace
|
||||
* @static
|
||||
* @param {String*} arguments 1-n namespaces to create
|
||||
@ -96,7 +100,7 @@ if (typeof YAHOO == "undefined" || !YAHOO) {
|
||||
YAHOO.namespace = function() {
|
||||
var a=arguments, o=null, i, j, d;
|
||||
for (i=0; i<a.length; i=i+1) {
|
||||
d=a[i].split(".");
|
||||
d=(""+a[i]).split(".");
|
||||
o=YAHOO;
|
||||
|
||||
// YAHOO is implied, so it is ignored if it is included
|
||||
@ -146,19 +150,29 @@ YAHOO.log = function(msg, cat, src) {
|
||||
* and a "build" property at minimum.
|
||||
*/
|
||||
YAHOO.register = function(name, mainClass, data) {
|
||||
var mods = YAHOO.env.modules;
|
||||
var mods = YAHOO.env.modules, m, v, b, ls, i;
|
||||
|
||||
if (!mods[name]) {
|
||||
mods[name] = { versions:[], builds:[] };
|
||||
mods[name] = {
|
||||
versions:[],
|
||||
builds:[]
|
||||
};
|
||||
}
|
||||
var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;
|
||||
|
||||
m = mods[name];
|
||||
v = data.version;
|
||||
b = data.build;
|
||||
ls = YAHOO.env.listeners;
|
||||
|
||||
m.name = name;
|
||||
m.version = v;
|
||||
m.build = b;
|
||||
m.versions.push(v);
|
||||
m.builds.push(b);
|
||||
m.mainClass = mainClass;
|
||||
|
||||
// fire the module load listeners
|
||||
for (var i=0;i<ls.length;i=i+1) {
|
||||
for (i=0;i<ls.length;i=i+1) {
|
||||
ls[i](m);
|
||||
}
|
||||
// label the main class
|
||||
@ -308,11 +322,20 @@ YAHOO.env.ua = function() {
|
||||
* @property air
|
||||
* @type float
|
||||
*/
|
||||
air: 0
|
||||
air: 0,
|
||||
|
||||
};
|
||||
/**
|
||||
* Google Caja version number or 0.
|
||||
* @property caja
|
||||
* @type float
|
||||
*/
|
||||
caja: 0
|
||||
|
||||
var ua=navigator.userAgent, m;
|
||||
},
|
||||
|
||||
ua = navigator.userAgent,
|
||||
|
||||
m;
|
||||
|
||||
// Modern KHTML browsers should qualify as Safari X-Grade
|
||||
if ((/KHTML/).test(ua)) {
|
||||
@ -365,6 +388,11 @@ YAHOO.env.ua = function() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m=ua.match(/Caja\/([^\s]*)/);
|
||||
if (m&&m[1]) {
|
||||
o.caja=parseFloat(m[1]);
|
||||
}
|
||||
|
||||
return o;
|
||||
}();
|
||||
@ -379,6 +407,7 @@ YAHOO.env.ua = function() {
|
||||
*/
|
||||
(function() {
|
||||
YAHOO.namespace("util", "widget", "example");
|
||||
/*global YAHOO_config*/
|
||||
if ("undefined" !== typeof YAHOO_config) {
|
||||
var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;
|
||||
if (l) {
|
||||
@ -405,29 +434,26 @@ YAHOO.lang = YAHOO.lang || {};
|
||||
|
||||
(function() {
|
||||
|
||||
|
||||
var L = YAHOO.lang,
|
||||
|
||||
ARRAY_TOSTRING = '[object Array]',
|
||||
FUNCTION_TOSTRING = '[object Function]',
|
||||
OP = Object.prototype,
|
||||
|
||||
// ADD = ["toString", "valueOf", "hasOwnProperty"],
|
||||
ADD = ["toString", "valueOf"],
|
||||
|
||||
OB = {
|
||||
|
||||
/**
|
||||
* Determines whether or not the provided object is an array.
|
||||
* Testing typeof/instanceof/constructor of arrays across frame
|
||||
* boundaries isn't possible in Safari unless you have a reference
|
||||
* to the other frame to test against its Array prototype. To
|
||||
* handle this case, we test well-known array properties instead.
|
||||
* properties.
|
||||
* Determines wheather or not the provided object is an array.
|
||||
* @method isArray
|
||||
* @param {any} o The object being testing
|
||||
* @return {boolean} the result
|
||||
*/
|
||||
isArray: function(o) {
|
||||
if (o) {
|
||||
return L.isNumber(o.length) && L.isFunction(o.splice);
|
||||
}
|
||||
return false;
|
||||
return OP.toString.apply(o) === ARRAY_TOSTRING;
|
||||
},
|
||||
|
||||
/**
|
||||
@ -441,13 +467,24 @@ var L = YAHOO.lang,
|
||||
},
|
||||
|
||||
/**
|
||||
* Determines whether or not the provided object is a function
|
||||
* Determines whether or not the provided object is a function.
|
||||
* Note: Internet Explorer thinks certain functions are objects:
|
||||
*
|
||||
* var obj = document.createElement("object");
|
||||
* YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
|
||||
*
|
||||
* var input = document.createElement("input"); // append to body
|
||||
* YAHOO.lang.isFunction(input.focus) // reports false in IE
|
||||
*
|
||||
* You will have to implement additional tests if these functions
|
||||
* matter to you.
|
||||
*
|
||||
* @method isFunction
|
||||
* @param {any} o The object being testing
|
||||
* @return {boolean} the result
|
||||
*/
|
||||
isFunction: function(o) {
|
||||
return typeof o === 'function';
|
||||
return OP.toString.apply(o) === FUNCTION_TOSTRING;
|
||||
},
|
||||
|
||||
/**
|
||||
@ -513,9 +550,13 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
* @private
|
||||
*/
|
||||
_IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
|
||||
for (var i=0;i<ADD.length;i=i+1) {
|
||||
var fname=ADD[i],f=s[fname];
|
||||
if (L.isFunction(f) && f!=Object.prototype[fname]) {
|
||||
var i, fname, f;
|
||||
for (i=0;i<ADD.length;i=i+1) {
|
||||
|
||||
fname = ADD[i];
|
||||
f = s[fname];
|
||||
|
||||
if (L.isFunction(f) && f!=OP[fname]) {
|
||||
r[fname]=f;
|
||||
}
|
||||
}
|
||||
@ -540,17 +581,17 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
throw new Error("extend failed, please check that " +
|
||||
"all dependencies are included.");
|
||||
}
|
||||
var F = function() {};
|
||||
var F = function() {}, i;
|
||||
F.prototype=superc.prototype;
|
||||
subc.prototype=new F();
|
||||
subc.prototype.constructor=subc;
|
||||
subc.superclass=superc.prototype;
|
||||
if (superc.prototype.constructor == Object.prototype.constructor) {
|
||||
if (superc.prototype.constructor == OP.constructor) {
|
||||
superc.prototype.constructor=superc;
|
||||
}
|
||||
|
||||
if (overrides) {
|
||||
for (var i in overrides) {
|
||||
for (i in overrides) {
|
||||
if (L.hasOwnProperty(overrides, i)) {
|
||||
subc.prototype[i]=overrides[i];
|
||||
}
|
||||
@ -586,14 +627,14 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
if (!s||!r) {
|
||||
throw new Error("Absorb failed, verify dependencies.");
|
||||
}
|
||||
var a=arguments, i, p, override=a[2];
|
||||
if (override && override!==true) { // only absorb the specified properties
|
||||
var a=arguments, i, p, overrideList=a[2];
|
||||
if (overrideList && overrideList!==true) { // only absorb the specified properties
|
||||
for (i=2; i<a.length; i=i+1) {
|
||||
r[a[i]] = s[a[i]];
|
||||
}
|
||||
} else { // take everything, overwriting only if the third parameter is true
|
||||
for (p in s) {
|
||||
if (override || !(p in r)) {
|
||||
if (overrideList || !(p in r)) {
|
||||
r[p] = s[p];
|
||||
}
|
||||
}
|
||||
@ -621,8 +662,8 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
throw new Error("Augment failed, verify dependencies.");
|
||||
}
|
||||
//var a=[].concat(arguments);
|
||||
var a=[r.prototype,s.prototype];
|
||||
for (var i=2;i<arguments.length;i=i+1) {
|
||||
var a=[r.prototype,s.prototype], i;
|
||||
for (i=2;i<arguments.length;i=i+1) {
|
||||
a.push(arguments[i]);
|
||||
}
|
||||
L.augmentObject.apply(this, a);
|
||||
@ -722,7 +763,8 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
*/
|
||||
substitute: function (s, o, f) {
|
||||
var i, j, k, key, v, meta, saved=[], token,
|
||||
DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}';
|
||||
DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
|
||||
dump;
|
||||
|
||||
|
||||
for (;;) {
|
||||
@ -760,14 +802,14 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
meta = meta || "";
|
||||
|
||||
// look for the keyword 'dump', if found force obj dump
|
||||
var dump = meta.indexOf(DUMP);
|
||||
dump = meta.indexOf(DUMP);
|
||||
if (dump > -1) {
|
||||
meta = meta.substring(4);
|
||||
}
|
||||
|
||||
// use the toString if it is not the Object toString
|
||||
// and the 'dump' meta info was not found
|
||||
if (v.toString===Object.prototype.toString||dump>-1) {
|
||||
if (v.toString===OP.toString || dump>-1) {
|
||||
v = L.dump(v, parseInt(meta, 10));
|
||||
} else {
|
||||
v = v.toString();
|
||||
@ -821,8 +863,8 @@ return (o && (typeof o === 'object' || L.isFunction(o))) || false;
|
||||
* @return the new merged object
|
||||
*/
|
||||
merge: function() {
|
||||
var o={}, a=arguments;
|
||||
for (var i=0, l=a.length; i<l; i=i+1) {
|
||||
var o={}, a=arguments, l=a.length, i;
|
||||
for (i=0; i<l; i=i+1) {
|
||||
L.augmentObject(o, a[i], true);
|
||||
}
|
||||
return o;
|
||||
@ -921,7 +963,7 @@ return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
|
||||
* @param prop {string} the name of the property to test
|
||||
* @return {boolean} the result
|
||||
*/
|
||||
L.hasOwnProperty = (Object.prototype.hasOwnProperty) ?
|
||||
L.hasOwnProperty = (OP.hasOwnProperty) ?
|
||||
function(o, prop) {
|
||||
return o && o.hasOwnProperty(prop);
|
||||
} : function(o, prop) {
|
||||
@ -983,4 +1025,4 @@ YAHOO.augment = L.augmentProto;
|
||||
YAHOO.extend = L.extend;
|
||||
|
||||
})();
|
||||
YAHOO.register("yahoo", YAHOO, {version: "2.6.0", build: "1321"});
|
||||
YAHOO.register("yahoo", YAHOO, {version: "2.7.0", build: "1799"});
|
||||
|
Reference in New Issue
Block a user