mirror of
https://github.com/esiur/esiur-js.git
synced 2025-05-06 12:32:58 +00:00
Esiur 1.2.4
This commit is contained in:
parent
de5f2cbdd2
commit
3ac2eccf0f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
node_modules/
|
||||
src/node_modules/
|
||||
test.js
|
@ -2,7 +2,6 @@ exports.printMsg = function() {
|
||||
console.log("Esiur 1.1");
|
||||
}
|
||||
|
||||
module.exports = { Warehouse, DistributedConnection};
|
||||
|
||||
module.exports = { wh };
|
||||
|
||||
let WebSocket = require('ws')
|
||||
|
@ -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';
|
||||
|
||||
if (window)
|
||||
window.wh = wh;
|
||||
|
||||
export default wh;
|
0
package-lock.json → src/package-lock.json
generated
0
package-lock.json → src/package-lock.json
generated
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "esiur",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"description": "Distributed Object Framework",
|
||||
"main": "build/esiur-debug-node.js",
|
||||
"main": "esiur.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
Loading…
x
Reference in New Issue
Block a user