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

$.width() throws error #11

Closed
xrstf opened this issue Nov 27, 2011 · 1 comment
Closed

$.width() throws error #11

xrstf opened this issue Nov 27, 2011 · 1 comment

Comments

@xrstf
Copy link

xrstf commented Nov 27, 2011

I just downloaded version 2.0 (cc4cff1) and tried to compute the width of some DOM elements.

Browser: Chrome 15 on Windows 7

My code:

$('a').width(20);

I've included jquip.js, jquip.events.css and jquip.css.js right before the closing body tag of a simple HTML5 page.

Expected:

All links should have width:20px

Actual result:

Uncaught TypeError: Object #<$> has no method 'css'

Seems like the reference to this.css is broken:

// jquip.css.js line 164
return this.css(type, typeof size === "string" ? size : size + "px");

Greetings,
Christoph

@mythz
Copy link
Owner

mythz commented Nov 28, 2011

yep, was a problem with last nights refactor to get jquip to play nice with Google's Closure Compiler advanced mode. Should be fixed now.

thx for reporting!

@mythz mythz closed this as completed Nov 28, 2011
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