ericf/yui3-gallery — Issue #20: model-sync-rest code sample crashes YUI compressor
Author: nokome
Created: 2012-01-03 04:03:22+00:00
State: open

YUI Compressor raises an error when applied to the code sample at http://yuilibrary.com/gallery/show/model-sync-rest :

18:28:invalid property id

That's because "delete" is a reserved word. The fix is to put quotes around it:

myUser.destroy({ 'delete': true }); // Will DELETE the User at: /user/123

Perhaps a different property name could be used instead of delete?