mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
cleaner way of preventing double click events + clean up tests for jshint
This commit is contained in:
@@ -81,19 +81,19 @@ $(function () {
|
||||
})
|
||||
|
||||
test("should check for closest matching toggle", function () {
|
||||
var group = '<div class="btn-group" data-toggle="buttons"> \
|
||||
<label class="btn btn-primary active"> \
|
||||
<input type="radio" name="options" id="option1" checked="true"> Option 1 \
|
||||
</label> \
|
||||
<label class="btn btn-primary"> \
|
||||
<input type="radio" name="options" id="option2"> Option 2 \
|
||||
</label> \
|
||||
<label class="btn btn-primary"> \
|
||||
<input type="radio" name="options" id="option3"> Option 3 \
|
||||
</label> \
|
||||
</div>'
|
||||
var group = '<div class="btn-group" data-toggle="buttons">' +
|
||||
'<label class="btn btn-primary active">' +
|
||||
'<input type="radio" name="options" id="option1" checked="true"> Option 1' +
|
||||
'</label>' +
|
||||
'<label class="btn btn-primary">' +
|
||||
'<input type="radio" name="options" id="option2"> Option 2' +
|
||||
'</label>' +
|
||||
'<label class="btn btn-primary">' +
|
||||
'<input type="radio" name="options" id="option3"> Option 3' +
|
||||
'</label>' +
|
||||
'</div>'
|
||||
|
||||
var group = $(group)
|
||||
group = $(group)
|
||||
|
||||
var btn1 = $(group.children()[0])
|
||||
var btn2 = $(group.children()[1])
|
||||
|
Reference in New Issue
Block a user