Created
September 24, 2013 23:52
-
-
Save Codercise/6692994 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 pathList; | |
var pathArray = []; | |
function getPictureItems() { | |
var picturesLibrary = Windows.Storage.KnownFolders.picturesLibrary; | |
picturesLibrary.getItemsAsync().then(function (items) { | |
items.forEach(function (item) { | |
pathArray.push({ | |
name: item.fileName, | |
path: item.path | |
}); | |
}), | |
pathList = new WinJS.Binding.List(pathArray); | |
console.log(pathArray[3].path); | |
return pathList; | |
}) | |
console.log(new WinJS.Binding.List(pathArray)) | |
console.log(pathList); | |
} | |
//console.log(getPictureItems()); | |
getPictureItems(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment