Skip to content

Commit

Permalink
2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j3tan committed Aug 26, 2016
1 parent 74c62ad commit 1cc1751
Show file tree
Hide file tree
Showing 23 changed files with 140 additions and 65 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v2.7.0 - August 26, 2016

* 2.7.0 (Jeff Tan)
* Issue #159: Added setErrorHandler to override default error handling (Rey)

v2.6.0 - July 13, 2016

* 2.6.0 (Jeff Tan)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ The last published release:

```
<!-- Recommended: Latest version of T3 -->
<script src="https://cdn.rawgit.com/box/t3js/v2.6.0/dist/t3.js"></script>
<script src="https://cdn.rawgit.com/box/t3js/v2.7.0/dist/t3.js"></script>
<!-- Recommended: Latest minified version of T3 -->
<script src="https://cdn.rawgit.com/box/t3js/v2.6.0/dist/t3.min.js"></script>
<script src="https://cdn.rawgit.com/box/t3js/v2.7.0/dist/t3.min.js"></script>
<!-- jQuery version (IE8 + 1.8.0+ jQuery) -->
<script src="https://cdn.rawgit.com/box/t3js/v2.6.0/dist/t3-jquery.js"></script>
<script src="https://cdn.rawgit.com/box/t3js/v2.7.0/dist/t3-jquery.js"></script>
<!-- jQuery minified version (IE8 + 1.8.0+ jQuery) -->
<script src="https://cdn.rawgit.com/box/t3js/v2.6.0/dist/t3-jquery.min.js"></script>
<script src="https://cdn.rawgit.com/box/t3js/v2.7.0/dist/t3-jquery.min.js"></script>
```

You may also use `bower` to install t3js:
Expand Down
18 changes: 0 additions & 18 deletions dist/t3-jquery-2.6.0.min.js

This file was deleted.

18 changes: 16 additions & 2 deletions dist/t3-jquery-2.6.0.js → dist/t3-jquery-2.7.0.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! t3-jquery v2.6.0 */
/*! t3-jquery v2.7.0 */
/*!
Copyright 2016 Box, Inc. All rights reserved.
Expand Down Expand Up @@ -569,6 +569,7 @@ Box.Application = (function() {
behaviors = {}, // Information about each registered behavior by behaviorName
instances = {}, // Module instances keyed by DOM element id
initialized = false, // Flag whether the application has been initialized
customErrorHandler = null,

application = new Box.EventTarget(); // base object for application

Expand Down Expand Up @@ -652,7 +653,10 @@ Box.Application = (function() {
* @private
*/
function error(exception) {

if (typeof customErrorHandler === 'function') {
customErrorHandler(exception);
return;
}
if (globalConfig.debug) {
throw exception;
} else {
Expand Down Expand Up @@ -1327,6 +1331,16 @@ Box.Application = (function() {
// Error reporting
//----------------------------------------------------------------------

/**
* Overrides default error handler
* @param {Function} exceptionHandler handling function that takes an
* exception as argument. Must be called before init.
* @returns {void}
*/
setErrorHandler: function(exceptionHandler) {
customErrorHandler = exceptionHandler;
},

/**
* Signals that an error has occurred. If in development mode, an error
* is thrown. If in production mode, an event is fired.
Expand Down
18 changes: 18 additions & 0 deletions dist/t3-jquery-2.7.0.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! t3-jquery-testing v2.6.0 */
/*! t3-jquery-testing v2.7.0 */
/*!
Copyright 2016 Box, Inc. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion dist/t3-jquery-testing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! t3-jquery-testing v2.6.0 */
/*! t3-jquery-testing v2.7.0 */
/*!
Copyright 2016 Box, Inc. All rights reserved.
Expand Down
Loading

0 comments on commit 1cc1751

Please sign in to comment.