Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Backbone.js 1.1.* #4

Open
janekbettinger opened this issue Apr 10, 2014 · 0 comments
Open

Compatibility with Backbone.js 1.1.* #4

janekbettinger opened this issue Apr 10, 2014 · 0 comments

Comments

@janekbettinger
Copy link

I am not able to get backbone.d3 to work with the latest release of Backbone.js.
As from Backbone.js 1.1.0 I get an error in Underscore.js:

// Fill in a given object with default properties.
_.defaults = function(obj) {
  each(slice.call(arguments, 1), function(source) {
    if (source) {
      for (var prop in source) {
        // ERROR: obj is undefined (line 854 in Underscore.js 1.5.2; l. 881 in 1.6.0)
        if (obj[prop] === void 0) obj[prop] = source[prop];
      }
    }
  });
  return obj;
};

Unfortunately, I have not been capable to solve the problem on my own, yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant