Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If prefix property ends with a hyphen, script changes src attrib to 'null' #21

Closed
seajones opened this issue Mar 14, 2013 · 1 comment
Closed

Comments

@seajones
Copy link

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.

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:

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.

@ryanve
Copy link
Owner

ryanve commented Jun 27, 2013

#25 is the same issue. Let's handle it there where there's more info.

@ryanve ryanve closed this as completed Jun 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants