Skip to content

Commit 10028d7

Browse files
committed
cleanig errors
1 parent 56ea958 commit 10028d7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

backfire/media/backfire/js/backfire-1.0.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,10 @@ var Backfire = (function () {
208208
if (pair == "") continue;
209209
var nameValue = (pairs[i] + "").split(':');
210210
var name = nameValue[0].replace(/^\s*|\s*$/gi, "");
211-
var value = nameValue[1].replace(/^\s*|\s*$/gi, "");
212-
this.declarations[name] = value;
211+
if ( nameValue[1] != undefined ) {
212+
var value = nameValue[1].replace(/^\s*|\s*$/gi, "");
213+
this.declarations[name] = value;
214+
}
213215
}
214216
}
215217
};
@@ -228,4 +230,4 @@ var Backfire = (function () {
228230
})();
229231

230232
// when the script is loaded dynamically, notify that it's ready
231-
if (window.BackfireLoadedCallback) window.BackfireLoadedCallback();
233+
if (window.BackfireLoadedCallback) window.BackfireLoadedCallback();

backfire/media/backfire/js/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function BackfireLoadedCallback() {
3232
if (enabled) {
3333
// add the css
3434
var link = document.createElement('link');
35-
link.href = "/media/css/backfire.css";
35+
link.href = "/media/backfire/css/backfire.css";
3636
link.setAttribute('rel', 'stylesheet');
3737
link.setAttribute('type', 'text/css');
3838
link.setAttribute('media', 'screen');

0 commit comments

Comments
 (0)