Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

document not geting extended. #142

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. base2.DOM.bind(document)
2.
3.

What is the expected output? What do you see instead?
var aa = document.querySelector('script'); should be extended, but it isn't, 
becouse querySelector ain't overriden.

What version of the product are you using? On what operating system?
1.1 (alpha). W7x64

Please provide any additional information below.
var Binding = Interface.extend(null, {... should contain extend method
var Binding = Interface.extend(null, {
extend: function(_interface, _static) {
    if (_static && _static.bind != Function.bind) {
      var bind = _static.bind;
      delete _static.bind;
    }
    var binding = this.base(_interface, _static);
    binding.bind = this.bind;
    if (bind) extend(binding, "bind", bind);
    return binding;
  },
  bind: function(object) {
    // Add methods
    return extend(object, this.prototype);
  }
}); should be the working verision.

Original issue reported on code.google.com by daniel.t...@gmail.com on 24 Oct 2011 at 6:50

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions