r9 - 03 Jan 2008 - 17:12:40 - TravisVachonYou are here: OSAF >  Journal Web  >  BobbyRulloNotes > DojoOneZeroGotchas
  • There are no more .* imports!
  • djGlobal is now dojo.global
  • dojo.collections is now dojox.collections
  • dojo.date.strftime is now dojox.date.posix.strftime
  • dojo.lang.has is now cosmo.util.lang.has
  • dojo.declare has replaced "initializer" with "constructor", don't pass a constructor in method signature(!!)
  • dojo.date.fromIso8601 is now dojo.date.stamp.fromISOString
    • er, more complicated than that...to be continued frown
  • dojo.date.dateParts is gone. Now they use raw strings.
    • my solution was to create cosmo.datetime.util.dateParts
    • if there's anyplace in the code where we were passing raw ints as the arguments instead of making a reference to the constant we are in trouble - look out for that.
  • can't pass an integer representing utc time to dojo.date.add - gotta be an actual date object
  • no more "dojo.dom" some of the methods are still around, but not the X platform xml parser (createDocumentFromText()), which we were using in a test. In this case, I just stuck that code in the test file, but AFAIK we are not using it anywhere else.

DOH

  • doh.Deferred is not dojo.Deferred, wrap dojo.Deferred with cosmotest.testutils.defcon() before returning from async test
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r9 < r8 < r7 < r6 < r5 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.