mirror of
https://github.com/esiur/esiur-js.git
synced 2025-06-27 07:13:12 +00:00
Esiur 1.2.4
This commit is contained in:
@ -183,10 +183,18 @@ export default class DistributedResource extends IResource
|
||||
var pt = this.instance.template.getPropertyTemplateByIndex(index);
|
||||
this._p.properties[index] = value;
|
||||
this.instance.emitModification(pt, value);
|
||||
|
||||
// this to invoke other property setters
|
||||
this._p.neglect = true;
|
||||
this[pt.name] = null;
|
||||
this._p.neglect = false;
|
||||
}
|
||||
|
||||
_set(index, value)
|
||||
{
|
||||
if (this._p.neglect)
|
||||
return;
|
||||
|
||||
if (index >= this._p.properties.length)
|
||||
return null;
|
||||
|
||||
|
@ -116,7 +116,7 @@ export class WH extends IEventHandler
|
||||
{
|
||||
var store = this.new(handler, url[0] + "://" + hostname);
|
||||
store.open(settings).then(x=>{
|
||||
if (pathname.length > 0 && pathname[1] != "")
|
||||
if (pathname.length > 0 && pathname != "")
|
||||
store.get(pathname).then(r=>{
|
||||
rt.trigger(r);
|
||||
}).error(e => rt.triggerError(e));
|
||||
|
@ -1,2 +1,7 @@
|
||||
|
||||
import wh from './Resource/Warehouse.js';
|
||||
export default wh;
|
||||
|
||||
if (window)
|
||||
window.wh = wh;
|
||||
|
||||
export default wh;
|
21
src/package-lock.json
generated
Normal file
21
src/package-lock.json
generated
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "esiur",
|
||||
"version": "1.2.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"async-limiter": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz",
|
||||
"integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg=="
|
||||
},
|
||||
"ws": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.0.tgz",
|
||||
"integrity": "sha512-deZYUNlt2O4buFCa3t5bKLf8A7FPP/TVjwOeVNpw818Ma5nk4MLXls2eoEGS39o8119QIYxTrTDoPQ5B/gTD6w==",
|
||||
"requires": {
|
||||
"async-limiter": "~1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
22
src/package.json
Normal file
22
src/package.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "esiur",
|
||||
"version": "1.2.4",
|
||||
"description": "Distributed Object Framework",
|
||||
"main": "esiur.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/esiur/esiur-js.git"
|
||||
},
|
||||
"author": "Ahmed Zamil",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/esiur/esiur-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/esiur/esiur-js#readme",
|
||||
"dependencies": {
|
||||
"ws": "^6.2.0"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user