mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 21:00:10 +01:00
fix some jshint/coffeelint warnings
This commit is contained in:
parent
9dc11f09e7
commit
edbcc1ca6a
@ -10,16 +10,16 @@ class Choosealicense
|
|||||||
# Selects the content of a given element
|
# Selects the content of a given element
|
||||||
selectText: (element) ->
|
selectText: (element) ->
|
||||||
if document.body.createTextRange
|
if document.body.createTextRange
|
||||||
range = document.body.createTextRange();
|
range = document.body.createTextRange()
|
||||||
range.moveToElementText(element);
|
range.moveToElementText(element)
|
||||||
range.select();
|
range.select()
|
||||||
else if window.getSelection
|
else if window.getSelection
|
||||||
selection = window.getSelection()
|
selection = window.getSelection()
|
||||||
range = document.createRange()
|
range = document.createRange()
|
||||||
|
|
||||||
range.selectNodeContents(element)
|
range.selectNodeContents(element)
|
||||||
selection.removeAllRanges();
|
selection.removeAllRanges()
|
||||||
selection.addRange(range);
|
selection.addRange(range)
|
||||||
|
|
||||||
# Qtip position attributes for tooltips
|
# Qtip position attributes for tooltips
|
||||||
qtip_position:
|
qtip_position:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user