kopia lustrzana https://github.com/c9/core
fix unregisterLanguageHandler
rodzic
b82cf2883c
commit
bcebf55505
|
@ -354,11 +354,11 @@ function endTime(t, message, indent) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.unregister = function(modulePath, callback) {
|
this.unregister = function(modulePath, callback) {
|
||||||
if (window.require)
|
|
||||||
window.require.modules[modulePath] = null;
|
|
||||||
this.handlers = this.handlers.filter(function(h) {
|
this.handlers = this.handlers.filter(function(h) {
|
||||||
return h.$source !== modulePath;
|
return h.$source !== modulePath;
|
||||||
});
|
});
|
||||||
|
if (window.require)
|
||||||
|
window.require.undef(modulePath, true);
|
||||||
callback && callback();
|
callback && callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue