When upgrading from pre-bitburger, or bitburger pre-alpha 1.0 you may run into to some questions, issues, difficulties.
This page is meant to collect and document them to aid others making the transition. Please add your questions and difficulties.
clients folder is renamed to apps
This is not a mandatory change, as sproutcore will still look for applications under /clients/ but you may as well go ahead and rename your clients folder to /apps
Sproutcore Reference Documentation
Used to live at http://localhost:4020/sproutcore/-docs. Available at http://www.sproutcore.com/sproutcore/docs/. Currently the doc view is not functioning in SC 1.0 however. You will need to look at the source directly (where the docs also live). The doc viewer just needs to be upgraded to SC1.0
view helpers in rhtml are gone
<% view :blah do %> is no longer the way to do things.
rhtml is out.
Use pure JS instead, by creating SC.Page objects. See the sample_controls for more examples on how to do this.
Changes to sc-config
sc-config is now also known as Buildfile.
Most of the configs are the same but some things (like relative paths) don't work yet.
Views not responding when using Firebug to .set properties
Charles Sez
"Bindings in 1.0 only relay at the end of a run loop. On the console
you are not in a run loop so the relaying does not happen.
To resolve this on the console wrap your calls in SC.RunLoop.begin() and SC.RunLoop.end(). "
Trouble with proxies?
CollectionController is depreciated
And by depreciated, I mean, they no longer exist. Use ArrayController instead.
Yourapp.Model.collection() also does not exist
Goodbye SC.Server, hello SC.Store
SC.server appears to be depreciated.
SC.DataSource is where it is at.
preload & Fixtures patterns have changed
In core.js
before:
server: Yourapp.server.preload(Yourapp.FIXTURES);
after:
store: SC.Store.create().from(SC.Record.fixtures);
In the fixtures file:
before:
require('core') ;
Yourapp.FIXTURES = Yourapp.FIXTURES.concat([
...
after:
sc_require('models/yourmodel');
Yourapp.Yourmodel.FIXTURES = [
...
]
Comments (0)
You don't have permission to comment on this page.