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)
2015 年 7 月 30 日午後 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)
クローズされました:
2015 年 7 月 31 日午後 9:10
4
This topic was automatically closed after 24 hours. New replies are no longer allowed.