I am trying to use Panoramio's JavaScript API but it fails to display when the MooTools framework is used. Using Chrome's inspect feature on this jsFiddle reveals this error with the included JavaScript:
Uncaught SyntaxError: Invalid regular expression: /function (keys){
var obj = {}, length = Math.min(this.length, keys.length);
for (var i = 0; i < length; i++) obj[keys[i]] = this[i];
return obj;
}/: Nothing to repeat
The site I am trying to use the API on is a Joomla 2.5 one, hence the use of the MooTools framework. Changing the framework on the fiddle to jQuery or removing it entirely produces the pictures and the error does not appear.
I've looked at trying to incorporate jQuery's noConflict() function somehow and searched for a similar function for MooTools but have had no success.
Any suggestions to solve this would be greatly welcome. Or is it a limitation of Panoramio's JavaScript API itself?