The message in Developer Console:
Uncaught SyntaxError: Unexpected token ILLEGAL
Opera 30.0.1835.125
if (this.get('buffer') === selectedText) return;
// we need to retrieve the post data from the posts collection in the topic controller
const postStream = this.get('controllers.topic.model.postStream');
this.set('post', postStream.findLoadedPost(postId));
this.set('buffer', selectedText);
// create a marker element
const markerElement = document.createElement("span");
// containing a single invisible character
markerElement.appendChild(document.createTextNode("\u{feff}"));
// collapse the range at the beginning/end of the selection
range.collapse(!Discourse.Mobile.isMobileDevice);
// and insert it at the start of our selection range
range.insertNode(markerElement);
// retrieve the position of the marker
const markerOffset = $(markerElement).offset(),
$quoteButton = $('.quote-button');
إعجاب واحد (1)
I have quick fixed it for myself by replacing from "\u{feff}"
to ""
.
eviltrout
(Robin Ward)
30 يوليو 2015، 7:20م
3
I tried on the latest Opera on OSX and could not reproduce the bug. However the error seems to be that it doesn’t understand the ES6 unicode format, which we should be transpiling. I added it as an option to babel:
https://github.com/discourse/discourse/commit/3c742918fe581f0752d1cfd3d0995923a908674b
Could you upgrade to our latest and try again? It should be transpiled properly now.
3 إعجابات
codinghorror
(Jeff Atwood)
تم إغلاقه في
31 يوليو 2015، 9:10م
4
This topic was automatically closed after 24 hours. New replies are no longer allowed.