aboutsummaryrefslogtreecommitdiffstats
path: root/example/tweeter/tweeterclient.js
diff options
context:
space:
mode:
authorCaitlin Potter2014-02-21 14:31:23 -0500
committerCaitlin Potter2014-02-21 14:52:12 -0500
commit2f4513339337bb8aa6c9dfe1191d169b4fc57999 (patch)
treece0d47cee3d490c907cef680cc12e131f2a1cbf9 /example/tweeter/tweeterclient.js
parent4a6a3ba7fb08ce99007893ef75365a3e8aff938a (diff)
downloadangular.js-2f4513339337bb8aa6c9dfe1191d169b4fc57999.tar.bz2
chore(examples): remove ancient examples from the tree
Let these poor scripts retire, goodness. Closes #6398 Closes #3310
Diffstat (limited to 'example/tweeter/tweeterclient.js')
-rw-r--r--example/tweeter/tweeterclient.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/example/tweeter/tweeterclient.js b/example/tweeter/tweeterclient.js
deleted file mode 100644
index 9ad7eabc..00000000
--- a/example/tweeter/tweeterclient.js
+++ /dev/null
@@ -1,36 +0,0 @@
-function noop() {}
-$(document).ready(function() {
- function xhr(method, url, data, callback){
- jQuery.getJSON(url, function() {
- callback.apply(this, arguments);
- scope.updateView();
- });
- }
-
- var resourceFactory = new ResourceFactory(xhr);
-
- var Tweeter = resourceFactory.route("http://twitter.com/statuses/:service:username.json", {}, {
- home: {method:'GET', params: {service:'home_timeline'}, isArray:true },
- user: {method:'GET', params: {service:'user_timeline/'}, isArray:true }
- });
-
-
- var scope = window.scope = angular.compile(document, {
- location:angular.startUrlWatcher()
- });
-
- function fetchTweets(username){
- return username ? Tweeter.user({username: username}) : Tweeter.home();
- }
-
- scope.set('fetchTweets', fetchTweets);
- scope.set('users', [
- {screen_name:'mhevery', name:'Mi\u0161ko Hevery',
- notes:'Author of <angular/> http://www.getangular.com.',
- profile_image_url:'http://a3.twimg.com/profile_images/54360179/Me_-_Small_Banner_normal.jpg'},
- {screen_name:'abrons', name:'Adam Abrons',
- notes:'Author of <angular/> & Ruby guru see: http://www.angularjs.org.',
- profile_image_url:'http://media.linkedin.com/mpr/mpr/shrink_80_80/p/2/000/005/0a8/044278d.jpg'}
- ]);
- scope.init();
-});