智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LightingSystemApp-serial/.svn/pristine/97/97e63f24d72bfb71c29b8ef97bc...

25 lines
528 B

3 years ago
var root = require('./root');
var now = require('./now');
exports =
root.requestIdleCallback ||
function(cb) {
var start = now();
return setTimeout(function() {
cb({
didTimeout: false,
timeRemaining: function() {
return Math.max(0, 50 - (now() - start));
}
});
}, 1);
};
exports.cancel =
root.cancelIdleCallback ||
function(id) {
clearTimeout(id);
};
module.exports = exports;