So can we stub out these functions for now, just to move along?

Yep, we can, it's just a seesaw like everything. Maybe some things rely on it, and others don't.

I do have another piece of evidence that the Events code comes up in sites we want. I revisited xqsuperschools.org, which is on the wish list. The current first-occurring runtime error says:

application-e518b48189c89ff2924c9b37a81179824299937c79fecd4f8024 line 10368: TypeError: undefined not callable (property 'createEvent' of [object Object])

And here is the code from around that line:

----
      CustomEvent = window.CustomEvent;

      if (typeof CustomEvent !== 'function') {
        CustomEvent = function(event, params) {
          var evt;
          evt = document.createEvent('CustomEvent'); // line 10368
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
          return evt;
        };
        CustomEvent.prototype = window.Event.prototype;
      }

      fire = Rails.fire = function(obj, name, data) {
        var event;
        event = new CustomEvent(name, {
          bubbles: true,
          cancelable: true,
          detail: data
        });
        obj.dispatchEvent(event);
        return !event.defaultPrevented;
      };
----

So bubbles comes up in use cases.. createEvent comes up, dispatchEvent comes up, etc.

_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to