]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use a space before functions' bracket consistently. 11745/head
authorXhmikosR <xhmikosr@users.sourceforge.net>
Fri, 6 Dec 2013 10:23:08 +0000 (12:23 +0200)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Fri, 6 Dec 2013 10:43:48 +0000 (12:43 +0200)
js/tests/unit/popover.js
js/tests/unit/tab.js
js/tests/unit/tooltip.js

index a57c787b8022f47d45c50f322ed47ce5f9c8edc2..2a11e0fdfc2a454969333751b9131bec4d4f4c26 100644 (file)
@@ -118,7 +118,7 @@ $(function () {
       })
 
       test("should destroy popover", function () {
-        var popover = $('<div/>').popover({trigger: 'hover'}).on('click.foo', function (){})
+        var popover = $('<div/>').popover({trigger: 'hover'}).on('click.foo', function () {})
         ok(popover.data('bs.popover'), 'popover has data')
         ok($._data(popover[0], 'events').mouseover && $._data(popover[0], 'events').mouseout, 'popover has hover event')
         ok($._data(popover[0], 'events').click[0].namespace == 'foo', 'popover has extra click.foo event')
index 18aab7bd779e44b51c4052102ed55af022a695f1..81226281293ed2cb492c04e78d2376d4cd36b0c9 100644 (file)
@@ -76,9 +76,9 @@ $(function () {
           + '</ul>'
 
         $(dropHTML).find('ul>li:first a').tab('show').end()
-          .find('ul>li:last a').on('show', function (event){
+          .find('ul>li:last a').on('show', function (event) {
             equal(event.relatedTarget.hash, "#1-1")
-          }).on('shown', function (event){
+          }).on('shown', function (event) {
             equal(event.relatedTarget.hash, "#1-1")
           }).tab('show')
       })
index f589f3deaed46bcd160ad5c3fb3bd4bc9e7135bc..2139dc8117dcb8bc313f3c87015b49364891cac9 100644 (file)
@@ -258,7 +258,7 @@ $(function () {
       })
 
       test("should destroy tooltip", function () {
-        var tooltip = $('<div/>').tooltip().on('click.foo', function (){})
+        var tooltip = $('<div/>').tooltip().on('click.foo', function () {})
         ok(tooltip.data('bs.tooltip'), 'tooltip has data')
         ok($._data(tooltip[0], 'events').mouseover && $._data(tooltip[0], 'events').mouseout, 'tooltip has hover event')
         ok($._data(tooltip[0], 'events').click[0].namespace == 'foo', 'tooltip has extra click.foo event')
@@ -297,7 +297,7 @@ $(function () {
         tooltip.tooltip('hide')
       })
 
-      test("should place tooltip inside window", function (){
+      test("should place tooltip inside window", function () {
         var container = $("<div />").appendTo("body")
             .css({position: "absolute", width: 200, height: 200, bottom: 0, left: 0})
           , tooltip = $("<a href='#' title='Very very very very very very very very long tooltip'>Hover me</a>")
@@ -308,7 +308,7 @@ $(function () {
 
         stop()
 
-        setTimeout(function (){
+        setTimeout(function () {
           ok($(".tooltip").offset().left >= 0)
 
           start()
@@ -316,7 +316,7 @@ $(function () {
         }, 100)
       })
 
-      test("should place tooltip on top of element", function (){
+      test("should place tooltip on top of element", function () {
         var container = $("<div />").appendTo("body")
               .css({position: "absolute", bottom: 0, left: 0, textAlign: "right", width: 300, height: 300})
             , p = $("<p style='margin-top:200px' />").appendTo(container)
@@ -328,7 +328,7 @@ $(function () {
 
         stop()
 
-        setTimeout(function (){
+        setTimeout(function () {
           var tooltip = container.find(".tooltip")
 
           start()
@@ -337,7 +337,7 @@ $(function () {
         }, 100)
       })
 
-      test("should add position class before positioning so that position-specific styles are taken into account", function (){
+      test("should add position class before positioning so that position-specific styles are taken into account", function () {
         $("head").append('<style> .tooltip.right { white-space: nowrap; } .tooltip.right .tooltip-inner { max-width: none; } </style>')
 
         var container = $("<div />").appendTo("body")