MCPcopy
hub / github.com/winjs/winjs / remove

Function remove

tests/TestLib/TestDataSource.ts:188–200  ·  view source on GitHub ↗
(complete, error, key)

Source from the content-addressed store, hash-verified

186 }
187
188 function remove(complete, error, key) {
189 if (controller.communicationFailure) {
190 error(new WinJS.ErrorFromName(UI.EditError.noResponse.toString()));
191 } else {
192 var index = keyToIndexMap[key];
193
194 delete keyToIndexMap[key];
195 array.splice(index, 1);
196 updateKeyToIndexMap(index);
197
198 complete();
199 }
200 }
201
202 function insertionIndex(previousKey, nextKey) {
203 var index;

Callers 1

createTestDataAdapterFunction · 0.70

Calls 5

errorFunction · 0.85
updateKeyToIndexMapFunction · 0.85
toStringMethod · 0.65
spliceMethod · 0.65
completeFunction · 0.50

Tested by

no test coverage detected