MDL-62497 javascript: fix truncate.js
authorRyan Wyllie <ryan@moodle.com>
Fri, 11 Jan 2019 05:53:10 +0000 (13:53 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 19 Jul 2019 06:12:49 +0000 (14:12 +0800)
commit78610b53c733f09c4f68c74e4bab26af94a9c570
tree8213bd7dab8111ea22c42be6e28c3dd0485e721c
parent195ea4480bf3532b6e5b5f8572c0c14880ed4be1
MDL-62497 javascript: fix truncate.js

There was some code in the charLengthAt function which was requiring
that the "this" context not be null however it was unnecessary
because it never uses "this" and for some reason it was being set to
null after the ES6 transpiling.
lib/amd/build/truncate.min.js
lib/amd/build/truncate.min.js.map
lib/amd/src/truncate.js