Added error callBack to jsLoader call#268
Added error callBack to jsLoader call#268vytautas-pranskunas- wants to merge 1 commit intoocombe:masterfrom
Conversation
|
Hmm not sure if there's a reason, I don't use requirejs, this was changed in a PR, @tony-vu what's your opinion on this? |
|
Please close this PR.
For future PR please ensure changes are made to the source and also don't commit formatting changes as they make the actual changes harder to track. |
|
I am not sure if it is fixed because i was fixing it on the latest file version |
|
This is because PR #264 has not been merged |
|
Ok, so i will close it after making sure issue is fixed. When do you plan to merge your fix? |
|
When are you going to merge #264? because i need minified version of that since i have troubles when minifieing with uglify.js. For some reason ocLazyLoad.requirejs.js code starts to act like normal ocLazyLoad and fails to use requirejs paths when bundled and minified. If i copy normal version on top everything becomes ok. |
|
I'll try to check it tonight or tomorrow night |
|
I merged #264 |
I fixed a bug related to requirejs loading (line: 1025 and 1196):
Since most of the time (especially if using TypeScript with AMD) define should return something e.g. 'export class Test' turns to define(...function(){ return Test;}) the promise was always rejected. The promise should resolve or be rejected according to child result (requirejs).
Is there any reason to have single call back function rather than function for each case? It also mixes responsibilities, which is anti-pattern.