Hi,
Please could someone help me? I am trying to make use of Olmo's
excellent moocanvas (http://ibolmo.com/projects/moocanvas/), and have
it working nicely with v.1.2.1. However, I am developing for Joomla!,
which currently uses v.1.11, and so I am looking for a version which
works with the earlier version of mootools. Does anyone have such a
version available?
Failing this, I will try to adapt it myself. At present I am looking
for an equivalent to Array.link in this code:
initialize: function(){
var params = Array.link(arguments, {properties: Object.type,
element: $defined});
var props = $extend({width: 300, height: 150},
params.properties);
var el = (params.element ||
document.newElement('canvas')).set(props);
if (el.getContext) return el;
el.attachEvent('onpropertychange', this.changeproperty);
el.attachEvent('onresize', this.resize);
el.getContext = function(){
return this.context = this.context || new
CanvasRenderingContext2D(el);
};
return el.setStyles({
width: props.width,
height: props.height
});
}
Please could someone point me in the right direction?
Thanks, Mike