_getDefaultPosition() {
// handle legacy classnames
- var position = this.$element[0].className.match(/\b(top|left|right|bottom)\b/g);
var elementClassName = this.$element[0].className;
if (this.$element[0] instanceof SVGElement) {
elementClassName = elementClassName.baseVal;
}
+ var position = elementClassName.match(/\b(top|left|right|bottom)\b/g);
return position ? position[0] : 'top';
- var position = elementClassName.match(/\b(top|left|right)\b/g);
- position = position ? position[0] : 'tp';
}
_getDefaultAlignment() {