Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed min generation

  • Loading branch information...
commit e0636218761330d57ebada0b1057bf4f81611126 1 parent 53e3a2d
@doug-martin authored
Showing with 4 additions and 10 deletions.
  1. +3 −6 extender-min.js
  2. +0 −3  extender.min.js
  3. +1 −1  grunt.js
View
9 extender-min.js
@@ -1,6 +1,3 @@
-// extender - v0.0.1
-
-// Built 2012-12-07
-// Copyright (c) 2012 Doug Martin (blog.dougamartin.com);
-// Licensed MIT
-(function(){function e(e){function i(){function o(e,r,i){if("function"!=typeof i)throw new TypeError("when extending type you must provide a function");var s;r==="constructor"?s=function(){var e=t.call(arguments);this._super(arguments),i.apply(this,arguments)}:s=function(){var r=t.call(arguments);r.unshift(this._value);var s=i.apply(this,r);return s!==n?u(s):this},e[r]=s}function u(e){var t=e;if(!(e instanceof i)){var n={},o=n.instance={};for(var u=0,a=s.length;u<a;u++){var f=s[u];f[0](e)&&r(o,f[1])}t=new(i.extend(n))(e)}return t}function a(){return!0}function f(e,t,n){t||(t=e,e=a);var r={};for(var i in t)t.hasOwnProperty(i)&&o(r,i,t[i]);return s.push([e,r]),u}var i=e({"instance":{"constructor":function(e){this._value=e},"value":function(){return this._value},"eq":function(t){return u(this._value===t)},"neq":function(t){return u(this._value!==t)},"print":function(){return console.log(this._value),this}}}),s=[];return u.define=f,u}var t=Array.prototype.slice,n,r=function(){function t(e,t){var n,r;for(n in t)if(t.hasOwnProperty(n)){r=t[n];if(!(n in e)||e[n]!==r)e[n]=r}return e}return function(n,r){n||(n={});for(var i=1,s=arguments.length;i<s;i++)t(n,arguments[i]);return n}}();return{"define":function(){return i().define.apply(i,arguments)}}}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("declare.js"))):"function"==typeof define?define(["require"],function(t){return e(t("declare.js"))}):this.extender=e(declare)}).call(this);
+/*! extender - v0.0.3 - 2013-01-12
+* Copyright (c) 2013 Doug Martin (blog.dougamartin.com); Licensed MIT */
+(function(){function e(e){function i(i){function u(e,r,i){if("function"!=typeof i)throw new TypeError("when extending type you must provide a function");var s;r==="constructor"?s=function(){this._super(arguments),i.apply(this,arguments)}:s=function(){var r=t.call(arguments);r.unshift(this._value);var s=i.apply(this,r);return s!==n?l(s):this},e[r]=s}function a(e,n,r){if("function"!=typeof r)throw new TypeError("when extending type you must provide a function");var i;n==="constructor"?i=function(){this._super(arguments),r.apply(this,arguments)}:i=function(){var n=t.call(arguments);return n.unshift(this._value),r.apply(this,n)},e[n]=i}function f(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(r!=="getters"&&r!=="setters"?r==="noWrap"?f(e,t[r],!0):n?a(e,r,t[r]):u(e,r,t[r]):e[r]=t[r])}function l(e){var t=e,n,i;if(!(e instanceof s)){var u={},a=u.instance={};for(n=0,i=o.length;n<i;n++){var f=o[n];f[0](e)&&r(a,f[1])}t=new(s.extend(u))(e)}return t}function c(){return!0}function h(e,t){t||(t=e,e=c),t=t||{};var n={};return f(n,t),o.push([e,n]),l}function p(e){return e&&e.hasOwnProperty("__defined__")&&(o=o.concat(e.__defined__)),l}i=i||[];var s=e({instance:{constructor:function(e){this._value=e},value:function(){return this._value},eq:function(t){return l(this._value===t)},neq:function(t){return l(this._value!==t)},print:function(){return console.log(this._value),this}}}),o=[];return l.define=h,l.extend=p,l.__defined__=o,l}var t=Array.prototype.slice,n,r=function(){function t(e,t){var n,r;for(n in t)if(t.hasOwnProperty(n)){r=t[n];if(!(n in e)||e[n]!==r)e[n]=r}return e}return function(n){n||(n={});for(var r=1,i=arguments.length;r<i;r++)t(n,arguments[r]);return n}}();return{define:function(){return i().define.apply(i,arguments)},extend:function(e){return i().define().extend(e)}}}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("declare.js"))):"function"==typeof define?define(["require"],function(t){return e(t("declare.js"))}):this.extender=e(this.declare)}).call(this);
View
3  extender.min.js
@@ -1,3 +0,0 @@
-/*! extender - v0.0.2 - 2013-01-12
-* Copyright (c) 2013 Doug Martin (blog.dougamartin.com); Licensed MIT */
-(function(){function e(e){function i(i){function u(e,r,i){if("function"!=typeof i)throw new TypeError("when extending type you must provide a function");var s;r==="constructor"?s=function(){this._super(arguments),i.apply(this,arguments)}:s=function(){var r=t.call(arguments);r.unshift(this._value);var s=i.apply(this,r);return s!==n?l(s):this},e[r]=s}function a(e,n,r){if("function"!=typeof r)throw new TypeError("when extending type you must provide a function");var i;n==="constructor"?i=function(){this._super(arguments),r.apply(this,arguments)}:i=function(){var n=t.call(arguments);return n.unshift(this._value),r.apply(this,n)},e[n]=i}function f(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(r!=="getters"&&r!=="setters"?r==="noWrap"?f(e,t[r],!0):n?a(e,r,t[r]):u(e,r,t[r]):e[r]=t[r])}function l(e){var t=e,n,i;if(!(e instanceof s)){var u={},a=u.instance={};for(n=0,i=o.length;n<i;n++){var f=o[n];f[0](e)&&r(a,f[1])}t=new(s.extend(u))(e)}return t}function c(){return!0}function h(e,t){t||(t=e,e=c),t=t||{};var n={};return f(n,t),o.push([e,n]),l}function p(e){return e&&e.hasOwnProperty("__defined__")&&(o=o.concat(e.__defined__)),l}i=i||[];var s=e({instance:{constructor:function(e){this._value=e},value:function(){return this._value},eq:function(t){return l(this._value===t)},neq:function(t){return l(this._value!==t)},print:function(){return console.log(this._value),this}}}),o=[];return l.define=h,l.extend=p,l.__defined__=o,l}var t=Array.prototype.slice,n,r=function(){function t(e,t){var n,r;for(n in t)if(t.hasOwnProperty(n)){r=t[n];if(!(n in e)||e[n]!==r)e[n]=r}return e}return function(n){n||(n={});for(var r=1,i=arguments.length;r<i;r++)t(n,arguments[r]);return n}}();return{define:function(){return i().define.apply(i,arguments)},extend:function(e){return i().define().extend(e)}}}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("declare.js"))):"function"==typeof define?define(["require"],function(t){return e(t("declare.js"))}):this.extender=e(this.declare)}).call(this);
View
2  grunt.js
@@ -39,7 +39,7 @@ module.exports = function (grunt) {
min: {
dist: {
src: ['<banner:meta.banner>', 'extender.js'],
- dest: '<%= pkg.name %>.min.js'
+ dest: '<%= pkg.name %>-min.js'
}
},
watch: {
Please sign in to comment.
Something went wrong with that request. Please try again.