angular-stackables
Advanced tools
Comparing version 0.0.20 to 0.0.21
{ | ||
"name": "angular-stackables", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "AngularJS stackable widgets built on HTML5 dialog.", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "angular-stackables", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"dependencies": {} | ||
} |
@@ -44,3 +44,7 @@ /*! | ||
var parentDialog = element.parent().closest('dialog'); | ||
if(parentDialog.length > 0) { | ||
if(parentDialog.length === 0) { | ||
// no dialog parent; move dialog to body to simplify z-indexing | ||
body.append(dialog); | ||
} else { | ||
// ensure element is above parent dialog | ||
var zIndex = parentDialog.css('z-index'); | ||
@@ -53,10 +57,10 @@ var zIndexInt = parseInt(zIndex, 10); | ||
// ensure child dialog is a direct descendant of parent (should work | ||
// for both native modal <dialog> which will only show the child on top | ||
// if it is not moved to the body and for polyfill which relies on | ||
// z-index contexts) | ||
parentDialog.append(dialog); | ||
} else { | ||
// no dialog parent; move dialog to body to simplify z-indexing | ||
body.append(dialog); | ||
// ensure child dialog is a direct descendant of parent for | ||
// native modal <dialog> which will only show the dialog and | ||
// its descendants | ||
if(!usePolyfill) { | ||
parentDialog.append(dialog); | ||
} else { | ||
body.append(dialog); | ||
} | ||
} | ||
@@ -122,4 +126,4 @@ | ||
scope.$on('$destroy', function() { | ||
dialog.removeEventListener(cancelListener); | ||
dialog.removeEventListener(closeListener); | ||
dialog.removeEventListener('cancel', cancelListener); | ||
dialog.removeEventListener('close', closeListener); | ||
}); | ||
@@ -126,0 +130,0 @@ }; |
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
25413
717