mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-11-04 00:03:15 -05:00 
			
		
		
		
	Switch to using JSCS for the indentation check.
This commit is contained in:
		
							parent
							
								
									299f985e5d
								
							
						
					
					
						commit
						537e10033e
					
				@ -3,7 +3,6 @@
 | 
			
		||||
  "curly"    : true,
 | 
			
		||||
  "eqeqeq"   : true,
 | 
			
		||||
  "immed"    : true,
 | 
			
		||||
  "indent": 2,
 | 
			
		||||
  "newcap"   : true,
 | 
			
		||||
  "noarg"    : true,
 | 
			
		||||
  "node"     : true,
 | 
			
		||||
 | 
			
		||||
@ -1,15 +1,16 @@
 | 
			
		||||
{
 | 
			
		||||
  "disallowKeywords": ["with"],
 | 
			
		||||
  "requireLeftStickedOperators": [","],
 | 
			
		||||
  "disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
 | 
			
		||||
  "disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
 | 
			
		||||
  "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"],
 | 
			
		||||
  "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
 | 
			
		||||
  "requireLeftStickedOperators": [","],
 | 
			
		||||
  "requireLineFeedAtFileEnd": true,
 | 
			
		||||
  "requireRightStickedOperators": ["!"],
 | 
			
		||||
  "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
 | 
			
		||||
  "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
 | 
			
		||||
  "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
 | 
			
		||||
  "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
 | 
			
		||||
  "validateIndentation": 2,
 | 
			
		||||
  "validateLineBreaks": "LF"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -7,7 +7,6 @@
 | 
			
		||||
  "eqeqeq"   : false,
 | 
			
		||||
  "eqnull"   : true,
 | 
			
		||||
  "expr"     : true,
 | 
			
		||||
  "indent"   : 2,
 | 
			
		||||
  "laxbreak" : true,
 | 
			
		||||
  "quotmark" : "single",
 | 
			
		||||
  "validthis": true
 | 
			
		||||
 | 
			
		||||
@ -273,8 +273,7 @@ $(function () {
 | 
			
		||||
  test('should show tooltip with delegate selector on click', function () {
 | 
			
		||||
    var div = $('<div><a href="#" rel="tooltip" title="Another tooltip"></a></div>')
 | 
			
		||||
    var tooltip = div.appendTo('#qunit-fixture')
 | 
			
		||||
                     .tooltip({ selector: 'a[rel=tooltip]',
 | 
			
		||||
                                trigger: 'click' })
 | 
			
		||||
                     .tooltip({ selector: 'a[rel=tooltip]', trigger: 'click' })
 | 
			
		||||
    div.find('a').trigger('click')
 | 
			
		||||
    ok($('.tooltip').is('.fade.in'), 'tooltip is faded in')
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user