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

Issue 5681: Enables Firebug Logging in templates

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 7 months ago by levik
Modified:
11 years, 4 months ago
Reviewers:
shindig-dev, Evan Gilbert, davidbyttow
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

The os.log() function will now use Firebug console if available. Creates an alias to this as the global log() function for use by internal JSTemplate error handling.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
features/opensocial-templates/base.js View 1 chunk +16 lines, -2 lines 2 comments Download

Messages

Total messages: 3
levik
17 years, 7 months ago (2008-09-18 16:34:17 UTC) #1
davidbyttow
On 2008/09/18 16:34:17, levik wrote: > LGTM
17 years, 7 months ago (2008-09-18 16:47:56 UTC) #2
Evan Gilbert
17 years, 7 months ago (2008-09-18 20:49:54 UTC) #3
http://codereview.appspot.com/5681/diff/1/2
File features/opensocial-templates/base.js (right):

http://codereview.appspot.com/5681/diff/1/2#newcode60
Line 60: log = os.log;
I'm not clear what "log" variable this is referring to.

http://codereview.appspot.com/5681/diff/1/2#newcode62
Line 62: window['log'] = os.log;
It seems a little dangerous to be overriding variables in the global scope. Is
window['log'] required for JsTemplates logging? And is there a longer version
that might be less likely to conflict with user-defined variables?
Sign in to reply to this message.

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