Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function gotoPage(s){
  2. if(s<=this.d&&s>0){this.g=s; this.page((s-1)*this.p.size);}
  3. }
  4.  
  5. function pageChange(event, sorter) {
  6. var dd = event.currentTarget;
  7. gotoPage.call(sorter, dd[dd.selectedIndex].value);
  8. }
  9.  
  10. function gotoPage(sorter, s) {
  11. if (s <= sorter.d && s > 0) {
  12. sorter.g = s;
  13.  
  14. sorter.page((s - 1) * sorter.p.size);
  15. }
  16. }
  17.  
  18. function pageChange(event, sorter) {
  19. var dd = event.currentTarget;
  20. gotoPage(sorter, dd[dd.selectedIndex].value);
  21. }
  22.  
  23. "use strict";
  24.  
  25. // ---> strict violation
  26. function something() {
  27. this.test = "";
  28. }
  29.  
  30.  
  31. // ---> just fine (note the capital S in Something)
  32. function Something() {
  33. this.test = "";
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement