Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update handlers.js #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update handlers.js #37

wants to merge 1 commit into from

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