Skip to content

Commit 2c64736

Browse files
committed
Fix typos.
1 parent c93a8b5 commit 2c64736

File tree

12 files changed

+28
-28
lines changed

12 files changed

+28
-28
lines changed

src/bloodhound/bloodhound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var Bloodhound = (function() {
3333
queryTokenizer: o.queryTokenizer
3434
});
3535

36-
// hold off on intialization if the intialize option was explicitly false
36+
// hold off on initialization if the initialize option was explicitly false
3737
o.initialize !== false && this.initialize();
3838
}
3939

src/bloodhound/options_parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ var oParser = (function() {
131131
}
132132

133133
else {
134-
prepare = idenityPrepare;
134+
prepare = identityPrepare;
135135
}
136136

137137
return prepare;
@@ -146,7 +146,7 @@ var oParser = (function() {
146146
return settings;
147147
}
148148

149-
function idenityPrepare(query, settings) {
149+
function identityPrepare(query, settings) {
150150
return settings;
151151
}
152152
}

src/typeahead/default_menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var DefaultMenu = (function() {
6666

6767
_show: function show() {
6868
// can't use jQuery#show because $node is a span element we want
69-
// display: block; not dislay: inline;
69+
// display: block; not display: inline;
7070
this.$node.css('display', 'block');
7171
}
7272
});

src/typeahead/typeahead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ var Typeahead = (function() {
111111
if (_.isMsie() && (isActive || hasActive)) {
112112
$e.preventDefault();
113113
// stop immediate in order to prevent Input#_onBlur from
114-
// getting exectued
114+
// getting executed
115115
$e.stopImmediatePropagation();
116116
_.defer(function() { $input.focus(); });
117117
}

test/bloodhound/bloodhound_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Bloodhound', function() {
2424
spyOn(this.bloodhound, '_initialize').andCallThrough();
2525
});
2626

27-
it('should not initialize if intialize option is false', function() {
27+
it('should not initialize if initialize option is false', function() {
2828
expect(this.bloodhound._initialize).not.toHaveBeenCalled();
2929
});
3030

@@ -38,7 +38,7 @@ describe('Bloodhound', function() {
3838
expect(this.bloodhound._initialize.callCount).toBe(1);
3939
});
4040

41-
it('should reinitialize if reintialize flag is true', function() {
41+
it('should reinitialize if reinitialize flag is true', function() {
4242
var p1, p2;
4343

4444
p1 = this.bloodhound.initialize();

test/bloodhound/options_parser_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('options parser', function() {
8484
expect(o.prefetch.cache).toBe(true);
8585
});
8686

87-
it('should default transform to identiy function', function() {
87+
it('should default transform to identity function', function() {
8888
var o = prefetch();
8989
expect(o.prefetch.transform('foo')).toBe('foo');
9090
});
@@ -99,7 +99,7 @@ describe('options parser', function() {
9999
expect(o.prefetch.transport).toBe($.ajax);
100100
});
101101

102-
it('should prepend verison to thumbprint', function() {
102+
it('should prepend version to thumbprint', function() {
103103
var o = prefetch();
104104
expect(o.prefetch.thumbprint).toBe('%VERSION%');
105105

@@ -137,7 +137,7 @@ describe('options parser', function() {
137137
expect(build({ remote: '/remote' }).remote).toBeDefined();
138138
});
139139

140-
it('should default transform to identiy function', function() {
140+
it('should default transform to identity function', function() {
141141
var o = remote();
142142
expect(o.remote.transform('foo')).toBe('foo');
143143
});
@@ -147,7 +147,7 @@ describe('options parser', function() {
147147
expect(o.remote.transport).toBe($.ajax);
148148
});
149149

150-
it('should default limiter to debouce', function() {
150+
it('should default limiter to debounce', function() {
151151
var o = remote();
152152
expect(o.remote.limiter.name).toBe('debounce');
153153
});

test/typeahead/dataset_spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('Dataset', function() {
104104
expect(this.dataset.$el).not.toContainText('one');
105105
});
106106

107-
it('should ignore subesequent invocations of sync', function() {
107+
it('should ignore subsequent invocations of sync', function() {
108108
this.source.andCallFake(multipleSync);
109109
this.dataset.update('woah');
110110

@@ -148,7 +148,7 @@ describe('Dataset', function() {
148148
expect(spy).not.toHaveBeenCalled();
149149
});
150150

151-
it('should trigger asyncCanceled when pending aysnc is canceled', function() {
151+
it('should trigger asyncCanceled when pending async is canceled', function() {
152152
var spy = jasmine.createSpy();
153153

154154
this.dataset.async = true;
@@ -182,7 +182,7 @@ describe('Dataset', function() {
182182
});
183183
});
184184

185-
it('should trigger asyncReceived when aysnc is received', function() {
185+
it('should trigger asyncReceived when async is received', function() {
186186
var spy = jasmine.createSpy();
187187

188188
this.dataset.async = true;

test/typeahead/input_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ describe('Input', function() {
145145
expect(spy).toHaveBeenCalled();
146146
});
147147

148-
it('should prevent default if no modifers were pressed', function() {
148+
it('should prevent default if no modifiers were pressed', function() {
149149
var $e = simulateKeyEvent(this.$input, 'keydown', KEYS.up);
150150

151151
expect($e.preventDefault).toHaveBeenCalled();
152152
});
153153

154-
it('should not prevent default if modifers were pressed', function() {
154+
it('should not prevent default if modifiers were pressed', function() {
155155
var $e = simulateKeyEvent(this.$input, 'keydown', KEYS.up, true);
156156

157157
expect($e.preventDefault).not.toHaveBeenCalled();
@@ -168,13 +168,13 @@ describe('Input', function() {
168168
expect(spy).toHaveBeenCalled();
169169
});
170170

171-
it('should prevent default if no modifers were pressed', function() {
171+
it('should prevent default if no modifiers were pressed', function() {
172172
var $e = simulateKeyEvent(this.$input, 'keydown', KEYS.down);
173173

174174
expect($e.preventDefault).toHaveBeenCalled();
175175
});
176176

177-
it('should not prevent default if modifers were pressed', function() {
177+
it('should not prevent default if modifiers were pressed', function() {
178178
var $e = simulateKeyEvent(this.$input, 'keydown', KEYS.down, true);
179179

180180
expect($e.preventDefault).not.toHaveBeenCalled();

test/typeahead/menu_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('Menu', function() {
137137
});
138138
});
139139

140-
describe('when asyncReceieved is triggered on a dataset', function() {
140+
describe('when asyncReceived is triggered on a dataset', function() {
141141
it('should propagate event', function() {
142142
var spy = jasmine.createSpy();
143143

test/typeahead/plugin_spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@ describe('$plugin', function() {
1616
});
1717
});
1818

19-
it('#enable should enable the typaahead', function() {
19+
it('#enable should enable the typeahead', function() {
2020
this.$input.typeahead('disable');
2121
expect(this.$input.typeahead('isEnabled')).toBe(false);
2222

2323
this.$input.typeahead('enable');
2424
expect(this.$input.typeahead('isEnabled')).toBe(true);
2525
});
2626

27-
it('#disable should disable the typaahead', function() {
27+
it('#disable should disable the typeahead', function() {
2828
this.$input.typeahead('enable');
2929
expect(this.$input.typeahead('isEnabled')).toBe(true);
3030

3131
this.$input.typeahead('disable');
3232
expect(this.$input.typeahead('isEnabled')).toBe(false);
3333
});
3434

35-
it('#activate should activate the typaahead', function() {
35+
it('#activate should activate the typeahead', function() {
3636
this.$input.typeahead('deactivate');
3737
expect(this.$input.typeahead('isActive')).toBe(false);
3838

3939
this.$input.typeahead('activate');
4040
expect(this.$input.typeahead('isActive')).toBe(true);
4141
});
4242

43-
it('#activate should fail to activate the typaahead if disabled', function() {
43+
it('#activate should fail to activate the typeahead if disabled', function() {
4444
this.$input.typeahead('deactivate');
4545
expect(this.$input.typeahead('isActive')).toBe(false);
4646
this.$input.typeahead('disable');
@@ -49,7 +49,7 @@ describe('$plugin', function() {
4949
expect(this.$input.typeahead('isActive')).toBe(false);
5050
});
5151

52-
it('#deactivate should deactivate the typaahead', function() {
52+
it('#deactivate should deactivate the typeahead', function() {
5353
this.$input.typeahead('activate');
5454
expect(this.$input.typeahead('isActive')).toBe(true);
5555

0 commit comments

Comments
 (0)