diff --git a/bower.json b/bower.json index 0b70dc1..2281f31 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "include-media-export", - "version": "1.0.1", + "version": "1.0.2", "homepage": "https://github.com/eduardoboucas/include-media-export", "authors": [ "Eduardo Boucas " diff --git a/dist/include-media-1.0.1.min.js b/dist/include-media-1.0.1.min.js deleted file mode 100644 index 63fcf90..0000000 --- a/dist/include-media-1.0.1.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.im=t()}(this,function(){function e(e){c=e}function t(e){"manual"==e&&(f=!1,n())}function n(){if(window.getComputedStyle&&""!==window.getComputedStyle(c,"::after").content){var e=window.getComputedStyle(c,"::after").content;try{l=JSON.parse(i(e))}catch(t){}}}function a(e){return f&&n(),l.hasOwnProperty(e)&&l[e].active}function o(e){return!a(e)}function r(){f&&n();var e={name:!1,value:0};for(var t in l)if(l.hasOwnProperty(t)){var a=parseFloat(l[t].value);l[t].active&&a>e.value&&(e={name:t,value:a})}return e.name}function u(e,t){return f&&n(),l&&l.hasOwnProperty(e)?t?parseFloat(l[e].value):l[e].value:!1}function i(e){return("string"==typeof e||e instanceof String)&&(e=e.replace(/[']/g,'"').replace(/\\|^[\s\S]{0,1}|[\s\S]$/g,"")),e}var c=document.body,f=!0,l=!1;return{setElement:e,setUpdateMode:t,greaterThan:a,lessThan:o,getActive:r,getValue:u,update:n}}); \ No newline at end of file diff --git a/dist/include-media-1.0.2.min.js b/dist/include-media-1.0.2.min.js new file mode 100644 index 0000000..4edbda0 --- /dev/null +++ b/dist/include-media-1.0.2.min.js @@ -0,0 +1 @@ +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.im=t()}(this,function(){function e(e){c=e}function t(e){"manual"==e&&(f=!1,n())}function n(){if(window.getComputedStyle&&""!==window.getComputedStyle(c,"::after").content){var e=window.getComputedStyle(c,"::after").content;try{l=JSON.parse(i(e))}catch(t){}}else l=!1}function a(e){return f&&n(),l.hasOwnProperty(e)&&l[e].active}function o(e){return!a(e)}function r(){f&&n();var e={name:!1,value:0};for(var t in l)if(l.hasOwnProperty(t)){var a=parseFloat(l[t].value);l[t].active&&a>e.value&&(e={name:t,value:a})}return e.name}function u(e,t){return f&&n(),l&&l.hasOwnProperty(e)?t?parseFloat(l[e].value):l[e].value:!1}function i(e){return("string"==typeof e||e instanceof String)&&(e=e.replace(/[']/g,'"').replace(/\\|^[\s\S]{0,1}|[\s\S]$/g,"")),e}var c=document.body,f=!0,l=!1;return{setElement:e,setUpdateMode:t,greaterThan:a,lessThan:o,getActive:r,getValue:u,update:n}}); \ No newline at end of file diff --git a/include-media.js b/include-media.js index f132683..b9f716f 100644 --- a/include-media.js +++ b/include-media.js @@ -29,6 +29,8 @@ try { breakpoints = JSON.parse(removeQuotes(data)); } catch (err) {} + } else { + breakpoints = false; } } diff --git a/package.json b/package.json index 48df20d..eaf320e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "title": "include-media-export", "name": "include-media-export", - "version": "1.0.1", + "version": "1.0.2", "description": "An include-media plugin for exporting breakpoints from Sass to JavaScript", "repository": { "type": "git",