Giter Site home page Giter Site logo

Comments (13)

michael avatar michael commented on May 30, 2024

Try including this file before loading document.js:

https://github.com/substance/util/blob/master/util.js

We'll improve the overall packaging in the coming release of Substance.

from document.

maacl avatar maacl commented on May 30, 2024

This results in:

Uncaught ReferenceError: tail is not defined

at console line 251.

On Wed, Apr 24, 2013 at 3:29 PM, Michael Aufreiter <[email protected]

wrote:

Try including this file before loading document.js:

https://github.com/substance/util/blob/master/util.js

We'll improve the overall packaging in the coming release of Substance.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16927228
.

from document.

michael avatar michael commented on May 30, 2024

The console is broken at the very moment. Will be restored in the coming days. Also need to update the docs since the API has been simplified.

http://interior.substance.io/modules/document.html

from document.

maacl avatar maacl commented on May 30, 2024

It appears that the example running at
http://interior.substance.io/modules/document.html is also broken.

/mac

On Wed, Apr 24, 2013 at 3:41 PM, Michael Aufreiter <[email protected]

wrote:

The console is broken at the very moment. Will be restored in the coming
days. Also need to update the docs since the API has been simplified.

http://interior.substance.io/modules/document.html


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16928577
.

from document.

michael avatar michael commented on May 30, 2024

Yep, that is also related to the broken console.

You should have a look at the testsuite for now.. as an example for the new API usage. https://github.com/substance/tests/blob/master/tests/004-document-manipulation.js

from document.

maacl avatar maacl commented on May 30, 2024

Will do.

/mac

On Wed, Apr 24, 2013 at 3:45 PM, Michael Aufreiter <[email protected]

wrote:

Yep, that is also related to the broken console.

You should have a look at the testsuite for now.. as an example for the
new API usage.
https://github.com/substance/tests/blob/master/tests/004-document-manipulation.js


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16929001
.

from document.

maacl avatar maacl commented on May 30, 2024

Am I missing something or is the documentation at
http://interior.substance.io/modules/document.html not consistent with the
code on the same pagae? if I open a terminal on
http://interior.substance.io/modules/document.html and try to follow along
the examples the output from for instance toJSON is not identical to the
examples on the page.

/mac

On Wed, Apr 24, 2013 at 3:43 PM, Martin Clausen [email protected]:

It appears that the example running at
http://interior.substance.io/modules/document.html is also broken.

/mac

On Wed, Apr 24, 2013 at 3:41 PM, Michael Aufreiter <
[email protected]> wrote:

The console is broken at the very moment. Will be restored in the coming
days. Also need to update the docs since the API has been simplified.

http://interior.substance.io/modules/document.html


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16928577
.

from document.

michael avatar michael commented on May 30, 2024

I just integrated the console with the improved Document API.

Updating the documentation at http://interior.substance.io/modules/document.html is on my todo list.

from document.

michael avatar michael commented on May 30, 2024

Just released v0.3.0 complete with updated docs. Please have a look if you spot any remaining inconsistencies.

http://interior.substance.io/modules/document.html

from document.

maacl avatar maacl commented on May 30, 2024

Is the checkout method suppose to set the contents of the document to the
state after the commit one check out? If so I do not get the expected
behavior, cf:

var doc = new Substance.Document({ id: "document:substance" });
undefined
var op = ["set", {"title": "Substance" }]; doc.apply(op, {"user":
"michael"});
undefined
var opA = ["insert", { "id": "heading:1", "type": "heading", "target":
"back", "data": { "content": "Hello" } }]; doc.apply(opA, {"user":
"michael"});
undefined
var opB = ["insert", { "id": "text:2", "type": "text", "data": { "content":
"Hey there." } }]; doc.apply(opB, {"user": "michael"});
undefined
doc.commits
Object {f56d20203bf5221dcbf464775c7f724c: Object,
aa18b211ca5b6cc271d2bf9ef104b438: Object, 3212324efa57f1b21426f2fa98907d2a:
Object}
doc.checkout("master", "aa18b211ca5b6cc271d2bf9ef104b438")
undefined
doc.toJSON()
Object {properties: Object, meta: Object, id: "document:substance", nodes:
Object, views: Object}

  1. id: "document:substance"
  2. meta: Object
  3. nodes: Object
    1. proto: Object
  4. properties: Object
  5. views: Object
  6. proto: Object

On Fri, Apr 26, 2013 at 1:10 AM, Michael Aufreiter <[email protected]

wrote:

Just released v0.3.0 complete with updated docs. Please have a look if you
spot any remaining inconsistencies.

http://interior.substance.io/modules/document.html


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-17046458
.

from document.

maacl avatar maacl commented on May 30, 2024

Any feedback as to why this was closed?

from document.

michael avatar michael commented on May 30, 2024

Literally all things have changed under the hood, so we were closing issues that refer to older versions.

The new sandbox gives you a good overview about the new components.

http://github.com/substance/substance

http://sandbox.substance.io/#tests

Many more updates to come.

from document.

maacl avatar maacl commented on May 30, 2024

Perfect - thanks for the feedback.

On Tue, Jul 23, 2013 at 12:46 PM, Michael Aufreiter <
[email protected]> wrote:

Literally all things have changed under the hood, so we were closing
issues that refer to older versions.

The new sandbox gives you a good overview about the new components.

http://github.com/substance/substancehttps://github.com/substance/substance

http://sandbox.substance.io/#tests

Many more updates to come.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-21406116
.

from document.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.