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

Issue 129041: Updated/simplified to use options.formatters and options.predicates

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by sroussey
Modified:
10 years, 4 months ago
Reviewers:
andychu
CC:
json-template_googlegroups.com
Visibility:
Public.

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+1475 lines, -1234 lines) Patch
M javascript/json-template.js View 9 chunks +227 lines, -141 lines 9 comments Download
M jsontemplate_test.py View 1 chunk +2 lines, -2 lines 0 comments Download
M php/jsontemplate.php View 1 chunk +1238 lines, -1091 lines 0 comments Download
M php/jsontemplate_cmd.php View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 2
sroussey
Update to make the PHP and JS versions both have the same API, using options.formatters[] ...
16 years, 6 months ago (2009-10-07 01:46:59 UTC) #1
andychu
16 years, 6 months ago (2009-10-07 02:49:54 UTC) #2
These diffs are too big for me to review all at once.  There are lots of
separate changes within one diff.  Can you split them up, ideally in order of
least discussion required -> most discussion required.

thanks,
Andy

http://codereview.appspot.com/129041/diff/1/2
File javascript/json-template.js (right):

http://codereview.appspot.com/129041/diff/1/2#newcode96
Line 96: 'attr': function(s) {
this name can't be changed incompatibly

http://codereview.appspot.com/129041/diff/1/2#newcode157
Line 157: new_context= null;
On 2009/10/07 01:47:00, sroussey wrote:
> I have push() always push. Push and pop will thus always match

Why would this be necessary?  Also may be a compatibility problem.

http://codereview.appspot.com/129041/diff/1/2#newcode478
Line 478: };
On 2009/10/07 01:47:00, sroussey wrote:
> I think this is an optimization -- not recreating on each loop below. Depends
on
> the implementation of JS, which most tend not to optimize this type of stuff
> (even though most compilers do).

OK, this is probably good.  But it should be split out into separate changes.
Sign in to reply to this message.

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