Skip to content

Commit

Permalink
Fixed breeze.ajaxpost.js failing if no ajax adapter is configured at …
Browse files Browse the repository at this point in the history
…the time of loading the library
  • Loading branch information
marcelgood committed Sep 24, 2016
1 parent 4ffe06d commit 9bf796e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Breeze Labs version numbers are semi-independent of BreezeJS version numbers.

The build number (last of the 3 digits) floats independently. We strive to keep the major.minor digits in sync with BreezeJS

1.5.12
---------------------

- Fixed breeze.ajaxpost.js failing if no ajax adapter is configured at the time of loading the library

1.5.10
---------------------

Expand Down
3 changes: 3 additions & 0 deletions breeze.ajaxpost.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
function wrapAjaxImpl(ajaxAdapter) {
if (!ajaxAdapter) {
ajaxAdapter = breeze.config.getAdapterInstance("ajax");

// There may not be a current ajax adapter. This can happen if breeze.base.*.js is being used
if (!ajaxAdapter) return;
}
if (ajaxAdapter.ajaxPostEnabled){
return; // already wrapped it.
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "breeze-client-labs",
"version": "1.5.11",
"version": "1.5.12",
"description": "Breeze Labs are extensions and utilities for Breeze.js client apps that are not part of core breeze.",
"keywords": [
"breeze",
Expand All @@ -22,7 +22,7 @@
},
"main": "",
"dependencies": {
"breeze-client": "^1.5.10"
"breeze-client": "^1.5.12"
},
"maintainers": [
{
Expand All @@ -36,6 +36,10 @@
{
"name": "wardbell",
"email": "[email protected]"
},
{
"name": "marcelgood",
"email": "[email protected]"
}
],
"jspm": {
Expand Down

0 comments on commit 9bf796e

Please sign in to comment.