Browse Source

Polyfill trivia: add semicolons

pull/30/head
Sami Vaarala 10 years ago
parent
commit
8ed4352286
  1. 2
      polyfills/console-minimal.js
  2. 2
      polyfills/object-prototype-definegetter.js
  3. 2
      polyfills/object-prototype-definesetter.js

2
polyfills/console-minimal.js

@ -4,5 +4,5 @@ if (typeof console === 'undefined') {
if (typeof console.log === 'undefined') {
this.console.log = function () {
print(Array.prototype.join.call(arguments, ' '));
}
};
}

2
polyfills/object-prototype-definegetter.js

@ -1,5 +1,5 @@
if (typeof Object.prototype.__defineGetter__ === 'undefined') {
Object.prototype.__defineGetter__ = function (n, f) {
Object.defineProperty(this, n, { enumerable: true, configurable: true, get: f });
}
};
}

2
polyfills/object-prototype-definesetter.js

@ -1,5 +1,5 @@
if (typeof Object.prototype.__defineSetter__ === 'undefined') {
Object.prototype.__defineSetter__ = function (n, f) {
Object.defineProperty(this, n, { enumerable: true, configurable: true, set: f });
}
};
}

Loading…
Cancel
Save