Skip to content

Commit

Permalink
2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j3tan committed Jul 13, 2016
1 parent ba4e8e7 commit d4ad70c
Show file tree
Hide file tree
Showing 21 changed files with 120 additions and 33 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
v2.6.0 - July 13, 2016

* 2.6.0 (Jeff Tan)
* Add test for reportInfo() method (Mike)
* Added new method to report console info messages in debug mode (#175) (Mike)
* Update README.md (Jeff Tan)

v2.5.0 - May 20, 2016

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

You may also use `bower` to install t3js:
Expand Down
18 changes: 17 additions & 1 deletion dist/t3-jquery-2.5.0.js → dist/t3-jquery-2.6.0.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! t3-jquery v2.5.0 */
/*! t3-jquery v2.6.0 */
/*!
Copyright 2016 Box, Inc. All rights reserved.
Expand Down Expand Up @@ -1352,6 +1352,22 @@ Box.Application = (function() {
} else {
application.fire('warning', data);
}
},

/**
* Display console info messages.
* If in development mode, console.info is invoked.
* @param {*} data A message string or arbitrary data
* @returns {void}
*/
reportInfo: function(data) {
if (globalConfig.debug) {
// We grab console via getGlobal() so we can stub it out in tests
var globalConsole = this.getGlobal('console');
if (globalConsole && globalConsole.info) {
globalConsole.info(data);
}
}
}

});
Expand Down
4 changes: 2 additions & 2 deletions dist/t3-jquery-2.5.0.min.js → dist/t3-jquery-2.6.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.5.0 */
/*! t3-jquery-testing v2.6.0 */
/*!
Copyright 2016 Box, Inc. All rights reserved.
Expand Down Expand Up @@ -553,7 +553,7 @@ Box.DOMEventDelegate = (function() {
// function stubs that are automatically included on a TestServiceProvider
var APPLICATION_CONTEXT_STUBS = [
// Shared between Application and Context
'broadcast', 'getGlobalConfig', 'reportError', 'reportWarning',
'broadcast', 'getGlobalConfig', 'reportError', 'reportWarning', 'reportInfo',

// Application (only ones that should be called from a service)
'start', 'stop', 'startAll', 'stopAll', 'isStarted',
Expand Down
4 changes: 2 additions & 2 deletions dist/t3-jquery-testing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! t3-jquery-testing v2.5.0 */
/*! t3-jquery-testing v2.6.0 */
/*!
Copyright 2016 Box, Inc. All rights reserved.
Expand Down Expand Up @@ -553,7 +553,7 @@ Box.DOMEventDelegate = (function() {
// function stubs that are automatically included on a TestServiceProvider
var APPLICATION_CONTEXT_STUBS = [
// Shared between Application and Context
'broadcast', 'getGlobalConfig', 'reportError', 'reportWarning',
'broadcast', 'getGlobalConfig', 'reportError', 'reportWarning', 'reportInfo',

// Application (only ones that should be called from a service)
'start', 'stop', 'startAll', 'stopAll', 'isStarted',
Expand Down
18 changes: 17 additions & 1 deletion dist/t3-jquery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! t3-jquery v2.5.0 */
/*! t3-jquery v2.6.0 */
/*!
Copyright 2016 Box, Inc. All rights reserved.
Expand Down Expand Up @@ -1352,6 +1352,22 @@ Box.Application = (function() {
} else {
application.fire('warning', data);
}
},

/**
* Display console info messages.
* If in development mode, console.info is invoked.
* @param {*} data A message string or arbitrary data
* @returns {void}
*/
reportInfo: function(data) {
if (globalConfig.debug) {
// We grab console via getGlobal() so we can stub it out in tests
var globalConsole = this.getGlobal('console');
if (globalConsole && globalConsole.info) {
globalConsole.info(data);
}
}
}

});
Expand Down
Loading

0 comments on commit d4ad70c

Please sign in to comment.