Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not replacement itemView -> childView #35

Closed
ryotakato opened this issue Feb 7, 2015 · 12 comments
Closed

Not replacement itemView -> childView #35

ryotakato opened this issue Feb 7, 2015 · 12 comments

Comments

@ryotakato
Copy link
Contributor

Hi, This is Nice tool ! Thank you.

I try change Marionette 1.8 -> Marionette 2.2.
But did'nt replace "itemView" to "childVIew" in CollectionView .

Code is

  return Backbone.Marionette.CollectionView.extend({
    itemView: SampleView,
    tagName:"ul",
    initialize: function() {
    }
  });

Why not ? Colon ?

@jamesplease
Copy link
Member

You said it yourself, the new attribute name is childView. Change that, and it should work.

@jamiebuilds
Copy link
Member

uh @jmeas if the upgrade script didnt do that dont you think thats worth looking into?

@jamesplease
Copy link
Member

Ah misread the issue!

@jamesplease jamesplease reopened this Feb 7, 2015
@ryotakato
Copy link
Contributor Author

Sorry, do not have enough words.

@jamesplease
Copy link
Member

Nah it's my fault @ryotakato. I shouldn't reply from my iPhone when I'm out buying groceries :P

@jasonLaster
Copy link
Member

@ryotakato thanks for making the issue. The tool should absolutely catch this. Because it's actually one small Python file with some regexes, id appreciate it if you took a look. The easiest thing to do is comment out the irrelevant ones and see what happens.

@ryotakato
Copy link
Contributor Author

I tryed.
And to keep apologized earlier.

In Using of README.md

$ ./upgrade.py PATH_TO_PROJECT_DIR

But I have tryed

$ ./Marionette.Upgrade/upgrade.py PATH_TO_PROJECT_DIR

so, I didn't notice to following sentence.

sh: ./bin/codemod.py: No such file or directory

I'm sorry to be fuss.

How about that change upgrade.py ? like this,

codemod = "./bin/codemod.py"

to

codemod = "%s/bin/codemod.py" %  path.dirname(__file__)

@jasonLaster
Copy link
Member

Sure. PR it up

@samccone
Copy link
Member

samccone commented Feb 9, 2015

👍

@ryotakato
Copy link
Contributor Author

This is my first pull request.
Thank you, for @jmeas , @thejameskyle , @jasonLaster , @samccone

@jasonLaster
Copy link
Member

Got it! Welcome to OSS

@ryotakato
Copy link
Contributor Author

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants