| Index: Source/devtools/front_end/bindings/SASSSourceMapping.js
|
| diff --git a/Source/devtools/front_end/bindings/SASSSourceMapping.js b/Source/devtools/front_end/bindings/SASSSourceMapping.js
|
| index 592d3e07b4041e0c718dca4fe96d7d86af369024..31edd7c434d87243aab1429d103399a0850aa9be 100644
|
| --- a/Source/devtools/front_end/bindings/SASSSourceMapping.js
|
| +++ b/Source/devtools/front_end/bindings/SASSSourceMapping.js
|
| @@ -37,7 +37,7 @@
|
| */
|
| WebInspector.SASSSourceMapping = function(cssModel, workspace, networkWorkspaceBinding)
|
| {
|
| - this.pollPeriodMs = 5000;
|
| + this.pollPeriodMs = 30 * 1000;
|
| this.pollIntervalMs = 200;
|
|
|
| this._cssModel = cssModel;
|
| @@ -221,10 +221,14 @@ WebInspector.SASSSourceMapping.prototype = {
|
| if (!pollData)
|
| return;
|
|
|
| - if (stopPolling || (now = new Date().getTime()) > pollData.deadlineMs) {
|
| - delete pollData.dataByURL[cssURL];
|
| - if (!Object.keys(pollData.dataByURL).length)
|
| - delete this._pollDataForSASSURL[sassURL];
|
| + if (stopPolling) {
|
| + this._stopPolling(cssURL, sassURL);
|
| + return;
|
| + }
|
| +
|
| + if ((now = new Date().getTime()) > pollData.deadlineMs) {
|
| + WebInspector.console.warn(WebInspector.UIString("%s hasn't been updated in %d seconds.", cssURL, this.pollPeriodMs / 1000));
|
| + this._stopPolling(cssURL, sassURL);
|
| return;
|
| }
|
| var nextPoll = this.pollIntervalMs + pollData.dataByURL[cssURL].previousPoll;
|
| @@ -236,6 +240,18 @@ WebInspector.SASSSourceMapping.prototype = {
|
| /**
|
| * @param {string} cssURL
|
| * @param {string} sassURL
|
| + */
|
| + _stopPolling: function(cssURL, sassURL)
|
| + {
|
| + var pollData = this._pollDataForSASSURL[sassURL];
|
| + delete pollData.dataByURL[cssURL];
|
| + if (!Object.keys(pollData.dataByURL).length)
|
| + delete this._pollDataForSASSURL[sassURL];
|
| + },
|
| +
|
| + /**
|
| + * @param {string} cssURL
|
| + * @param {string} sassURL
|
| * @param {function(string, string, boolean)} callback
|
| */
|
| _reloadCSS: function(cssURL, sassURL, callback)
|
|
|