Skip to content

Instantly share code, notes, and snippets.

@ItsAsbreuk
Last active December 17, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItsAsbreuk/5599714 to your computer and use it in GitHub Desktop.
Save ItsAsbreuk/5599714 to your computer and use it in GitHub Desktop.
Y.PieModel = Y.Base.create('pieModel', Y.Model, [], {
initializer: function () {
this.internalModellist = new Y.ModelList();
},
_setModelList: function (newdata) {
return this.internalModellist.reset(newdata);
}
},
{
ATTRS: {
internalModellist: {
setter: '_setModelList'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment