Created
November 8, 2013 11:14
-
-
Save wiseman17/7369604 to your computer and use it in GitHub Desktop.
Real life case when "[Q] Unhandled rejection reasons (should be empty):(no stack)" warning is thrown. At least on Win7 the warning is thrown ONLY in FF, and IE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsCAPI = new eZ.CAPI( | |
'http://ez.git.local', | |
new eZ.SessionAuthAgent({login: "admin", password: "ezpublish"}), | |
{logRequests: true} | |
), | |
jsPromiseCAPI = new eZ.PromiseCAPI(jsCAPI), | |
promiseContentService = jsPromiseCAPI.getContentService(), | |
promise = promiseContentService.loadSection("/api/ezp/v2/content/sections/1111abc"); | |
promise.then( | |
function (result) { | |
console.log(result); | |
}, | |
function (error) { | |
console.log(error); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment