Trying to use createjs

21 views
Skip to first unread message

François-Paul Servant

unread,
Jan 2, 2013, 7:32:03 PM1/2/13
to vi...@googlegroups.com
Happy new year to all.

Is the demo at
http://createjs.org/demo/hallo/
supposed to work?

Here are examples of things that do not work as I would expect (tested with Mac OS X 10.8.2)

Safari 6.0.2
- switch to edit
- click "+Add", enter some content
- click "Save"
-> "Object with subject _:bnodexx saved successfully"
- click "Cancel"
-> back to the original page: the change has not been saved

-- This works OK with Firefox 17.0.1

- with Safari, if doing now the same thing again, (without reloading the page), things now work OK
- with FF: you don't have the "Add" button anymore

Safari:
- reload the page
- switch to edit
- click "+Add", enter some content
- do it again: click "+Add", enter some content
- click "Save"
-> button renamed to "Saving" (why?)
- click "Saving" (same button again)
-> message "Object with subject bnode xx saved successfully"
- click "Cancel"
-> the second change is displayed, not the first one

I was beginning to try to play with create, using this demo as a starting point. After downloading and installing everything on my machine, I added an alert to:
// Fake Backbone.sync since there is no server to communicate with
Backbone.sync = function(method, model, options) {
alert("Method: " + method + "\nModel:\n" + JSON.stringify(model));

and I noticed the following: when adding an item to a collection, model doesn't contain the link between the "main resource" and the new item of the collection. I don't know how the server could do to handle the update correctly.

What should I do?

Best,

fps
Reply all
Reply to author
Forward
0 new messages