angular-vertilize
angular-vertilize copied to clipboard
angular-vertilize requires jQuery
This factoid should probably be mentioned in the documentation. Our project is jquery-free :)
This function is required: element.outerWidth()
:+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();
};
:+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);
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 :(
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
+1
We also have a project without jQuery... Any progress on this?
https://stackoverflow.com/a/9619396/2073920