Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gotoPage(s){
- if(s<=this.d&&s>0){this.g=s; this.page((s-1)*this.p.size);}
- }
- function pageChange(event, sorter) {
- var dd = event.currentTarget;
- gotoPage.call(sorter, dd[dd.selectedIndex].value);
- }
- function gotoPage(sorter, s) {
- if (s <= sorter.d && s > 0) {
- sorter.g = s;
- sorter.page((s - 1) * sorter.p.size);
- }
- }
- function pageChange(event, sorter) {
- var dd = event.currentTarget;
- gotoPage(sorter, dd[dd.selectedIndex].value);
- }
- "use strict";
- // ---> strict violation
- function something() {
- this.test = "";
- }
- // ---> just fine (note the capital S in Something)
- function Something() {
- this.test = "";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement