File tree 3 files changed +30
-8
lines changed
3 files changed +30
-8
lines changed Original file line number Diff line number Diff line change
1
+ root = true
2
+
3
+ [* ]
4
+ indent_style = tab
5
+ indent_size = 4
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [* .min.js ]
12
+ insert_final_newline = false
13
+
14
+ # It's not ideal to have 2 different styles, but this is just codifying what
15
+ # already existed in the project.
16
+ [* .{md,ts} ]
17
+ indent_style = space
18
+
19
+ # Standard style for GitHub workflow files
20
+ [* .yml ]
21
+ indent_style = space
22
+ indent_size = 2
Original file line number Diff line number Diff line change 8
8
"use strict" ;
9
9
10
10
/*global define*/
11
- if ( typeof module === 'object' && module . exports ) {
12
- module . exports = factory ( require ( './' ) ) ; // Node
13
- } else if ( typeof define === 'function' && define . amd ) {
11
+ if ( typeof module === 'object' && module . exports ) {
12
+ module . exports = factory ( require ( './' ) ) ; // Node
13
+ } else if ( typeof define === 'function' && define . amd ) {
14
14
define ( [ 'moment' ] , factory ) ; // AMD
15
15
} else {
16
16
factory ( root . moment ) ; // Browser
201
201
if ( a . population > b . population ) {
202
202
group . unshift ( a ) ;
203
203
} else if ( a . population === b . population && groupLeaders && groupLeaders [ a . name ] ) {
204
- group . unshift ( a ) ;
205
- } else {
204
+ group . unshift ( a ) ;
205
+ } else {
206
206
group . push ( a ) ;
207
207
}
208
208
foundGroup = true ;
Original file line number Diff line number Diff line change 159
159
} else if ( num >= arr [ len - 1 ] ) {
160
160
return - 1 ;
161
161
}
162
-
162
+
163
163
var mid ;
164
164
var lo = 0 ;
165
- var hi = len - 1 ;
165
+ var hi = len - 1 ;
166
166
while ( hi - lo > 1 ) {
167
167
mid = Math . floor ( ( lo + hi ) / 2 ) ;
168
168
if ( arr [ mid ] <= num ) {
173
173
}
174
174
return hi ;
175
175
}
176
-
176
+
177
177
Zone . prototype = {
178
178
_set : function ( unpacked ) {
179
179
this . name = unpacked . name ;
You can’t perform that action at this time.
0 commit comments