1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 03:56:26 +02:00

Added support to fake getters.

This commit is contained in:
kkapsner 2018-08-27 00:23:19 +02:00
parent 103c69d4b8
commit 4c7b83aca6
2 changed files with 51 additions and 13 deletions

View file

@ -474,15 +474,15 @@
scope.changedFunctions[key].api = "canvas";
});
scope.changedGetters = {};
scope.changedGetters = [];
function appendModified(collection){
Object.keys(collection.changedFunctions || {}).forEach(function(key){
scope.changedFunctions[key] = collection.changedFunctions[key];
});
Object.keys(collection.changedGetters || {}).forEach(function(key){
scope.changedGetters[key] = collection.changedGetters[key];
(collection.changedGetters || []).forEach(function(changedGetter){
scope.changedGetters.push(changedGetter);
});
}
appendModified(modifiedAudioAPI);