Where did you get this definition? Your change uses app.uninstall, which is the same as used by GaiaApps.uninstall. The only difference is the way the apps are discovered.