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

rad.js and rad.min.js out of sync #4

Closed
aleemb opened this issue Aug 12, 2013 · 5 comments
Closed

rad.js and rad.min.js out of sync #4

aleemb opened this issue Aug 12, 2013 · 5 comments

Comments

@aleemb
Copy link

aleemb commented Aug 12, 2013

Strangely enough, bug #3 was only fixed in rad.min.js but not rad.js or maybe I am missing something?

@mattnish
Copy link
Owner

Sorry about the inconsistency @aleemb

Were you using the rad.js on the demo or github? The demo's rad.js might be outdated, since I may have only updated the minified version.

Thanks.

@mattnish
Copy link
Owner

If it's the demo's rad.js, I'll update it.

@mattnish
Copy link
Owner

@aleemb I just tested Rad.js and it seems to work just fine. I've re-copied the JS over to the demo again just to be sure it has the most updated version, but it should all be good.

https://primary-colored.5apps.com/

@aleemb
Copy link
Author

aleemb commented Aug 13, 2013

I was referring to the GitHub repo. In rad.js on line 62 you have:

var pWidth = this.adParent.width();
if(this.options.maxWidth){

In the rad.min.js you have:

var pWidth=this.adParent.width();
pWidth -= parseInt(this.adParent.parent().css("marginLeft").replace("px",""))+parseInt(this.adParent.parent().css("marginRight").replace("px",""));

That bit with the pWidget -= parseInt... is missing from rad.js

I realized this when I tried to minify rad.js myself as part of my css build process.

@mattnish
Copy link
Owner

Whoa, you're totally right. Sorry I missed that. I thought I updated it before.

Thanks for catching that bug. Great job.

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