Quantcast
Viewing all articles
Browse latest Browse all 106942

RSRP-288509: Incorrect "Suspicious use of 'this' qualifier in inner function" javascript inspection warning

Reporter Image may be NSFW.
Clik here to view.
Michael (mteper)
Michael (mteper)
Created Feb 24, 2012 7:16:38 AM
Updated Feb 24, 2012 7:16:38 AM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 6.1.1
Fixed in build No Fixed in build
The following code is a common pattern with knockoutjs and should not be flagged:

    this.TimingFormatted = ko.computed(function() { return Globalize.format(this.Timing(), "n1") + " hours"; }, this);

See http://knockoutjs.com/documentation/computedObservables.html

Viewing all articles
Browse latest Browse all 106942

Trending Articles