// remove-resource.js
/*
   Copyright (c) 2011 Talis Inc, Some Rights Reserved
   Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
*/

(function($){

calli.removeResource = function(event) {
    event = calli.fixEvent(event);
    var node = event.target;
    var parents = $(node).add($(node).parents());
    for (var i=0; i<parents.length; i++) {
        if ($(parents[i]).is("[data-var-about],[data-var-resource],[data-var-href],[data-var-src],[typeof],[typeof='']")) {
            $(parents[i]).remove();
            return false;
        }
    }
    return true;
};

})(jQuery);


// remove-resource.js
/*
   Copyright (c) 2011 Talis Inc, Some Rights Reserved
   Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
*/

(function($){

    calli.removeResource = function(event) {
        event = calli.fixEvent(event);
        var node = event.target;
        var selector = "[data-var-about],[data-var-resource],[data-var-href],[data-var-src],[typeof],[typeof='']";
        if ($(node).is(selector)) {
            $(node).remove();
            return false;
        }
        var pNodes = $(node).parents(selector);
        if (pNodes.length) {
            $(pNodes[0]).remove();
            return false;
        }
        return true;
    }

})(jQuery);


Fix menu editor (resource removal) after jquery update.
Fix menu editor (resource removal) after jquery update.
