Restore $.fn.element property

We define element in certain space-pen views, but this makes it
available for all jQuery objects. Can’t remove it from the prototype.
This commit is contained in:
Nathan Sobo
2014-09-17 17:32:45 -06:00
parent df37d77895
commit 887a7bcaf4

View File

@@ -69,4 +69,6 @@ jQuery(document.body).on 'show.bs.tooltip', ({target}) ->
jQuery.fn.setTooltip.getKeystroke = getKeystroke
jQuery.fn.setTooltip.humanizeKeystrokes = humanizeKeystrokes
Object.defineProperty jQuery.fn, 'element', get: -> @[0]
module.exports = spacePen