diff --git a/CHANGELOG.md b/CHANGELOG.md index 07bd444..5d616a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,23 @@ --- +## v0.1.1 +#### July 26, 2012 + +* Bumped version number. +* Made "private" methods truly private. + * [More info here](http://stackoverflow.com/questions/11621430/javascript-module-pattern-when-to-go-private-with-methods-getters-setters-roo/11621455). +* Updated README.md. +* Removed outside `MQ || {}` check. + * [More info here](https://gist.github.com/3186282). +* Updated minified script: Using [YUI Compressor 2.4.2](http://compressorrater.thruhere.net/) with `nomunge`, `preserveAllSemi`, `disableOpt` options. + +##### Browser tests: + +* Coming tomorrow... + +--- + ## v0.1.0 #### July 22, 2012 diff --git a/README.md b/README.md index 1bf0cad..60a33ac 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This has a number of advantages over using `window.matchMedia()`, namely that yo ### 1. CSS -Define a set of html `font-family` and/or `:after` strings in your stylesheet that correspond to the media queries you wish to test for: +Define a set of html `font-family` **and** `:after` strings in your stylesheet that correspond to the media queries you wish to test for: ```css html { font-family: "small"; } diff --git a/js-media-queries/onmediaquery-0.1.0.js b/js-media-queries/onmediaquery-0.1.0.js index ccb6768..9a1efef 100755 --- a/js-media-queries/onmediaquery-0.1.0.js +++ b/js-media-queries/onmediaquery-0.1.0.js @@ -6,12 +6,12 @@ * @license Released under the MIT license. * http://www.opensource.org/licenses/mit-license.php * @version 0.1.0 - * @date Sun 23 July, 2012 + * @date Sun 26 July, 2012 */ var MQ = (function(mq) { - mq = mq || {}; // Is this redundant? + mq = mq || {}; // Assign mq to mq or an empty object. //-------------------------------------------------------------------------- // @@ -265,4 +265,4 @@ var MQ = (function(mq) { return mq; // Expose the API. -}(MQ || {})); \ No newline at end of file +}(MQ)); \ No newline at end of file diff --git a/js-media-queries/onmediaquery-0.1.0.min.js b/js-media-queries/onmediaquery-0.1.0.min.js index c2a188c..a769efb 100644 --- a/js-media-queries/onmediaquery-0.1.0.min.js +++ b/js-media-queries/onmediaquery-0.1.0.min.js @@ -1 +1 @@ -/* https://github.com/JoshBarr/js-media-queries */var MQ=(function(mq){var mq=mq||{};mq.init=function(query){this.callbacks=[];this.context="";this.new_context="";if(typeof query!=="undefined"){for(var i=0,l=query.length;i-1){this.callbacks.splice(match,1);}}};function _listenForChange(){var context=_contentAfter(document.body)||_fontFamily(document.documentElement);if(context){context=context.replace(/['",]/g,"");if(context!==this.context){this.new_context=context;_triggerCallbacks.call(this,this.new_context);}this.context=this.new_context;}}function _triggerCallbacks(context){if(context){var callback_function;for(var i=0,l=this.callbacks.length;i-1){this.callbacks.splice(match,1);}}};function _listenForChange(){var context=_contentAfter(document.body)||_fontFamily(document.documentElement);if(context){context=context.replace(/['",]/g,"");if(context!==this.context){this.new_context=context;_triggerCallbacks.call(this,this.new_context);}this.context=this.new_context;}}function _triggerCallbacks(context){if(context){var callback_function;for(var i=0,l=this.callbacks.length;i