Add Event.currentTargetView() and Event.targetView()

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-01-10 11:34:17 -08:00
parent 4dc7ade4e6
commit 3af97c4e38
2 changed files with 33 additions and 1 deletions

View File

@@ -74,3 +74,5 @@ $.fn.command = (args...) ->
@on(args...)
$.Event.prototype.abortKeyBinding = ->
$.Event.prototype.currentTargetView = -> $(this.currentTarget).view()
$.Event.prototype.targetView = -> $(this.target).view()