Created
September 25, 2013 00:10
-
-
Save Codercise/6693139 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; | |
var ffWacom = 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); | |
console.log(pathList); | |
}; | |
picturesLibrary.getItemsAsync().then(ffWacom); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment