Content Removed

Expand
12 out of 15 rated this helpful - Rate this topic

Content Removed

This content has been removed. See Getting started with Metro style apps for more information.

 

 

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD
possible leak of listeners?
wouldn't this code attach the listeners to the buttons each time show() is called? function show(caption) { var ok = WinJS.Utilities.query('button#ok', element)[0], cancel = WinJS.Utilities.query('button#cancel', element)[0]; return new WinJS.Promise(function (complete, error, progress) { ok.addEventListener('click', function () { complete(true); }); cancel.addEventListener('click', function () { complete(false); }); }); } Shouldn't the listeners be removed after the promise is gone?
11/17/2011