This commit is contained in:
Artur Adib 2012-09-25 14:54:29 -04:00
parent da57e0f89e
commit d94bbad575

View File

@ -236,10 +236,10 @@ var PDFFindController = {
'findcasesensitivitychange' 'findcasesensitivitychange'
]; ];
this.handelEvent = this.handelEvent.bind(this); this.handleEvent = this.handleEvent.bind(this);
for (var i = 0; i < events.length; i++) { for (var i = 0; i < events.length; i++) {
window.addEventListener(events[i], this.handelEvent); window.addEventListener(events[i], this.handleEvent);
} }
}, },
@ -295,7 +295,7 @@ var PDFFindController = {
extractPageText(0); extractPageText(0);
}, },
handelEvent: function(e) { handleEvent: function(e) {
this.state = e.detail; this.state = e.detail;
if (e.detail.findPrevious === undefined) { if (e.detail.findPrevious === undefined) {
this.dirtyMatch = true; this.dirtyMatch = true;
@ -358,7 +358,7 @@ var PDFFindController = {
} }
} else { } else {
// If there is NO selection, then there is no match at all -> no sense to // If there is NO selection, then there is no match at all -> no sense to
// handel previous/next action. // handle previous/next action.
if (this.selected.pageIdx === -1) if (this.selected.pageIdx === -1)
return; return;