Created
August 25, 2012 10:53
-
-
Save Darep/3463637 to your computer and use it in GitHub Desktop.
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
// fetch the menus, show the menus and init the touch UI | |
var menuRequest = Application.Api.fetchMenus(); | |
menuRequest.success(function (data) { | |
this.addMenus(data); | |
}.bind(this)); | |
... | |
Application.Api.fetchMenus = function () { | |
return $.ajax({ | |
type: 'GET', | |
url: '/api/menus' | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment