Sha256: a40bde9fe8f705bce77df91d8acf0524baa813df4e0b0b2fbce421677080c68d

Contents?: true

Size: 229 Bytes

Versions: 6

Compression:

Stored size: 229 Bytes

Contents

// A getter-setter method that preserves the appropriate `this` context.
d3.rebind = function(object, method) {
  return function() {
    var x = method.apply(object, arguments);
    return arguments.length ? object : x;
  };
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bum-0.0.17 public/d3/src/core/rebind.js
bum-0.0.16 public/d3/src/core/rebind.js
bum-0.0.15 public/d3/src/core/rebind.js
bum-0.0.14 public/d3/src/core/rebind.js
bum-0.0.13 public/d3/src/core/rebind.js
bum-0.0.12 public/d3/src/core/rebind.js