Skip to content

Update handlers.js#37

Open
RickyShiJs wants to merge 1 commit intoSitePen:masterfrom
RickyShiJs:master
Open

Update handlers.js#37
RickyShiJs wants to merge 1 commit intoSitePen:masterfrom
RickyShiJs:master

Conversation

@RickyShiJs
Copy link

Make the dojo.publish support use object (not only array) as the second parameter.

Without this fix, it will throw exception like
Unable to process file: /xxx/xxx TypeError: Cannot read property 'range' of undefined
at Module.getCodeFrom (/Users/dev/git/dojo-amd-converter/Module.js:172:17)
at Array.9 (/Users/dev/git/dojo-amd-converter/handlers.js:497:68)
at /Users/dev/git/dojo-amd-converter/processScript.js:39:34
at processPath (/Users/dev/git/dojo-amd-converter/parse.js:78:14)
at Array.forEach (native)
at processPath (/Users/dev/git/dojo-amd-converter/parse.js:51:32)
at Array.forEach (native)
at processPath (/Users/dev/git/dojo-amd-converter/parse.js:51:32)
at Array.forEach (native)
at processPath (/Users/dev/git/dojo-amd-converter/parse.js:51:32)

Make the dojo.publish support use object (not only array) as the second parameter.

Without this fix, it will throw exception like 
Unable to process file: /xxx/xxx TypeError: Cannot read property 'range' of undefined
    at Module.getCodeFrom (/Users/dev/git/dojo-amd-converter/Module.js:172:17)
    at Array.9 (/Users/dev/git/dojo-amd-converter/handlers.js:497:68)
    at /Users/dev/git/dojo-amd-converter/processScript.js:39:34
    at processPath (/Users/dev/git/dojo-amd-converter/parse.js:78:14)
    at Array.forEach (native)
    at processPath (/Users/dev/git/dojo-amd-converter/parse.js:51:32)
    at Array.forEach (native)
    at processPath (/Users/dev/git/dojo-amd-converter/parse.js:51:32)
    at Array.forEach (native)
    at processPath (/Users/dev/git/dojo-amd-converter/parse.js:51:32)
@dylans dylans added the bug label May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants