diff --git a/js/onmediaquery.js b/js/onmediaquery.js index b789025..ffd32ed 100755 --- a/js/onmediaquery.js +++ b/js/onmediaquery.js @@ -151,6 +151,10 @@ callback_function(); } + if(this._inArray('*', this.callbacks[i].context) && callback_function !== undefined) { + callback_function(size); + } + } }; diff --git a/js/onmediaquery.min.js b/js/onmediaquery.min.js index a3d9c71..6a29f85 100644 --- a/js/onmediaquery.min.js +++ b/js/onmediaquery.min.js @@ -2,5 +2,5 @@ (function(b,a){"function"===typeof define&&define.amd?define(function(){return b.MQ=a(b.MQ||{})}):b.MQ=a(b.MQ||{})})(this,function(b){b.init=function(a){this.callbacks=[];this.new_context=this.context="";if("undefined"!==typeof a)for(i=0;ic?Math.max(0,d+c):c:0;cc?Math.max(0,d+c):c:0;c