Guest User

Untitled

a guest
Apr 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. /**
  2. * Explanation: before compression, remove any first '/' for matched: ^[ \t]*\/\/\*\* *(Compat|Fix)\:?(\w)*
  3. * That are not necessary for the build. E.g. if the build is for 1.3 with no compat, then all Compat
  4. * matches will lose the first '/' and therefore all of that code becomes commented. Similarly for browser
  5. * fixes.
  6. *
  7. * During compression, the user can optionally remove the comments and thereby removing the rest of the code.
  8. *
  9. * Otherwise, there is not JavaScript performance loss due to commenting. Parser will just skip.
  10. *
  11. * NOTE: Compat Source Code needs to be after the bleeding edge, since it must be overwrite.
  12. */
  13.  
  14. var MyClass = new Class({
  15.  
  16. initialize: function(){
  17. this.foo = '123'; // <-- default, or rather bleeding edge
  18.  
  19. //** Compat: 1.2
  20. this.foo = '123' && '345';
  21. //**/
  22. //this.foo = '123';/*<compat:1.2/>*/ <-- unsupported
  23. //this.foo = '123';//<compat:1.2/> <-- unsupported
  24. this.foo = '345';
  25. },
  26.  
  27. //** Fix: IE6 // <-- this could use a little work
  28. method: function(arg20){
  29.  
  30. },
  31.  
  32. //** Compat 1.2
  33. method: function(arg12, arg20){
  34.  
  35. },
  36. //**/
  37. //**/
  38.  
  39. //* Fix: Safari2
  40. method: function(){ // <- not sure what's this suppose to do.
  41.  
  42. }
  43. //**/
  44.  
  45. });
Add Comment
Please, Sign In to add comment