Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Issue 484083002: Use new operator consistently for constructor-like functions. (Closed)

Created:
6 years, 4 months ago by fukino
Modified:
6 years, 4 months ago
Reviewers:
hirono
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Use new operator consistently for constructor-like functions. Function MainPanelScrollBar() is not a constructor, but it behaves like a constructor. We can use new consistently for such functions. BUG=none TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290741

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use new operator consistently for constructor-like functions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M ui/file_manager/file_manager/foreground/js/directory_tree.js View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_table.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
fukino
@hirono - could you take a look? Regarding to the http://bclary.com/2004/11/07/#a-13.2.2, the new isn't harmful ...
6 years, 4 months ago (2014-08-19 08:19:39 UTC) #1
hirono
https://codereview.chromium.org/484083002/diff/1/ui/file_manager/file_manager/foreground/js/file_grid.js File ui/file_manager/file_manager/foreground/js/file_grid.js (right): https://codereview.chromium.org/484083002/diff/1/ui/file_manager/file_manager/foreground/js/file_grid.js#newcode46 ui/file_manager/file_manager/foreground/js/file_grid.js:46: self.scrollBar_ = MainPanelScrollBar(); There is another confusion here. MainPanelScrollBar ...
6 years, 4 months ago (2014-08-19 08:58:18 UTC) #2
fukino
On 2014/08/19 08:58:18, hirono wrote: > https://codereview.chromium.org/484083002/diff/1/ui/file_manager/file_manager/foreground/js/file_grid.js > File ui/file_manager/file_manager/foreground/js/file_grid.js (right): > > https://codereview.chromium.org/484083002/diff/1/ui/file_manager/file_manager/foreground/js/file_grid.js#newcode46 > ...
6 years, 4 months ago (2014-08-19 09:07:05 UTC) #3
fukino
On 2014/08/19 09:07:05, fukino wrote: > On 2014/08/19 08:58:18, hirono wrote: > > > https://codereview.chromium.org/484083002/diff/1/ui/file_manager/file_manager/foreground/js/file_grid.js ...
6 years, 4 months ago (2014-08-19 09:23:04 UTC) #4
hirono
lgtm. Thank you!
6 years, 4 months ago (2014-08-20 02:04:30 UTC) #5
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 4 months ago (2014-08-20 02:24:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/484083002/20001
6 years, 4 months ago (2014-08-20 02:26:17 UTC) #7
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 03:28:29 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (20001) as 290741

Powered by Google App Engine
This is Rietveld 408576698