Skip to content

Commit

Permalink
Released version 2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Nov 19, 2013
1 parent 8e07ebb commit 7f960cd
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 18 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
http://jsoneditoronline.org


## not yet released, version 2.4.0
## 2013-11-19, version 2.3.4

- Dropped support for IE8, cleaned up legacy code for old browsers.
- Disabled saving files using HTML5 on Firefox to prevent a Firefox bug
Expand Down
10 changes: 9 additions & 1 deletion app/web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,15 @@ app.load = function() {
// enforce FireFox to not do spell checking on any input field
document.body.spellcheck = false;
} catch (err) {
app.notify.showError(err);
try {
app.notify.showError(err);
}
catch (e) {
if (console && console.log) {
console.log(err);
}
alert(err);
}
}
};

Expand Down
2 changes: 1 addition & 1 deletion app/web/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Notify.prototype.showNotification = function (message) {
Notify.prototype.showError = function (error) {
return this.showMessage({
type: 'error',
message: (error.message || error.toString()),
message: (error.message ? 'Error: ' + error.message : error.toString()),
closeButton: true
});
};
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "2.4.0-SNAPSHOT",
"version": "2.3.4",
"description": "A web-based tool to view, edit and format JSON",
"tags": [
"json",
Expand Down
6 changes: 3 additions & 3 deletions jsoneditor-min.js

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions jsoneditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* Copyright (c) 2011-2013 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <[email protected]>
* @version 2.4.0-SNAPSHOT
* @date 2013-11-15
* @version 2.3.4
* @date 2013-11-19
*/
(function () {

Expand Down Expand Up @@ -5957,8 +5957,13 @@ util.addEventListener = function addEventListener(element, action, listener, use

element.addEventListener(action, listener, useCapture);
return listener;
} else {
throw new Error('missing function addEventListener');
} else if (element.attachEvent) {
// Old IE browsers
var f = function () {
return listener.call(element, window.event);
};
element.attachEvent("on" + action, f);
return f;
}
};

Expand All @@ -5979,8 +5984,9 @@ util.removeEventListener = function removeEventListener(element, action, listene
}

element.removeEventListener(action, listener, useCapture);
} else {
throw new Error('missing function removeEventListener');
} else if (element.detachEvent) {
// Old IE browsers
element.detachEvent("on" + action, listener);
}
};

Expand Down
14 changes: 10 additions & 4 deletions jsoneditor/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,13 @@ util.addEventListener = function addEventListener(element, action, listener, use

element.addEventListener(action, listener, useCapture);
return listener;
} else {
throw new Error('missing function addEventListener');
} else if (element.attachEvent) {
// Old IE browsers
var f = function () {
return listener.call(element, window.event);
};
element.attachEvent("on" + action, f);
return f;
}
};

Expand All @@ -476,7 +481,8 @@ util.removeEventListener = function removeEventListener(element, action, listene
}

element.removeEventListener(action, listener, useCapture);
} else {
throw new Error('missing function removeEventListener');
} else if (element.detachEvent) {
// Old IE browsers
element.detachEvent("on" + action, listener);
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "2.4.0-SNAPSHOT",
"version": "2.3.4",
"main": "jsoneditor.js",
"description": "A web-based tool to view, edit and format JSON",
"tags": [
Expand Down

0 comments on commit 7f960cd

Please sign in to comment.