If you make "dojo/dom-style" match up to domStyle at the AMD define signature, you could do the following with domStyle:
var tallness = domStyle.get(this.whatever, "height");
If you make "dojo/dom-style" match up to domStyle at the AMD define signature, you could do the following with domStyle:
var tallness = domStyle.get(this.whatever, "height");
One typically defines variables like so:
!define PLACEINSTARTMENU "$SMPROGRAMS\${MYOTHERVARIABLE}"
This suggests that $SMPROGRAMS will just be available however. I guess there is a difference between a dollar sign followed by letters and a dollar sign followed by letters in curly brackets. Oh, boy... Installer! :P
Addendum: "environmental variable" is probably a better way to describe $SMPROGRAMS in lieu of: "global variable"
If "dojo/dom-construct" corresponds with domConstruct then the following is legitimate:
var table = domConstruct.create("table");
function updateScore(increment) {
game.score = game.score + increment;
var numberArray = (game.score + "").split("");
var htmlForScore = "";
numberArray.forEach(function (number) {
htmlForScore = htmlForScore + "<li style=\"background-image: url('score_" +
number + ".png');\"></li>";
});
$('#whatever ul').html(htmlForScore);
}
$(function() {
document.onkeydown = function() {
switch (window.event.keyCode) {
case 37:
if (whatever) {
Per this the blob above had to be refactored into the blob below. What is above accomodated IE 10, Chrome, and Safari. What is below accomodates IE 10, Chrome, Safari, and now Firefox too.
$(function() {
document.onkeydown = function(event) {
var key;
if (window.event) {
key = window.event.keyCode;
} else {
key = event.which;
}
switch (key) {
case 37:
if (whatever) {