Comments (12)
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.
Btw.: Will be available at the end of the week or so, I´ll have to do some paid work first ;)
from backbone.mutators.
for what it's worth, i wrote this to use instead of your library right now
https://gist.github.com/3056724
from backbone.mutators.
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.
of course, that's why i shared :)
from backbone.mutators.
Thank you.
I´ll leave the ticket open, so I won´t forget about it.
from backbone.mutators.
hi, is there any update on this.
from backbone.mutators.
@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.
although looks like it may have been fixed here in 57d5f00
from backbone.mutators.
@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.
@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.
Changes are in, preparing the next release atm.
from backbone.mutators.
Related Issues (20)
- Using w/ Require AMD - this.mutators is undefined throws Type Error - Line 169
- `this` differs when in .get() and .toJSON() HOT 3
- Catching Models Events: Get Method Causes Uncaught TypeError: Object has no method 'get' HOT 1
- npm - TypeError: Cannot read property 'Backbone' of undefined HOT 1
- Having any setter method makes 'defaults' of other properties "undefined" HOT 3
- release 0.3.1 via npm HOT 5
- TypeError: Object #<Object> has no method 'apply' HOT 1
- Website fails to load content HOT 3
- Getter update problem HOT 2
- dependent fields? HOT 2
- Setting hashes with Mutators breaks Backbone atomicity HOT 1
- GIT tag for 0.4.1 HOT 1
- Can't override getter - Maximum call stack size exceeded HOT 9
- incompatible with browserify HOT 3
- Bug: Unable to set deep objects to models without mutators HOT 1
- Integrating mutators with backbone.relational HOT 1
- Setting attributes using an object HOT 4
- Combing Set / Get Method HOT 3
- escape method cache issue HOT 1
- Bug in the documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone.mutators.