Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Create Element and Event wrappers

#29

Elements will not be manually extended in Fuse.
We should create an element wrapper to handle element manipulations.

// pseudo code

Fuse.addNS('Dom');

Fuse.Dom.Node = Fuse.Class(Fuse.Dom, {
  'constructor': (function() {
    function Node(element) {
      if (typeof element === 'string')
        element = Fuse._doc.getElementById(element || expando);
      if (typeof element.getUniqueID === 'function')
        return cache[element.getUniqueID()];
      this.raw = element;
    }
    return Node;
   })(),
});

Fuse.Dom.Node.Plugin.hide = function hide() {
  var element = this.raw,
   display = element.style.display;
  if (display && display !== 'none')
    element._originalDisplay = display;
  element.style.display = 'none';
  return element;
};

Reported by John-David Dalton · July 3rd, 2009 @ 06:00 PM

State: resolved
Milestone: none
Assigned to: John-David Dalton John-David Dalton

Activity

  1. John-David Dalton
    John-David Dalton
    • Title changed from Create Element wrappers to Create Element and Event wrappers

    July 3rd, 2009 @ 06:03 PM

  2. John-David Dalton

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.