PDA

View Full Version : [FIXED] Designer 2.0 beta 1 reserved words



qooleot
19 Mar 2012, 10:47 AM
Designer 2.0 beta 1 build 309 reserved words



If you try and use a reserved word for a Model's field's 'name' property, such as "delete" - it just reverts that name to the previous value. "delete" would actually be a common word to want to name a column's dataIndex (and thus name of the field in the model) if its like say an action column with a delete link.

My feature request:

It would be nice if it notified the user that was a reserve word.

Phil.Strong
14 Jun 2012, 12:03 PM
the list of reserved words we don't allow fields names to be


break|do|instanceof|typeof|case|else|new|var|catch|finally|return|void|continue|for|switch|while|debugger|function|this|with|default|if|throw|delete|in|try|class|enum|extends|super|const|export|import|implements|let|private|public|yield|interface|package|protected|static|null|true|false

We do now show a message that reserved words cannot be used.