Git Product home page Git Product logo

Comments (5)

pjekel avatar pjekel commented on August 23, 2024

I'm not sure I completely follow you line of thought. Technically I could remove both ForestStoreModel and TreeStoreModel but in that case _store2model will have to go too as it is the only method referring to ForestStoreModel. As a matter of fact, _store2model was only added to pass some of the default dijit tree unit tests. The underlying dijit tree states '_store2model is for v1.0 dijit tree backward compatibility only and will be removed from the dijit tree 2.0'.

-----Original Message-----
From: Vladimir Elistratov [mailto:[email protected]]
Sent: Monday, April 23, 2012 4:10 AM
To: pjekel
Subject: [cbtree] cbtree/Tree depends on ForestStoreModel and TreeStoreModel (#11)

I don't use either of them.
A larger problem is that I am getting empty dojo.js for my library build. Once I remove ForestStoreModel and TreeStoreModel from the cbtree/Tree dependencies, I am getting a working build.

If you would prefer to keep them and _store2model, I'd suggest to create cbtree/BaseTree and move all stuff there out of cbtree/Tree except _store2model


Reply to this email directly or view it on GitHub:
#11

from cbtree.

pjekel avatar pjekel commented on August 23, 2024

One more thing, with regards to your build I noticed the problem I reported earlier where an error is generated like: 'x is not a constructor' seems to be back. However, if you build the library with profile setting: "optimize:'shrinksafe'" and "layerOptimize:'shrinksafe'" instead of the Google 'closure' compiler the problem is fixed and everything works as expected.

-----Original Message-----
From: Vladimir Elistratov [mailto:[email protected]]
Sent: Monday, April 23, 2012 4:10 AM
To: pjekel
Subject: [cbtree] cbtree/Tree depends on ForestStoreModel and TreeStoreModel (#11)

I don't use either of them.
A larger problem is that I am getting empty dojo.js for my library build. Once I remove ForestStoreModel and TreeStoreModel from the cbtree/Tree dependencies, I am getting a working build.

If you would prefer to keep them and _store2model, I'd suggest to create cbtree/BaseTree and move all stuff there out of cbtree/Tree except _store2model


Reply to this email directly or view it on GitHub:
#11

from cbtree.

vvoovv avatar vvoovv commented on August 23, 2024

If you agree to get rid of _store2model, then just do it.

If not, then I suggest to have cbtree/BaseTree and cbtree/Tree. Cbtree/Tree is inherited from cbtree/BaseTree. Cbtree/Tree contains only one function: _store2model. Cbtree/BaseTree doesn't depend on ForestStoreModel and TreeStoreModel, but cbtree/Tree does depend on them

Regarding the build, I mean not the build for cbtree itself, but the build for my own stuff (that includes cbtree)

from cbtree.

pjekel avatar pjekel commented on August 23, 2024

I will remove _store2model, it's dependencies, and update the unit test, I don't think anybody is using dojo 1.0 anyway. That still doesn't explain why you end up with an empty dojo as the dijit tree, from which cbtree inherites, defines its own dependencies on its TreeStoreModel and ForestStoreModel.

-----Original Message-----
From: Vladimir Elistratov [mailto:[email protected]]
Sent: Monday, April 23, 2012 8:33 AM
To: pjekel
Subject: Re: [cbtree] cbtree/Tree depends on ForestStoreModel and TreeStoreModel (#11)

If you agree to get rid of _store2model, then just do it.

If not, then I suggest to have cbtree/BaseTree and cbtree/Tree. Cbtree/Tree is inherited from cbtree/BaseTree. Cbtree/Tree contains only one function: _store2model. Cbtree/BaseTree doesn't depend on ForestStoreModel and TreeStoreModel, but cbtree/Tree does depend on them

Regarding the build, I mean not the build for cbtree itself, but the build for my own stuff (that includes cbtree)


Reply to this email directly or view it on GitHub:
#11 (comment)

from cbtree.

vvoovv avatar vvoovv commented on August 23, 2024

Found the problem with my build: just a comma in the line 193 of cbtree/models/TreeStoreModel.js
Please remove it.

However I'd still vote for removal of _store2model

from cbtree.

Related Issues (20)

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.