Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Commit 20a30a6

Browse files
author
Amir Tocker
committed
Version 2.1.6
1 parent c6e5095 commit 20a30a6

23 files changed

+37
-41
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloudinary-core",
3-
"version": "2.1.5",
3+
"version": "2.1.6",
44
"homepage": "http://cloudinary.com",
55
"authors": [
66
{

cloudinary-core-shrinkwrap.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7214,16 +7214,14 @@ var slice = [].slice,
72147214
*/
72157215

72167216
Cloudinary.prototype.cloudinary_update = function(elements, options) {
7217-
var client_hints, containerWidth, dataSrc, j, len, match, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, requiredWidth, responsive, responsiveClass, roundDpr, setUrl, tag;
7217+
var containerWidth, dataSrc, j, len, match, ref, ref1, ref2, ref3, ref4, ref5, requiredWidth, responsive, responsiveClass, roundDpr, setUrl, tag;
72187218
if (options == null) {
72197219
options = {};
72207220
}
7221-
client_hints = (ref = (ref1 = options.client_hints) != null ? ref1 : this.config('client_hints')) != null ? ref : false;
7222-
client_hints = client_hints || (typeof document !== "undefined" && document !== null ? document.querySelector('meta[http-equiv="Accept-CH"]') : void 0);
7223-
if (client_hints || elements === null) {
7221+
if (elements === null) {
72247222
return this;
72257223
}
7226-
responsive = (ref2 = (ref3 = options.responsive) != null ? ref3 : this.config('responsive')) != null ? ref2 : false;
7224+
responsive = (ref = (ref1 = options.responsive) != null ? ref1 : this.config('responsive')) != null ? ref : false;
72277225
elements = (function() {
72287226
switch (false) {
72297227
case !Util.isArray(elements):
@@ -7236,15 +7234,15 @@ var slice = [].slice,
72367234
return [elements];
72377235
}
72387236
})();
7239-
responsiveClass = (ref4 = (ref5 = this.responsiveConfig['responsive_class']) != null ? ref5 : options['responsive_class']) != null ? ref4 : this.config('responsive_class');
7240-
roundDpr = (ref6 = options['round_dpr']) != null ? ref6 : this.config('round_dpr');
7237+
responsiveClass = (ref2 = (ref3 = this.responsiveConfig['responsive_class']) != null ? ref3 : options['responsive_class']) != null ? ref2 : this.config('responsive_class');
7238+
roundDpr = (ref4 = options['round_dpr']) != null ? ref4 : this.config('round_dpr');
72417239
for (j = 0, len = elements.length; j < len; j++) {
72427240
tag = elements[j];
7243-
if (!((ref7 = tag.tagName) != null ? ref7.match(/img/i) : void 0)) {
7241+
if (!((ref5 = tag.tagName) != null ? ref5.match(/img/i) : void 0)) {
72447242
continue;
72457243
}
72467244
setUrl = true;
7247-
if (responsive && !client_hints) {
7245+
if (responsive) {
72487246
Util.addClass(tag, responsiveClass);
72497247
}
72507248
dataSrc = Util.getData(tag, 'src-cache') || Util.getData(tag, 'src');

cloudinary-core-shrinkwrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core-shrinkwrap.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3719,16 +3719,14 @@ var slice = [].slice,
37193719
*/
37203720

37213721
Cloudinary.prototype.cloudinary_update = function(elements, options) {
3722-
var client_hints, containerWidth, dataSrc, j, len, match, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, requiredWidth, responsive, responsiveClass, roundDpr, setUrl, tag;
3722+
var containerWidth, dataSrc, j, len, match, ref, ref1, ref2, ref3, ref4, ref5, requiredWidth, responsive, responsiveClass, roundDpr, setUrl, tag;
37233723
if (options == null) {
37243724
options = {};
37253725
}
3726-
client_hints = (ref = (ref1 = options.client_hints) != null ? ref1 : this.config('client_hints')) != null ? ref : false;
3727-
client_hints = client_hints || (typeof document !== "undefined" && document !== null ? document.querySelector('meta[http-equiv="Accept-CH"]') : void 0);
3728-
if (client_hints || elements === null) {
3726+
if (elements === null) {
37293727
return this;
37303728
}
3731-
responsive = (ref2 = (ref3 = options.responsive) != null ? ref3 : this.config('responsive')) != null ? ref2 : false;
3729+
responsive = (ref = (ref1 = options.responsive) != null ? ref1 : this.config('responsive')) != null ? ref : false;
37323730
elements = (function() {
37333731
switch (false) {
37343732
case !Util.isArray(elements):
@@ -3741,15 +3739,15 @@ var slice = [].slice,
37413739
return [elements];
37423740
}
37433741
})();
3744-
responsiveClass = (ref4 = (ref5 = this.responsiveConfig['responsive_class']) != null ? ref5 : options['responsive_class']) != null ? ref4 : this.config('responsive_class');
3745-
roundDpr = (ref6 = options['round_dpr']) != null ? ref6 : this.config('round_dpr');
3742+
responsiveClass = (ref2 = (ref3 = this.responsiveConfig['responsive_class']) != null ? ref3 : options['responsive_class']) != null ? ref2 : this.config('responsive_class');
3743+
roundDpr = (ref4 = options['round_dpr']) != null ? ref4 : this.config('round_dpr');
37463744
for (j = 0, len = elements.length; j < len; j++) {
37473745
tag = elements[j];
3748-
if (!((ref7 = tag.tagName) != null ? ref7.match(/img/i) : void 0)) {
3746+
if (!((ref5 = tag.tagName) != null ? ref5.match(/img/i) : void 0)) {
37493747
continue;
37503748
}
37513749
setUrl = true;
3752-
if (responsive && !client_hints) {
3750+
if (responsive) {
37533751
Util.addClass(tag, responsiveClass);
37543752
}
37553753
dataSrc = Util.getData(tag, 'src-cache') || Util.getData(tag, 'src');

cloudinary-core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Cloudinary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4831,7 +4831,7 @@ <h5>Returns:
48314831

48324832
<span class="jsdoc-message">
48334833
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
4834-
on Mon Oct 10th 2016 using the <a
4834+
on Wed Oct 26th 2016 using the <a
48354835
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
48364836
</span>
48374837
</footer>

docs/Condition.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ <h5>Returns:
15731573

15741574
<span class="jsdoc-message">
15751575
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
1576-
on Mon Oct 10th 2016 using the <a
1576+
on Wed Oct 26th 2016 using the <a
15771577
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
15781578
</span>
15791579
</footer>

docs/Configuration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ <h5>Returns:
12691269

12701270
<span class="jsdoc-message">
12711271
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
1272-
on Mon Oct 10th 2016 using the <a
1272+
on Wed Oct 26th 2016 using the <a
12731273
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
12741274
</span>
12751275
</footer>

0 commit comments

Comments
 (0)