Less confusing method name

print-window-tiddler
Jeremy Ruston 2013-02-08 09:22:21 +00:00
rodzic 5fd73a2b8d
commit 6584939114
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -31,7 +31,7 @@ Handle an event
*/
PageScroller.prototype.handleEvent = function(event) {
if(event.type === "tw-scroll") {
return this.handleScrollEvent(event);
return this.scrollIntoView(event);
}
return true;
};
@ -39,7 +39,7 @@ PageScroller.prototype.handleEvent = function(event) {
/*
Handle a scroll event hitting the page document
*/
PageScroller.prototype.handleScrollEvent = function(event) {
PageScroller.prototype.scrollIntoView = function(event) {
// Get the offset bounds of the element
var domNode = event.target,
bounds = {