1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/resourcelocks/nullresourcelock.js

20 lines
422 B
JavaScript
Raw Normal View History

2017-01-25 01:14:35 -05:00
define([], function () {
'use strict';
function ResourceLockInstance() {
}
ResourceLockInstance.prototype.acquire = function () {
this._isHeld = true;
};
ResourceLockInstance.prototype.isHeld = function () {
return this._isHeld === true;
};
ResourceLockInstance.prototype.release = function () {
this._isHeld = false;
};
return ResourceLockInstance;
});