Skip to content

Commit cf09e17

Browse files
author
Samson
committed
removed add this for a bit
1 parent 7f1b1ed commit cf09e17

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44

5+
56
[![Build Status](https://secure.travis-ci.org/ApiEngine/apiengine-client.png?branch=master)](http://travis-ci.org/ApiEngine/apiengine-client)
67

78

build/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ var rootPath = '..';
3232
paths: {
3333
'jquery': 'empty:',
3434
'mustache': 'empty:',
35-
'underscore': 'empty:',
36-
'addthis': 'empty:'
35+
//'addthis': 'empty:'
3736
},
3837
modules: [
3938
{

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<meta name="fragment" content="!">
77
<base href="/repos/apiengine-client/" />
88
<link rel="stylesheet" href="css/styles.css">
9-
<script>
10-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
11-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
12-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
13-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
9+
<script>
10+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
11+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
12+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
13+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
1414

15-
ga('create', 'UA-39509998-1', 'apiengine.io');
16-
ga('send', 'pageview');
17-
</script>
15+
ga('create', 'UA-39509998-1', 'apiengine.io');
16+
ga('send', 'pageview');
17+
</script>
1818
</head>
1919
<body>
2020
<script data-main="js/main" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.1/require.min.js" type="text/javascript"></script>

js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require.config({
1717
// jquery plugins
1818
autogrow : 'libs/autogrow/autogrow',
1919
// External services
20-
addthis : "https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51176d76142335d0",
20+
//addthis : "https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51176d76142335d0",
2121

2222
// Just a short cut so we can put our html outside the js dir
2323
// When you have HTML/CSS designers this aids in keeping them out of the js directory

js/views/apis/list.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ define([
33
'underscore',
44
'backbone',
55
'mustache',
6-
'addthis',
76
'models/session',
87
'text!templates/apis/list.html',
98
'text!templates/apis/list-item.html',
109
'collections/apis',
1110
'models/api',
1211
'models/follower'
13-
], function($, _, Backbone, Mustache, unused, Session, apisListTemplate, apisListItemTemplate, ApisCollection, ApiModel, FollowerModel){
12+
], function($, _, Backbone, Mustache, Session, apisListTemplate, apisListItemTemplate, ApisCollection, ApiModel, FollowerModel){
1413
var ApisPage = Backbone.View.extend({
1514
el: '.private-container',
1615
initialize: function () {
@@ -110,15 +109,15 @@ define([
110109
that.$el.html(Mustache.render(apisListTemplate, {authed: Session.get('auth'), currentUser: that.options.currentUser, _:_, is_public: that.options.is_public, apis: collection.models, username: Session.get('login'), location: that.options.location}, {listtemplate: apisListItemTemplate}));
111110

112111
// activate the share buttons
113-
_.each(collection.models, function(model) {
112+
/*_.each(collection.models, function(model) {
114113
addthis.button('#' + model.get('user') + '-' + model.get('name'), {
115114
services_compact : "facebook,twitter,digg,pinterest,email",
116115
ui_click : true
117116
}, {
118117
url: Backbone.router.getBaseUrl() + model.get('user') + '/' + model.get('name'),
119118
title: model.get('name') + ' on API Engine'
120119
});
121-
});
120+
});*/
122121
}
123122
});
124123

js/views/apis/page.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,15 @@ define([
7676
this.$el.html(Mustache.render(apiDetailsTemplate, {api: this.model, owner: Session.get('login') === this.model.get('user')}));
7777

7878
// activate addThis share button for the API
79+
/*
7980
addthis.button('#' + this.model.get('username') + '-' + this.model.get('apiname'), {
8081
services_compact : "facebook,twitter,digg,pinterest,email",
8182
ui_click : true
8283
}, {
8384
url: Backbone.router.getBaseUrl() + this.model.get('username') + '/' + this.model.get('apiname'),
8485
title: this.model.get('apiname') + ' on API Engine'
8586
});
86-
87+
*/
8788
// switch on active tab from router
8889
if(this.options.collaborators) {
8990
var collaboratorsView = Vm.create(this, 'apipage', CollaboratorsView, _.extend({parent : this}, this.options));

0 commit comments

Comments
 (0)