Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThis won't work (http://jsfiddle.net/phusick/BzZQB) because mixing in the constructor parameters happens after `constructor`, `create` and `postMixInProperties` and before `postCreate`, so whatever you change in the constructor, it will be changed back later during instantiation (via `_applyAttributes` method). Other possibility, if you want to avoid using setters/getters, is to mutate `this.params` object in `postMixInProperties` like here http://jsfiddle.net/phusick/ZupZE, but this is much less readable than having setters/getters and default parameters in an object named `defaults`.
      singulars
    2. COWhat are you trying to achieve here? In that fiddle this.showControls was true, "wrong" and undefined (actually threw an error, so you may want to change that line in the constructor) what is your desired behaviour? Why do you expect this.showControls to be set already? In your first code block, do you think the var showControls = true is attached to your declaration? Look at my code sample, to set a default, just do showControls : true,
      singulars
    3. COI can't say for sure what @user2010651 is about achieve, but since you react to my comment, I'll provide my insight: if `showControls` property of the 1st argument object of the constructor is `boolean` then set instance property `showControls` to this value (true || false), otherwise set it to the default value (which is true). Your code sets it to any value passed and therefore it won't pass the unit tests provided.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload