diff --git a/bower.json b/bower.json index 84bc83d..7facd0d 100755 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jsVideoUrlParser", - "version": "0.2.2", + "version": "0.2.3", "homepage": "https://github.com/Zod-/jsVideoUrlParser", "main": "./dist/jsVideoUrlParser.min.js", "authors": [{ diff --git a/dist/jsVideoUrlParser.js b/dist/jsVideoUrlParser.js index aa636dd..532d1aa 100644 --- a/dist/jsVideoUrlParser.js +++ b/dist/jsVideoUrlParser.js @@ -1,4 +1,4 @@ -(function (w) { +(function () { 'use strict'; /*jshint unused:false */ @@ -766,10 +766,10 @@ Youku.prototype.createFlashUrl = function (vi, params) { urlParser.bind(new Youku()); -if (typeof w !== 'undefined') { - w.urlParser = urlParser; +if (typeof window !== 'undefined') { + window.urlParser = urlParser; } if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { module.exports = urlParser; } -})(window); +})(); diff --git a/dist/jsVideoUrlParser.min.js b/dist/jsVideoUrlParser.min.js index e577a0a..7033a4d 100644 --- a/dist/jsVideoUrlParser.min.js +++ b/dist/jsVideoUrlParser.min.js @@ -1 +1 @@ -!function(a){"use strict";function b(a){if(null===a||"object"!=typeof a)return a;var c=a.constructor();for(var d in a)a.hasOwnProperty(d)&&(c[d]=b(a[d]));return c}function c(a){if("string"!=typeof a)return{};a=a.split("+").join(" ");var b,c={},d=a.match(/(?:[\?](?:[^=]+)=(?:[^&#]*)(?:[&](?:[^=]+)=(?:[^&#]*))*(?:[#].*)?)|(?:[#].*)/);if(null===d)return{};b=d[0].substr(1).split(/[&#=]/);for(var e=0;e