Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
V
VISPA web
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 84
    • Issues 84
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • 3pia
  • VISPA
  • VISPA web
  • Issues
  • #710

Closed
Open
Opened May 10, 2016 by Benjamin Fischer@benjamin.fischerOwner

Use less self and bind instead

Instead of

var self = this;
doSomeStuffAsync(function(result){
  self.processThe(result);
});

use

doSomeStuffAsync(function(result){
  this.processThe(result);
}.bind(this));

(Only if the this object of the callback is not needed.)

(from redmine: issue id 2355, created on 2016-05-10 by benjamin.fischer)

Assignee
Assign to
4.0
Milestone
4.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: 3pia/vispa/vispa-web#710