dialog-promise
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -342,12 +342,15 @@ "use strict"; | ||
} | ||
var tdLabel=row.insertCell(); | ||
var labelElement=document.createElement('label'); | ||
labelElement.textContent=menuOption.label; | ||
if('value' in menuOption || 'doneFun' in menuOption){ | ||
row.className='dialog-menu-option'; | ||
tdLabel.addEventListener('click', doDone); | ||
}else{ | ||
row.className='dialog-menu-non-option'; | ||
} | ||
tdLabel.appendChild(labelElement); | ||
var labels=menuOption.label?[menuOption.label]:menuOption.labels; | ||
labels.forEach(function(label){ | ||
var tdLabel=row.insertCell(); | ||
var labelElement=document.createElement('label'); | ||
labelElement.textContent=label; | ||
if('value' in menuOption || 'doneFun' in menuOption){ | ||
row.className='dialog-menu-option'; | ||
tdLabel.addEventListener('click', doDone); | ||
}else{ | ||
row.className='dialog-menu-non-option'; | ||
} | ||
tdLabel.appendChild(labelElement); | ||
}); | ||
}; |
{ | ||
"name": "dialog-promise", | ||
"description": "Dialog that returns promises", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
@@ -6,0 +6,0 @@ "repository": "codenautas/dialog-promise", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22057
438