We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270cdfd commit aa2d0aaCopy full SHA for aa2d0aa
lib/vendor/mockMashupPlatform.js
@@ -100,17 +100,14 @@ var MockMP = {};
100
};
101
102
namespace.MockMP.prototype.reset = function reset(spyList) {
103
- // Reset the calls.
104
- // var spySet = this.spySet;
105
- // if (spyList) {
106
- // spySet = spyList;
107
- // }
108
- // spySet.forEach(function (spy) {
109
- // spy.calls.reset();
110
- // });
111
- // Don't need, because setStrategy restore all
112
-
113
// Get back to the default values
+
+ // Clean callbacks
+ this.callbacks = {
+ 'prefs': {'': []},
+ 'widget': {'': []},
+ 'wiring': {'': []}
+ };
114
if (typeof this.defaultValues === 'undefined' || typeof this.defaultValues !== 'object') {
115
this.defaultValues = {};
116
}
0 commit comments