diff --git a/package.json b/package.json index 469e8f1..bda29d3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "npm run build; mocha", "prepublish": "npm test", - "build": "./node_modules/uglify-js/bin/uglifyjs viral.js > viral.min.js" + "build": "./node_modules/uglify-js/bin/uglifyjs viral.js -m > viral.min.js" }, "devDependencies": { "uglify-js": "2.2.5", diff --git a/viral.min.js b/viral.min.js index 086693e..fd24b74 100644 --- a/viral.min.js +++ b/viral.min.js @@ -1 +1 @@ -void function(root){"use strict";var create=Object.create||function(o){var F=function(){};F.prototype=o;return new F};var extend=function(to,from){for(var p in from)to[p]=from[p];return to};var Viral={extend:function(props){return extend(create(this),props)},make:function(){var obj=create(this);if(typeof this.init==="function")this.init.apply(obj,arguments);return obj}};if(typeof module!=="undefined"&&module.exports)module.exports=Viral;else if(typeof define==="function"&&define.amd)define(Viral);else root.Viral=Viral}(this); \ No newline at end of file +void function(e){"use strict";var t=Object.create||function(e){var t=function(){};t.prototype=e;return new t};var n=function(e,t){for(var n in t)e[n]=t[n];return e};var i={extend:function(e){return n(t(this),e)},make:function(){var e=t(this);if(typeof this.init==="function")this.init.apply(e,arguments);return e}};if(typeof module!=="undefined"&&module.exports)module.exports=i;else if(typeof define==="function"&&define.amd)define(i);else e.Viral=i}(this); \ No newline at end of file