projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a293edf
)
All invocations of callbacks supplied by client code now pass
author
Mike Taylor
<mike@indexdata.com>
Fri, 24 Jan 2014 10:42:31 +0000
(10:42 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 24 Jan 2014 10:42:31 +0000
(10:42 +0000)
this.windowid.
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/js/pz2.js
index
8ef4db8
..
a799b40
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-171,7
+171,7
@@
pz2.prototype =
this.stop();
if ( this.resetCallback )
this.stop();
if ( this.resetCallback )
- this.resetCallback();
+ this.resetCallback(this.windowid);
},
init: function (sessionId, serviceId)
},
init: function (sessionId, serviceId)
@@
-215,7
+215,7
@@
pz2.prototype =
context.keepAlive
);
if ( context.initCallback )
context.keepAlive
);
if ( context.initCallback )
- context.initCallback();
+ context.initCallback(this.windowid);
}
else
context.throwError('Init failed. Malformed WS resonse.',
}
else
context.throwError('Init failed. Malformed WS resonse.',
@@
-366,7
+366,7
@@
pz2.prototype =
},
delay
);
},
delay
);
- context.statCallback(stat);
+ context.statCallback(stat, this.windowid);
}
else
context.throwError('Stat failed. Malformed WS resonse.',
}
else
context.throwError('Stat failed. Malformed WS resonse.',
@@
-472,7
+472,7
@@
pz2.prototype =
context.show();
},
delay);
context.show();
},
delay);
- context.showCallback(show);
+ context.showCallback(show, this.windowid);
}
);
},
}
);
},
@@
-524,7
+524,7
@@
pz2.prototype =
record = new Array();
record['xmlDoc'] = data;
record['offset'] = context.currRecOffset;
record = new Array();
record['xmlDoc'] = data;
record['offset'] = context.currRecOffset;
- callback(record, args);
+ callback(record, args, this.windowid);
//pz2 record
} else if ( recordNode =
data.getElementsByTagName("record")[0] ) {
//pz2 record
} else if ( recordNode =
data.getElementsByTagName("record")[0] ) {
@@
-554,7
+554,7
@@
pz2.prototype =
},
delay
);
},
delay
);
- callback(record, args);
+ callback(record, args, this.windowid);
}
else
context.throwError('Record failed. Malformed WS resonse.',
}
else
context.throwError('Record failed. Malformed WS resonse.',
@@
-643,7
+643,7
@@
pz2.prototype =
delay
);
delay
);
- context.termlistCallback(termList);
+ context.termlistCallback(termList, this.windowid);
}
else
context.throwError('Termlist failed. Malformed WS resonse.',
}
else
context.throwError('Termlist failed. Malformed WS resonse.',
@@
-732,7
+732,7
@@
pz2.prototype =
delay
);
delay
);
- context.bytargetCallback(bytarget);
+ context.bytargetCallback(bytarget, this.windowid);
}
else
context.throwError('Bytarget failed. Malformed WS resonse.',
}
else
context.throwError('Bytarget failed. Malformed WS resonse.',