ab-interchange
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -88,3 +88,2 @@ !(function(name, definition) { | ||
if (match) { | ||
console.log(this.currentPath, path); | ||
this._replace(path); | ||
@@ -124,5 +123,9 @@ } else { | ||
else { | ||
$.get(path, function(response) { | ||
that.$element.html(response).trigger(trigger); | ||
}); | ||
if (path === "") { | ||
that.$element.empty(); | ||
} else { | ||
$.get(path, function(response) { | ||
that.$element.html(response).trigger(trigger); | ||
}); | ||
} | ||
} | ||
@@ -129,0 +132,0 @@ } |
{ | ||
"name": "ab-interchange", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "AB-interchange: While responsive image loading is not really an easy task even today, here is a solution to manage conditional (based on breakpoints) loading of img, background-image or even HTML content.", | ||
@@ -5,0 +5,0 @@ "main": "ab-interchange.js", |
@@ -56,3 +56,3 @@ # AB-interchange | ||
``` | ||
<div data-ab-interchange="[small-content.html, small], [medium-content.html, medium], [large-content.html.jpg, large]"></div> | ||
``` | ||
<div data-ab-interchange="[small-content.html, small], [medium-content.html, medium], [large-content.html, large]"></div> | ||
``` |
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
7708
116
58