Debbie-Leigh
August 16th, 2009, 07:29 PM
Hi,
I'm trying to use a javascript tabstrip script called aptabs, which uses prototype.js. However, prototype.js won't load properly, because the following error occurs in prototype.js:
destination is undefined
on the following line (3042):
destination[property] = value.methodize();
The function this line is in is:
function copy(methods, destination, onlyIfAbsent) {
onlyIfAbsent = onlyIfAbsent || false;
for (var property in methods) {
var value = methods[property];
if (!Object.isFunction(value)) continue;
if (!onlyIfAbsent || !(property in destination))
destination[property] = value.methodize();
}
}
I've tried using versions 1.6.0 all the way up to 1.6.1, but I still get the same error.
Can someone suggest what this error could be caused by and possible fixes?
Debbie
I'm trying to use a javascript tabstrip script called aptabs, which uses prototype.js. However, prototype.js won't load properly, because the following error occurs in prototype.js:
destination is undefined
on the following line (3042):
destination[property] = value.methodize();
The function this line is in is:
function copy(methods, destination, onlyIfAbsent) {
onlyIfAbsent = onlyIfAbsent || false;
for (var property in methods) {
var value = methods[property];
if (!Object.isFunction(value)) continue;
if (!onlyIfAbsent || !(property in destination))
destination[property] = value.methodize();
}
}
I've tried using versions 1.6.0 all the way up to 1.6.1, but I still get the same error.
Can someone suggest what this error could be caused by and possible fixes?
Debbie