1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-02-22 06:03:22 +01:00

contentwraps: remove unused code

This commit is contained in:
Kushagra Gour 2019-03-04 19:00:12 +05:30
parent db1fafbfa1
commit 32c398564d
2 changed files with 2 additions and 10 deletions

View File

@ -111,11 +111,7 @@ export default class ContentWrap extends Component {
// This is done so that multiple simultaneous setValue don't trigger too many preview refreshes
// and in turn too many file writes on a single file (eg. preview.html).
if (change.origin !== 'setValue') {
// Specifically checking for false so that the condition doesn't get true even
// on absent key - possible when the setting key hasn't been fetched yet.
if (this.prefs.autoPreview !== false) {
this.setPreviewContent();
}
this.setPreviewContent();
// Track when people actually are working.
trackEvent.previewCount = (trackEvent.previewCount || 0) + 1;

View File

@ -216,11 +216,7 @@ export default class ContentWrapFiles extends Component {
// This is done so that multiple simultaneous setValue don't trigger too many preview refreshes
// and in turn too many file writes on a single file (eg. preview.html).
if (change.origin !== 'setValue') {
// Specifically checking for false so that the condition doesn't get true even
// on absent key - possible when the setting key hasn't been fetched yet.
if (this.prefs.autoPreview !== false) {
this.setPreviewContent();
}
this.setPreviewContent();
// Track when people actually are working.
trackEvent.previewCount = (trackEvent.previewCount || 0) + 1;