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

Commit

Permalink
Merge pull request #21 from sumocoders/convert-coffeescript-to-es6
Browse files Browse the repository at this point in the history
Remove coffee script and convert it to ES6
  • Loading branch information
Katrienvh authored Aug 9, 2017
2 parents fa58105 + 86d6d43 commit 3425739
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 259 deletions.
29 changes: 0 additions & 29 deletions Resources/assets/coffee/autocomplete.coffee

This file was deleted.

230 changes: 0 additions & 230 deletions Resources/assets/coffee/charts.coffee

This file was deleted.

40 changes: 40 additions & 0 deletions Resources/assets/js/AutoComplete.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
export class AutoComplete {
constructor () {
this.initAutoComplete()
}

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

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

window.autoComplete = new AutoComplete()
Loading

0 comments on commit 3425739

Please sign in to comment.