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

angular-vertilize requires jQuery #10

Open
subeebot opened this issue Oct 26, 2015 · 6 comments
Open

angular-vertilize requires jQuery #10

subeebot opened this issue Oct 26, 2015 · 6 comments

Comments

@subeebot
Copy link

This factoid should probably be mentioned in the documentation. Our project is jquery-free :)

This function is required:
element.outerWidth()

@jakefreeberg
Copy link

👍

I load jQuery with jspm and ended up needing to do this:

//awful hack for angular-vertilize...
        angular.element.prototype.outerWidth = function() {
            return jQuery(this[0]).outerWidth();
        };
        angular.element.prototype.height = function() {
            return jQuery(this[0]).height();
        };

@designbyadrian
Copy link

👍

Shouldn't need to require JQuery. clone.height() is also a JQuery function!

I'm testing now to see if this could be a replacement:

myStyle = window.getComputedStyle(element[0]);
myWidth = parseInt(myStyle.getPropertyValue('width'),10);

@illepic
Copy link

illepic commented Apr 7, 2016

Chiming in here as well with the error:

TypeError: element.outerWidth is not a function

Since we do not use jQuery, we cannot use this directive :(

@stebaps
Copy link

stebaps commented May 3, 2016

Might be possible to use the following to get around the jQuery requirement? Haven't tried but it provides 'outerWidth' function.

http://quantumui.org/appdoc/documents/home/nojq

@RobbertWolfs
Copy link

+1

We also have a project without jQuery... Any progress on this?

@armujahid
Copy link

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

7 participants