mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Prevent hot.accept from overriding hot.decline
This commit is contained in:
@@ -34,11 +34,17 @@ Object.defineProperty(meteorInstall.Module.prototype, "hot", {
|
||||
if (arguments.length > 0) {
|
||||
console.warn('hot.accept does not support any arguments.');
|
||||
}
|
||||
|
||||
if (hotState._hotAccepts === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
hotState._hotAccepts = true;
|
||||
},
|
||||
/**
|
||||
* @summary Disable updating this module or its dependencies with HMR.
|
||||
* Hot code push will be used instead.
|
||||
* Hot code push will be used instead. Can not be overridden by calling
|
||||
* module.hot.accept later.
|
||||
* @locus Client
|
||||
* @memberOf module.hot
|
||||
* @instance
|
||||
|
||||
Reference in New Issue
Block a user