compatible.js 956 B

123456789101112131415161718192021222324252627282930
  1. o2.addReady(function(){
  2. COMMON = {
  3. "DOM":{},
  4. "setContentPath": function(path){
  5. COMMON.contentPath = path;
  6. },
  7. "JSON": o2.JSON,
  8. "Browser": Browser,
  9. "Class": o2.Class,
  10. "XML": o2.xml,
  11. "AjaxModule": {
  12. "load": function(urls, callback, async, reload){
  13. o2.load(urls, callback, reload, document);
  14. },
  15. "loadDom": function(urls, callback, async, reload){
  16. o2.load(urls, callback, reload, document);
  17. },
  18. "loadCss": function(urls, callback, async, reload, sourceDoc){
  19. o2.loadCss(urls, document.body, callback, reload, sourceDoc);
  20. }
  21. },
  22. "Request": Request,
  23. "typeOf": o2.typeOf
  24. };
  25. COMMON.DOM.addReady = o2.addReady;
  26. MWF = o2;
  27. MWF.getJSON = o2.JSON.get;
  28. MWF.getJSONP = o2.JSON.getJsonp;
  29. MWF.defaultPath = o2.session.path;
  30. });