Git Product home page Git Product logo

Comments (12)

asciidisco avatar asciidisco commented on July 26, 2024

Good catch.
I´ve came across this issue myself in the past week.
Next version of Mutators will break the current behaviour and changes the scope of the getter
functions to the model itself.

Thx, for reporting.

from backbone.mutators.

asciidisco avatar asciidisco commented on July 26, 2024

Btw.: Will be available at the end of the week or so, I´ll have to do some paid work first ;)

from backbone.mutators.

philfreo avatar philfreo commented on July 26, 2024

for what it's worth, i wrote this to use instead of your library right now

https://gist.github.com/3056724

from backbone.mutators.

asciidisco avatar asciidisco commented on July 26, 2024

Had a quick look,
there are a couple of good ideas.
Is it okay if i 'steal' some of the lines (mentioning their origin) for a future version of mutators?

from backbone.mutators.

philfreo avatar philfreo commented on July 26, 2024

of course, that's why i shared :)

from backbone.mutators.

asciidisco avatar asciidisco commented on July 26, 2024

Thank you.
I´ll leave the ticket open, so I won´t forget about it.

from backbone.mutators.

mohitmayank avatar mohitmayank commented on July 26, 2024

hi, is there any update on this.

from backbone.mutators.

philfreo avatar philfreo commented on July 26, 2024

@mohitmayank if this plugin's not updated, I suggest checking out that gist -- I've been using it successfully now for a while. probably will make my own plugin out of it at some point if there's not another good one

from backbone.mutators.

philfreo avatar philfreo commented on July 26, 2024

although looks like it may have been fixed here in 57d5f00

from backbone.mutators.

mohitmayank avatar mohitmayank commented on July 26, 2024

@philfreo thanks for your reply. i had a look at your gist earlier as well. but felt lazy at the time. wishful thinking :). anyways i am using your code now. i have also added a toJSON method to it.
Let me know if you roll a plugin with this. I'll help.
https://gist.github.com/mohitmayank/5038191

from backbone.mutators.

rubiii avatar rubiii commented on July 26, 2024

@philfreo isn't this fixed with the changeset you linked to?
using v0.3.1, the scope for both setters and getters is the model.

from backbone.mutators.

asciidisco avatar asciidisco commented on July 26, 2024

Changes are in, preparing the next release atm.

from backbone.mutators.

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.