angular-vertilize icon indicating copy to clipboard operation
angular-vertilize copied to clipboard

angular-vertilize requires jQuery

Open subeebot opened this issue 9 years ago • 6 comments

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

This function is required: element.outerWidth()

subeebot avatar Oct 26 '15 13:10 subeebot

:+1:

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();
        };

jakefreeberg avatar Nov 25 '15 16:11 jakefreeberg

:+1:

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);

designbyadrian avatar Mar 12 '16 14:03 designbyadrian

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 :(

illepic avatar Apr 07 '16 22:04 illepic

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

stebaps avatar May 03 '16 15:05 stebaps

+1

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

RobbertWolfs avatar Jun 22 '16 06:06 RobbertWolfs

https://stackoverflow.com/a/9619396/2073920

armujahid avatar Nov 01 '17 11:11 armujahid