Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 453 Bytes
function ResettingCountedLockableContainerClass(KEY, MAX_KEY_MISMATCH_COUNT) {
'use strict';
var _protected = CountedLockableContainerClass.call(
this, KEY, MAX_KEY_MISMATCH_COUNT);
function _resetKeyMismatchCount() { _protected.keyMismatchCount = 0; };
var _originalUnlock = _protected.unlock;
_protected.unlock = function(key) {
_originalUnlock.call(this, key);
_resetKeyMismatchCount();
};
};