diff --git a/dist/display.es6.js b/dist/display.es6.js index 44e9032..a411156 100644 --- a/dist/display.es6.js +++ b/dist/display.es6.js @@ -484,32 +484,32 @@ class DisplayJS { } predict(array, val) { function main(valC) { - var first = array[0][0] - var second = array[1][0] - var firstVal = array[0][1] - var secondVal = array[1][1] - var a = (firstVal - secondVal) / (first - second) - var b = secondVal - (second * a) + const first = array[0][0]; + const second = array[1][0]; + const firstVal = array[0][1]; + const secondVal = array[1][1]; + const a = (firstVal - secondVal) / (first - second); + const b = secondVal - (second * a); return valC * a + b; } function patternMatching (array) { if (array.length > 2) { if (main(array[2][0]) == array[2][1]) { - return true + return true; } else { - return false + return false; } } else { - return true + return true; } } if (patternMatching(array)) { - return main(val) + return main(val); } else { - return "DisplayJS: Error, can't find any pattern." + return "DisplayJS: Error, can't find any pattern."; } } diff --git a/docs/index.html b/docs/index.html index 80f7483..b2c0294 100755 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ - DisplayJS - A simple framework for building ambitious UIs + DisplayJS - A simple JS framework for building ambitious UIs @@ -58,7 +58,7 @@

DisplayJS

DisplayJS

-

A simple framework for building ambitious UI, without thinking about how the text will be displayed.

+

A simple JavaScript framework for building ambitious UIs