Ticket #123 (assigned enhancement)

Opened 2 years ago

Last modified 3 months ago

get rid of 'import' boilerplate

Reported by: beau@hartshornesoftware.com Assigned to: cederberg@gmail.com (accepted)
Priority: low Milestone: MochiKit 1.5
Component: component1 Version:
Severity: normal Keywords:
Cc:

Description

All of this could be made simpler:

if (typeof(dojo) != 'undefined') {
    dojo.provide("MochiKit.DOM");
    dojo.require("MochiKit.Base");
}
if (typeof(JSAN) != 'undefined') {
    JSAN.use("MochiKit.Base", []);
}

try {
    if (typeof(MochiKit.Base) == 'undefined') {
        throw "";
    }
} catch (e) {
    throw "MochiKit.DOM depends on MochiKit.Base!";
}

Change History

08/29/06 11:26:19 changed by beau@hartshornesoftware.com

  • priority changed from normal to low.

05/14/07 18:46:29 changed by rsayre@mozilla.com

  • milestone set to MochiKit 1.5.

would take for 1.4, certainly doesn't block release though.

03/30/08 08:48:27 changed by cederberg@gmail.com

  • owner changed from somebody to cederberg@gmail.com.
  • status changed from new to assigned.

We're talking about MochiKit.Base._deps() here, right? Could you please outline how it should be made simpler?

From version 0.9 of Dojo, the _package_.js files are no longer supported, so we could at least remove them soon.