Skip to content

Commit

Permalink
Default version for custom builds + check for eye log existence
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvaray committed Aug 28, 2013
1 parent 3f08353 commit ef4de3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion extension/chrome/content/spa_eye/hooks/bb/bbhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ define([

logError:function (e) {
this._errors.push(e);
Events.dispatch([this.context.getPanel("spa_eye:logs")], 'onIntrospectionError', [e]);
var eye_logs = this.context.getPanel("spa_eye:logs");
eye_logs && Events.dispatch([eye_logs], 'onIntrospectionError', [e]);
if (FBTrace.DBG_SPA_EYE) {
FBTrace.sysout("spa_eye; Unexpected error", e);
}
Expand Down
7 changes: 4 additions & 3 deletions extension/chrome/content/spa_eye/util/common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
define([
"firebug/lib/http"
], function (Http) {
"firebug/lib/http",
"firebug/lib/locale"
], function (Http, Locale) {
return {
Operation:{
SAVE:"save", FETCH:"fetch", SET:"set", UNSET:"unset", CLEAR:"clear", RENDER:"render", ADD:"add",
Expand All @@ -16,7 +17,7 @@ define([
Model:"Model", View:"View", Collection:"Collection"
},
getVersion:function (versionURL) {
var version = '';
var version = Locale.$STR("spa_eye.version.custom");
var content = Http.getResource(versionURL);
if (content) {
var m = /VERSION=(.*)/.exec(content);
Expand Down
1 change: 1 addition & 0 deletions extension/chrome/locale/en-US/spa_eye.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
spa_eye.title=Backbone Eye
spa_eye.about=Backbone Eye $VERSION$
spa_eye.tooltip=Inspect your Backbone application
spa_eye.version.custom = [custom build]

spa_eye.all=All
spa_eye.loading=Loading...
Expand Down

0 comments on commit ef4de3d

Please sign in to comment.