update components
This commit is contained in:
parent
58cebe2486
commit
93ce8f975b
8 changed files with 232 additions and 82 deletions
20
dashboard-ui/bower_components/emby-webcomponents/resourcelocks/nullresourcelock.js
vendored
Normal file
20
dashboard-ui/bower_components/emby-webcomponents/resourcelocks/nullresourcelock.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
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;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue