diff --git a/CHANGELOG.md b/CHANGELOG.md index e90e1c0..f72d10f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 --------------------- diff --git a/breeze.ajaxpost.js b/breeze.ajaxpost.js index 3bebfe2..4737985 100644 --- a/breeze.ajaxpost.js +++ b/breeze.ajaxpost.js @@ -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. diff --git a/package.json b/package.json index e166cd7..036c63d 100644 --- a/package.json +++ b/package.json @@ -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", @@ -22,7 +22,7 @@ }, "main": "", "dependencies": { - "breeze-client": "^1.5.10" + "breeze-client": "^1.5.12" }, "maintainers": [ { @@ -36,6 +36,10 @@ { "name": "wardbell", "email": "wardb@ideablade.com" + }, + { + "name": "marcelgood", + "email": "marcelg@ideablade.com" } ], "jspm": {