Model.reset() does not reset the id #1982

Open
dpobel opened this Issue Nov 28, 2014 · 0 comments

Projects

None yet

1 participant

@dpobel
dpobel commented Nov 28, 2014

It seems like the reset() method on a model instance does not reset the id attribute correctly.
Example:

var model = new Y.Model();
model.set('id', 'an id');
model.reset();
// model.get('id') still returns 'an id'

For an unknown reason (to me), at some point the internal state of model object gets the id value as its initValue and this breaks the reset process.

@dpobel dpobel added a commit to ezsystems/PlatformUIBundle that referenced this issue Nov 28, 2014
@dpobel dpobel Fix EZP-23584: Impossible to edit and publish the same content 2 time…
…s in a row

This is caused by yui/yui3#1982 and the fix introduces
a workaround for that.
e9f6d49
@dpobel dpobel added a commit to ezsystems/PlatformUIBundle that referenced this issue Nov 28, 2014
@dpobel dpobel Fix EZP-23584: Impossible to edit and publish the same content 2 time…
…s in a row

This is caused by yui/yui3#1982 and the fix introduces
a workaround for that.
c193018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment