Created
June 24, 2011 09:43
-
-
Save fflorent/1044507 to your computer and use it in GitHub Desktop.
[Oryx] Delete Event Raiser Hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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