Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(962)

Issue 9285045: Implement named model-path argument for actions. Fix view controller tests (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by rafaelw
Modified:
11 years ago
Reviewers:
arv
CC:
mdv-reviews_googlegroups.com
Base URL:
https://github.com/toolkitchen/mdv.git@v3
Visibility:
Public.

Description

Implement named model-path argument for actions. Fix view controller tests R=arv BUG= Committed: https://github.com/toolkitchen/mdv/commit/d17a9cf

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -9 lines) Patch
M examples/util/view_controller.js View 3 chunks +15 lines, -8 lines 2 comments Download
M examples/util/view_controller_test.html View 1 chunk +5 lines, -0 lines 0 comments Download
M examples/util/view_controller_test.js View 2 chunks +32 lines, -1 line 3 comments Download

Messages

Total messages: 2
rafaelw
Committed patchset #1 manually as rd17a9cf (presubmit successful).
11 years ago (2013-05-07 20:35:59 UTC) #1
arv
11 years ago (2013-05-07 21:26:48 UTC) #2
Message was sent while issue was closed.
LGTM with nits

https://codereview.appspot.com/9285045/diff/1/examples/util/view_controller.js
File examples/util/view_controller.js (right):

https://codereview.appspot.com/9285045/diff/1/examples/util/view_controller.j...
examples/util/view_controller.js:46: var actionPattern =
/([\w]*)[\s]*:[\s]*([\w]*)(\(([\w\.\$]*)\)){0,1}/;
This regexp is overly complex. [\w]* can be \w*

https://codereview.appspot.com/9285045/diff/1/examples/util/view_controller.j...
examples/util/view_controller.js:114: var model = undefined;
var model;

https://codereview.appspot.com/9285045/diff/1/examples/util/view_controller_t...
File examples/util/view_controller_test.js (right):

https://codereview.appspot.com/9285045/diff/1/examples/util/view_controller_t...
examples/util/view_controller_test.js:94: this.model = { foo: 1, bar: 2 };
{foo: 1, bar: 2}

https://codereview.appspot.com/9285045/diff/1/examples/util/view_controller_t...
examples/util/view_controller_test.js:101: }
};

https://codereview.appspot.com/9285045/diff/1/examples/util/view_controller_t...
examples/util/view_controller_test.js:106: '<li
data-action="click:handleClick(bar)">{{ foo }}</li>' +
long line
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b