Permalink
Browse files

Fix `TypeError: 'undefined' is not an object`

  • Loading branch information...
1 parent 2b7b88a commit 14d9d053790525807bd7656ac8f64c5b70072b15 @ixti ixti committed Jul 3, 2012
Showing with 11 additions and 6 deletions.
  1. +5 −0 HISTORY.md
  2. +1 −1 demo/js/js-yaml.js
  3. +1 −1 js-yaml.js
  4. +3 −3 js-yaml.min.js
  5. +1 −1 support/browserify/30_extensions.js
View
@@ -1,3 +1,8 @@
+1.0.1 / In development
+----------------------
+
+* Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong.
+
1.0.0 / 2012-06-01
------------------
View
@@ -54,7 +54,7 @@ if (!Function.prototype.bind) {
Function.prototype.bind = function bind(context) {
var func = this;
return function bound() {
- func.apply(context, arguments);
+ return func.apply(context, arguments);
};
};
}
View
@@ -54,7 +54,7 @@ if (!Function.prototype.bind) {
Function.prototype.bind = function bind(context) {
var func = this;
return function bound() {
- func.apply(context, arguments);
+ return func.apply(context, arguments);
};
};
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -32,7 +32,7 @@ if (!Function.prototype.bind) {
Function.prototype.bind = function bind(context) {
var func = this;
return function bound() {
- func.apply(context, arguments);
+ return func.apply(context, arguments);
};
};
}

0 comments on commit 14d9d05

Please sign in to comment.