forked from 0x2620/pandora
Ox.parent -> Ox.
This commit is contained in:
parent
9a7a433e6e
commit
80419856d3
1 changed files with 4 additions and 4 deletions
|
@ -8,12 +8,12 @@ Ox.load({
|
|||
var page = evt.pageNumber;
|
||||
if (page && page != currentPage) {
|
||||
currentPage = page;
|
||||
Ox.parent.postMessage('page', {
|
||||
Ox.$parent.postMessage('page', {
|
||||
page: Math.round(page)
|
||||
});
|
||||
}
|
||||
});
|
||||
Ox.parent.bindMessage({
|
||||
Ox.$parent.bindMessage({
|
||||
page: function(data) {
|
||||
if (data.page != PDFView.page) {
|
||||
PDFView.page = data.page;
|
||||
|
@ -75,7 +75,7 @@ function getVideoOverlay(page) {
|
|||
enableVideoUI();
|
||||
}
|
||||
this.div.appendChild($interface[0]);
|
||||
Ox.parent.bindMessage('update', function(data) {
|
||||
Ox.$parent.bindMessage('update', function(data) {
|
||||
if (video && data.id == video.id && data.page == video.page) {
|
||||
video.src = data.src;
|
||||
video.src !== '' ? enableVideoUI() : disableVideoUI();
|
||||
|
@ -124,7 +124,7 @@ function getVideoOverlay(page) {
|
|||
src: '',
|
||||
type: 'inline'
|
||||
};
|
||||
Ox.parent.postMessage('edit', video);
|
||||
Ox.$parent.postMessage('edit', video);
|
||||
return false;
|
||||
}
|
||||
function enableVideoUI() {
|
||||
|
|
Loading…
Reference in a new issue