mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
fix babel 6 export default behaviour
This commit is contained in:
31
dist/clipboard.js
vendored
31
dist/clipboard.js
vendored
@@ -352,23 +352,19 @@ module.exports = E;
|
|||||||
},{}],8:[function(require,module,exports){
|
},{}],8:[function(require,module,exports){
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
if (typeof define === "function" && define.amd) {
|
if (typeof define === "function" && define.amd) {
|
||||||
define(['exports', 'select'], factory);
|
define(['module', 'select'], factory);
|
||||||
} else if (typeof exports !== "undefined") {
|
} else if (typeof exports !== "undefined") {
|
||||||
factory(exports, require('select'));
|
factory(module, require('select'));
|
||||||
} else {
|
} else {
|
||||||
var mod = {
|
var mod = {
|
||||||
exports: {}
|
exports: {}
|
||||||
};
|
};
|
||||||
factory(mod.exports, global.select);
|
factory(mod, global.select);
|
||||||
global.clipboardAction = mod.exports;
|
global.clipboardAction = mod.exports;
|
||||||
}
|
}
|
||||||
})(this, function (exports, _select) {
|
})(this, function (module, _select) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
|
|
||||||
var _select2 = _interopRequireDefault(_select);
|
var _select2 = _interopRequireDefault(_select);
|
||||||
|
|
||||||
function _interopRequireDefault(obj) {
|
function _interopRequireDefault(obj) {
|
||||||
@@ -572,29 +568,25 @@ module.exports = E;
|
|||||||
return ClipboardAction;
|
return ClipboardAction;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
exports.default = ClipboardAction;
|
module.exports = ClipboardAction;
|
||||||
});
|
});
|
||||||
|
|
||||||
},{"select":6}],9:[function(require,module,exports){
|
},{"select":6}],9:[function(require,module,exports){
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
if (typeof define === "function" && define.amd) {
|
if (typeof define === "function" && define.amd) {
|
||||||
define(['exports', './clipboard-action', 'tiny-emitter', 'good-listener'], factory);
|
define(['module', './clipboard-action', 'tiny-emitter', 'good-listener'], factory);
|
||||||
} else if (typeof exports !== "undefined") {
|
} else if (typeof exports !== "undefined") {
|
||||||
factory(exports, require('./clipboard-action'), require('tiny-emitter'), require('good-listener'));
|
factory(module, require('./clipboard-action'), require('tiny-emitter'), require('good-listener'));
|
||||||
} else {
|
} else {
|
||||||
var mod = {
|
var mod = {
|
||||||
exports: {}
|
exports: {}
|
||||||
};
|
};
|
||||||
factory(mod.exports, global.clipboardAction, global.tinyEmitter, global.goodListener);
|
factory(mod, global.clipboardAction, global.tinyEmitter, global.goodListener);
|
||||||
global.clipboard = mod.exports;
|
global.clipboard = mod.exports;
|
||||||
}
|
}
|
||||||
})(this, function (exports, _clipboardAction, _tinyEmitter, _goodListener) {
|
})(this, function (module, _clipboardAction, _tinyEmitter, _goodListener) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
|
|
||||||
var _clipboardAction2 = _interopRequireDefault(_clipboardAction);
|
var _clipboardAction2 = _interopRequireDefault(_clipboardAction);
|
||||||
|
|
||||||
var _tinyEmitter2 = _interopRequireDefault(_tinyEmitter);
|
var _tinyEmitter2 = _interopRequireDefault(_tinyEmitter);
|
||||||
@@ -722,9 +714,6 @@ module.exports = E;
|
|||||||
return Clipboard;
|
return Clipboard;
|
||||||
}(_tinyEmitter2.default);
|
}(_tinyEmitter2.default);
|
||||||
|
|
||||||
exports.default = Clipboard;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function to retrieve attribute value.
|
* Helper function to retrieve attribute value.
|
||||||
* @param {String} suffix
|
* @param {String} suffix
|
||||||
@@ -739,6 +728,8 @@ module.exports = E;
|
|||||||
|
|
||||||
return element.getAttribute(attribute);
|
return element.getAttribute(attribute);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = Clipboard;
|
||||||
});
|
});
|
||||||
|
|
||||||
},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)
|
},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)
|
||||||
|
|||||||
2
dist/clipboard.min.js
vendored
2
dist/clipboard.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@ import select from 'select';
|
|||||||
* Inner class which performs selection from either `text` or `target`
|
* Inner class which performs selection from either `text` or `target`
|
||||||
* properties and then executes copy or cut operations.
|
* properties and then executes copy or cut operations.
|
||||||
*/
|
*/
|
||||||
export default class ClipboardAction {
|
class ClipboardAction {
|
||||||
/**
|
/**
|
||||||
* @param {Object} options
|
* @param {Object} options
|
||||||
*/
|
*/
|
||||||
@@ -202,3 +202,5 @@ export default class ClipboardAction {
|
|||||||
this.removeFake();
|
this.removeFake();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = ClipboardAction;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import listen from 'good-listener';
|
|||||||
* Base class which takes one or more elements, adds event listeners to them,
|
* Base class which takes one or more elements, adds event listeners to them,
|
||||||
* and instantiates a new `ClipboardAction` on each click.
|
* and instantiates a new `ClipboardAction` on each click.
|
||||||
*/
|
*/
|
||||||
export default class Clipboard extends Emitter {
|
class Clipboard extends Emitter {
|
||||||
/**
|
/**
|
||||||
* @param {String|HTMLElement|HTMLCollection|NodeList} trigger
|
* @param {String|HTMLElement|HTMLCollection|NodeList} trigger
|
||||||
* @param {Object} options
|
* @param {Object} options
|
||||||
@@ -113,3 +113,5 @@ function getAttributeValue(suffix, element) {
|
|||||||
|
|
||||||
return element.getAttribute(attribute);
|
return element.getAttribute(attribute);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = Clipboard;
|
||||||
|
|||||||
Reference in New Issue
Block a user