We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29138ce commit 9b66f79Copy full SHA for 9b66f79
js/load-image-xmp-map.js
@@ -0,0 +1,27 @@
1
+;(function (factory) {
2
+ 'use strict'
3
+ if (typeof define === 'function' && define.amd) {
4
+ // Register as an anonymous AMD module:
5
+ define(['./load-image', './load-image-exif'], factory)
6
+ } else if (typeof module === 'object' && module.exports) {
7
+ factory(require('./load-image'), require('./load-image-exif'))
8
+ } else {
9
+ // Browser globals:
10
+ factory(window.loadImage)
11
+ }
12
+}(function (loadImage) {
13
14
+
15
+ loadImage.XmpMap.prototype.getAll = function () {
16
+ var map = {};
17
+ var prop;
18
+ var id;
19
+ for (prop in this) {
20
+ if (this.hasOwnProperty(prop)) {
21
+ map[prop] = this[prop];
22
23
24
+ return map;
25
+ };
26
27
+}));
0 commit comments