Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Apply Standard JS code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Helin committed Jul 26, 2017
1 parent 218cfb3 commit 86d6d43
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 192 deletions.
63 changes: 31 additions & 32 deletions Resources/assets/js/AutoComplete.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
export class AutoComplete {

constructor() {
this.initAutoComplete();
constructor () {
this.initAutoComplete()
}

getData() {
getData () {
return [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
'ActionScript',
'AppleScript',
'Asp',
'BASIC',
'C',
'C++',
'Clojure',
'COBOL',
'ColdFusion',
'Erlang',
'Fortran',
'Groovy',
'Haskell',
'Java',
'JavaScript',
'Lisp',
'Perl',
'PHP',
'Python',
'Ruby',
'Scala',
'Scheme'
]
}

initAutoComplete() {
initAutoComplete () {
$('#autocomplete-example').autocomplete({
source: this.getData()
}
)}
source: this.getData()
})
}
}

new AutoComplete();
window.autoComplete = new AutoComplete()
Loading

0 comments on commit 86d6d43

Please sign in to comment.