enyo.Source.commit() doesn't respect method set in options

Description

From http://forums.enyojs.com/discussion/1695/models-commit-and-method-post

I'm trying to do a commit using the POST method. Something like:

1 2 3 4 5 6 var params = {"source": source, "sourceIdType": sourceType, "fileURL":fileURL, "articleid": articleid}; var newURL = new Search.ArticleUrlModel(params); newURL.commit({postBody:params, method:"POST"});

Unfortunately, it keeps doing a PUT. Any thoughts on how to get it to do a commit? Or should overload the method?

Ben's note: the current code always overrides a method in options, choosing either PUT or POST depending on the state of the model.

Environment

all

Status

Assignee

Ben Combee (Enyo Team)

Reporter

Ben Combee (Enyo Team)

Labels

External issue ID

None

Tango Test Run Elements

None

Old Issue Key

None

Components

Affects versions

2.3.0

Priority

None