– Fixed a derp in the mediaQuery is method’s conditional check for the
length of the string.
- Replaced atLeast() with new is() method in equalizer, tooltip and
sticky
* @private
*/
_checkMQ() {
- var tooSmall = !Foundation.MediaQuery.atLeast(this.options.equalizeOn);
+ var tooSmall = !Foundation.MediaQuery.is(this.options.equalizeOn);
if(tooSmall){
if(this.isOn){
this._pauseEvents();
* @private
*/
_setSizes(cb) {
- this.canStick = Foundation.MediaQuery.atLeast(this.options.stickyOn);
+ this.canStick = Foundation.MediaQuery.is(this.options.stickyOn);
if (!this.canStick) { cb(); }
var _this = this,
newElemWidth = this.$container[0].getBoundingClientRect().width,
* @function
*/
show() {
- if (this.options.showOn !== 'all' && !Foundation.MediaQuery.atLeast(this.options.showOn)) {
+ if (this.options.showOn !== 'all' && !Foundation.MediaQuery.is(this.options.showOn)) {
// console.error('The screen is too small to display this tooltip');
return false;
}
*/
is(size) {
size = size.trim().split(' ');
- if(size.length > 0 && size[1] === 'only') {
+ if(size.length > 1 && size[1] === 'only') {
if(size[0] === this._getCurrentSize()) return true;
} else {
return this.atLeast(size[0]);