Opened 12 years ago

Last modified 10 years ago

#5404 closed bug

remove uses of 'var self = this;' — at Initial Version

Reported by: rdworth Owned by:
Priority: minor Milestone: 1.9.0
Component: [meta] ui.dev Version: 1.8
Keywords: Cc:
Blocked by: Blocking:

Description

var self = this;

is used in many plugins but not recommended best practice because if self isn't defined in a scope it will reference window.self

http://www.javascriptkata.com/2007/05/14/how-to-use-the-self-with-object-oriented-javascript-and-closures/#comment-220

It should be removed from all plugins and replaced by something like 'that' or '_this'.

Change History (0)

Note: See TracTickets for help on using tickets.