kriszyp / compose

ComposeJS is a lightweight JavaScript library for object composition

Home Page:http://dojotoolkit.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doesn't define Compose global

wkeese opened this issue · comments

I thought ComposeJS supports just loading the compose.js file, without having an AMD framework. But when I try it in firefox (version 10, beta) or the latest chrome, I get an error about the Compose global being not defined. Test file is:

<html>
    <head>
        <script src="compose.js"></script>
        <script>
            console.log("Compose global is", Compose);
        </script>
    </head>
</html>

the problem is that the placement of "use strict"; won't allow for a global to be made.