Skip to content

Commit

Permalink
Fixed issue with config.js loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisSala committed Aug 24, 2011
1 parent b921dd7 commit 7caa127
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions assets/bpm_libs.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions lib/config.sample.js → lib/config.js.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copy this file to <project_home>/lib/config.js and supply an Instagram client ID.

var CONFIG = {};

CONFIG.INSTAGRAM_CLIENT_ID = "SUPPLY_INSTAGRAM_CLIENT_ID_HERE";
return {
INSTAGRAM_CLIENT_ID: "SUPPLY_INSTAGRAM_CLIENT_ID_HERE";
}
4 changes: 2 additions & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('sproutcore');
require('sproutcore-datastore');


var CONFIG = require('./config');
var INFO = require('demogram/~package');

window.App = SC.Application.create({
Expand All @@ -16,7 +16,7 @@ window.App = SC.Application.create({
INSTAGRAM_API_INSTAGRAM_API_BASE_URL: "https://api.instagram.com/v1/",
INSTAGRAM_AUTH_URL: null,
INSTAGRAM_ACCESS_TOKEN: null,
INSTAGRAM_AUTH_STRING: "client_id="+CONFIG.INSTAGRAM_CLIENT_ID, // TODO Please replace this with your own key.
INSTAGRAM_AUTH_STRING: "client_id="+CONFIG.INSTAGRAM_CLIENT_ID,

init:function() {
this._super();
Expand Down
1 change: 0 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Copyright: ©2011 Strobe, Inc. All rights reserved.
// ==========================================================================

require("./config");
require('./jquery.json-2.2');
require('./jstorage');
require('./core');
Expand Down

0 comments on commit 7caa127

Please sign in to comment.