Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 26c8035

Browse files
Fixed trim 'data-' prefix
The property 'string' was forgoten
1 parent 772b809 commit 26c8035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ define(function (require, exports, module) {
4040
}
4141

4242
// Trim the 'data-' prefix
43-
if (token.indexOf('data-')===0) {
44-
token = token.substr(5);
43+
if (token.string.indexOf('data-')===0) {
44+
token.string = token.string.substr(5);
4545
}
4646

4747
return token.string.replace(/\-\w/g, function(x){ return x.charAt(1).toUpperCase(); });

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /