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

Serialization #611

Merged
merged 1 commit into from Dec 20, 2013
Merged

Serialization #611

merged 1 commit into from Dec 20, 2013

Conversation

daffl
Copy link
Contributor

@daffl daffl commented Dec 20, 2013

can.Model doesn't use serialize object while saving and using can.Model.Queue plugin

@justinbmeyer
Copy link
Contributor

Please provide an example of what you mean.

@szmeku
Copy link
Author

szmeku commented Dec 14, 2013

CustomModel = can.Model.extend({ 
  attributes: {
    variable: 'type'
  },
  serialize: {
    type: function(val){
      return val + ' some suffix';
    }
  }
},{})

c = new CustomModel({ variable: 'lkfjsal' });

c.save();

this doesn't save c with variable === 'lkfjsal some suffix' when i'll include can.Model.Queue sources

@szmeku
Copy link
Author

szmeku commented Dec 20, 2013

thx

@daffl daffl reopened this Dec 20, 2013
daffl added a commit that referenced this pull request Dec 20, 2013
@daffl daffl merged commit 8978cee into master Dec 20, 2013
@daffl daffl deleted the queue-serialize-fix branch December 20, 2013 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants