1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

fix some jshint/coffeelint warnings

This commit is contained in:
Aidan Feldman 2013-11-29 18:08:27 -05:00
parent 9dc11f09e7
commit edbcc1ca6a

View File

@ -10,16 +10,16 @@ class Choosealicense
# Selects the content of a given element
selectText: (element) ->
if document.body.createTextRange
range = document.body.createTextRange();
range.moveToElementText(element);
range.select();
range = document.body.createTextRange()
range.moveToElementText(element)
range.select()
else if window.getSelection
selection = window.getSelection()
range = document.createRange()
range.selectNodeContents(element)
selection.removeAllRanges();
selection.addRange(range);
selection.removeAllRanges()
selection.addRange(range)
# Qtip position attributes for tooltips
qtip_position: