@@ -10,7 +10,6 @@ Let's establish the vocabulary used in this script, so that we speak the
10
10
same language:
11
11
12
12
- The text input element is "input",
13
- - The default text in the input is "placeholder",
14
13
- The box that contains a list of choices is "box",
15
14
- Each result in the "autocomplete" is a "choice",
16
15
- With a capital A, "Autocomplete", is the class or an instance of the
@@ -138,9 +137,6 @@ yourlabs.Autocomplete = function (input) {
138
137
// purposes.
139
138
this . value = '' ;
140
139
141
- // When the input is empty, show this text.
142
- this . placeholder = 'type your search here' ;
143
-
144
140
/*
145
141
It is possible to wait until a certain number of characters have been
146
142
typed in the input before making a request to the server, to limit the
@@ -252,9 +248,6 @@ the constructor, setup is done in this method. This allows to:
252
248
- and *then* setup the instance.
253
249
*/
254
250
yourlabs . Autocomplete . prototype . initialize = function ( ) {
255
- // Set the HTML placeholder attribute on the input.
256
- this . input . attr ( 'placeholder' , this . placeholder ) ;
257
-
258
251
this . input
259
252
. on ( 'blur.autocomplete' , $ . proxy ( this . inputBlur , this ) )
260
253
. on ( 'click.autocomplete' , $ . proxy ( this . inputClick , this ) )
0 commit comments