From 05a807e2fb41c3bf68d65993dd5307d0e6ca74e6 Mon Sep 17 00:00:00 2001 From: Mauricio Soares Date: Tue, 29 Sep 2015 11:09:28 -0300 Subject: [PATCH] Adds UMD support Using the --standalone option from browserify it automatically wrap your code into a UMD module. --- dist/clipboard.js | 173 +++++++++++++++++++++--------------------- dist/clipboard.min.js | 2 +- package.json | 2 +- src/clipboard.js | 2 - 4 files changed, 87 insertions(+), 92 deletions(-) diff --git a/dist/clipboard.js b/dist/clipboard.js index a92dbc0..b3a4830 100644 --- a/dist/clipboard.js +++ b/dist/clipboard.js @@ -1,52 +1,4 @@ -(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;od;d++)c[d].fn.apply(c[d].ctx,b);return this},off:function(a,b){var c=this.e||(this.e={}),d=c[a],e=[];if(d&&b)for(var f=0,g=d.length;g>f;f++)d[f].fn!==b&&e.push(d[f]);return e.length?c[a]=e:delete c[a],this}},b.exports=d},{}],6:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var e=function(){function a(a,b){for(var c=0;cd;d++)c[d].fn.apply(c[d].ctx,b);return this},off:function(a,b){var c=this.e||(this.e={}),d=c[a],e=[];if(d&&b)for(var f=0,g=d.length;g>f;f++)d[f].fn!==b&&e.push(d[f]);return e.length?c[a]=e:delete c[a],this}},b.exports=d},{}],6:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var e=function(){function a(a,b){for(var c=0;c