Skip to content

Commit

Permalink
Small fix for polyfills loading in amd format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Korzel committed Aug 3, 2016
1 parent 9644f3d commit 4293ad4
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 82 deletions.
21 changes: 6 additions & 15 deletions dist/amd/oauth-polyfills.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 6 additions & 15 deletions dist/commonjs/oauth-polyfills.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 6 additions & 15 deletions dist/es6/oauth-polyfills.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 6 additions & 15 deletions dist/system/oauth-polyfills.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 5 additions & 11 deletions dist/ts/oauth-polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
export function objectAssign(target, ...args: any[]) {
if (target == null) {
export function objectAssign(target, source) {
if (target == null || source == null) {
throw new TypeError('Cannot convert undefined or null to object');
}

target = Object(target);

for (var index = 1; index < args.length; index++) {
var source = args[index];

if (source != null) {
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}

Expand Down
16 changes: 5 additions & 11 deletions src/oauth-polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
export function objectAssign(target, ...args: any[]) {
if (target == null) {
export function objectAssign(target, source) {
if (target == null || source == null) {
throw new TypeError('Cannot convert undefined or null to object');
}

target = Object(target);

for (var index = 1; index < args.length; index++) {
var source = args[index];

if (source != null) {
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}

Expand Down

0 comments on commit 4293ad4

Please sign in to comment.