assets/javascripts/materialize/pushpin.js in materialize-sass-1.0.0.rc1 vs assets/javascripts/materialize/pushpin.js in materialize-sass-1.0.0.rc2

- old
+ new

@@ -83,11 +83,10 @@ value: function _updatePosition() { var scrolled = M.getDocumentScrollTop() + this.options.offset; if (this.options.top <= scrolled && this.options.bottom >= scrolled && !this.el.classList.contains('pinned')) { this._removePinClasses(); - this.el.style.top = this.options.offset + 'px'; this.el.classList.add('pinned'); // onPositionChange callback if (typeof this.options.onPositionChange === 'function') { @@ -120,10 +119,13 @@ } } }, { key: '_removePinClasses', value: function _removePinClasses() { - this.el.classList.remove('pin-top', 'pinned', 'pin-bottom'); + // IE 11 bug (can't remove multiple classes in one line) + this.el.classList.remove('pin-top'); + this.el.classList.remove('pinned'); + this.el.classList.remove('pin-bottom'); } }], [{ key: 'init', value: function init(els, options) { return _get(Pushpin.__proto__ || Object.getPrototypeOf(Pushpin), 'init', this).call(this, this, els, options);