Skip to content

Instantly share code, notes, and snippets.

@fflorent
Created June 24, 2011 09:43
Show Gist options
  • Save fflorent/1044507 to your computer and use it in GitHub Desktop.
Save fflorent/1044507 to your computer and use it in GitHub Desktop.
[Oryx] Delete Event Raiser Hack
(function(dc){
var proxy = dc.prototype.execute;
dc.prototype.execute = function(){
var StopPropagationException = function(){};
var event = {
type: "shapedeleted",
shapes:this.shapesAsJson,
dockers:this.dockers,
cancel: false
};
this.facade.raiseEvent(event);
if(!event.cancel)
proxy.apply(this, arguments);
};
})(ORYX.Plugins.Edit.DeleteCommand);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment