moocanvas icon indicating copy to clipboard operation
moocanvas copied to clipboard

MooCanvas breaks with MooTools 1.2.3

Open shaunfreeman opened this issue 15 years ago • 0 comments

the $.element is no longer defined in MooTools 1.2.3 and there breaks MooCanvas if using MooTools 1.2.3

I have temporally fixed this by defining $.element in Canvas.js:

$.element = function(el, nocash){
    $uid(el);
    if (!nocash && !el.$family && !(/^object|embed$/i).test(el.tagName)){
        var proto = Element.Prototype;
        for (var p in proto) el[p] = proto[p];
    };
    return el;
};

just before: $.Element = $.element;

shaunfreeman avatar Jun 20 '09 11:06 shaunfreeman