UNPKG

d-md-components

Version:

A pack of components for Derby according to Google's Material Design based upon mdl (getmdl.io).

20 lines (15 loc) 528 B
var Progress = require('./../index'); Progress.prototype._show = function() { this.model.set('loading', true); // Force style recalculation for transitions to work. window.getComputedStyle(this.progressContainer).top; this.model.set('showing', true); }; Progress.prototype._hide = function() { this.model.set('showing', false); // Give container time to transition shrink before removing elements. var self = this; setTimeout(function () { self.model.del('loading'); }, 200); };