Skip to content

Control initialize "this" context messed up? #11

@instantdelay

Description

@instantdelay

In QuickUI 0.9.4, I can't get the following code to work anymore:

class window.Demo extends Control
  initialize: ->
    @someProp = 100

  doStuff: ->
    @someProp

Demo.create().doStuff #returns undefined

If I set someProp from any other function it works. The same code was working in a previous version of QuickUI. It seems like "this" in the initialize function is something completely different from elsewhere.

I'm using CoffeeScript 1.6.2. Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions