Closed seajones closed 11 years ago
Just using this code:
R.create({ "prop": "width", "prefix": "src- src", "breakpoints": [320, 481, 641, 961, 1025, 1281] });
Where R is within a closure, and alias to Response.
R
Response
If the prefix property reads "src- src" (to make data-src320 and data-src-320 work for example) it works fine, but if the prefixes are swapped around thus:
"src- src"
data-src320
data-src-320
R.create({ "prop": "width", "prefix": "src src-", "breakpoints": [320, 481, 641, 961, 1025, 1281] });
The src attributes, when changed by Response, are changed to read 'null'
Just a little thing, and mostly I'm posting this so users can spot this issue if it occurs for them.
Just using this code:
Where
R
is within a closure, and alias toResponse
.If the prefix property reads
"src- src"
(to makedata-src320
anddata-src-320
work for example) it works fine, but if the prefixes are swapped around thus:The src attributes, when changed by Response, are changed to read 'null'
Just a little thing, and mostly I'm posting this so users can spot this issue if it occurs for them.