Skip to content

Commit

Permalink
Stable Version 2.1.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Jul 11, 2015
1 parent 0c0a9e6 commit 38db31b
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 126 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
##### 2.1.1 - 10 July 2015

###### Backwards compatible bug fixes
- fix for loading relations in find and findAll()

##### 2.1.0 - 10 July 2015

###### Backwards compatible API changes
Expand Down
247 changes: 125 additions & 122 deletions dist/js-data-firebase.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* js-data-firebase
* @version 2.1.0 - Homepage <http://www.js-data.io/docs/dsfirebaseadapter>
* @version 2.1.1 - Homepage <http://www.js-data.io/docs/dsfirebaseadapter>
* @author Jason Dobry <[email protected]>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data-firebase/blob/master/LICENSE>
Expand Down Expand Up @@ -172,11 +172,14 @@ return /******/ (function(modules) { // webpackBootstrap
if (containedName) {
(function () {
var __options = DSUtils.deepMixIn({}, options.orig ? options.orig() : options);
__options['with'] = options['with'].slice();
__options = DSUtils._(relationDef, __options);
DSUtils.remove(__options['with'], containedName);
DSUtils.forEach(__options['with'], function (relation, i) {
if (relation && relation.indexOf(containedName) === 0 && relation.length >= containedName.length && relation[containedName.length] === '.') {
__options['with'][i] = relation.substr(containedName.length + 1);
} else {
__options['with'][i] = '';
}
});

Expand Down Expand Up @@ -513,7 +516,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 3 */
/***/ function(module, exports, __webpack_require__) {

var forOwn = __webpack_require__(6);
var forOwn = __webpack_require__(8);

/**
* Get object values
Expand All @@ -535,7 +538,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 4 */
/***/ function(module, exports, __webpack_require__) {

var makeIterator = __webpack_require__(7);
var makeIterator = __webpack_require__(6);

/**
* Array map
Expand Down Expand Up @@ -563,7 +566,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 5 */
/***/ function(module, exports, __webpack_require__) {

var filter = __webpack_require__(8);
var filter = __webpack_require__(7);

/**
* @return {array} Array of unique items
Expand Down Expand Up @@ -594,34 +597,9 @@ return /******/ (function(modules) { // webpackBootstrap
/* 6 */
/***/ function(module, exports, __webpack_require__) {

var hasOwn = __webpack_require__(9);
var forIn = __webpack_require__(10);

/**
* Similar to Array/forEach but works over object properties and fixes Don't
* Enum bug on IE.
* based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
*/
function forOwn(obj, fn, thisObj){
forIn(obj, function(val, key){
if (hasOwn(obj, key)) {
return fn.call(thisObj, obj[key], key, obj);
}
});
}

module.exports = forOwn;




/***/ },
/* 7 */
/***/ function(module, exports, __webpack_require__) {

var identity = __webpack_require__(11);
var prop = __webpack_require__(12);
var deepMatches = __webpack_require__(13);
var identity = __webpack_require__(9);
var prop = __webpack_require__(10);
var deepMatches = __webpack_require__(11);

/**
* Converts argument into a valid iterator.
Expand Down Expand Up @@ -656,10 +634,10 @@ return /******/ (function(modules) { // webpackBootstrap


/***/ },
/* 8 */
/* 7 */
/***/ function(module, exports, __webpack_require__) {

var makeIterator = __webpack_require__(7);
var makeIterator = __webpack_require__(6);

/**
* Array filter
Expand Down Expand Up @@ -688,107 +666,32 @@ return /******/ (function(modules) { // webpackBootstrap


/***/ },
/* 9 */
/***/ function(module, exports, __webpack_require__) {



/**
* Safer Object.hasOwnProperty
*/
function hasOwn(obj, prop){
return Object.prototype.hasOwnProperty.call(obj, prop);
}

module.exports = hasOwn;




/***/ },
/* 10 */
/* 8 */
/***/ function(module, exports, __webpack_require__) {

var hasOwn = __webpack_require__(9);

var _hasDontEnumBug,
_dontEnums;

function checkDontEnum(){
_dontEnums = [
'toString',
'toLocaleString',
'valueOf',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'constructor'
];

_hasDontEnumBug = true;

for (var key in {'toString': null}) {
_hasDontEnumBug = false;
}
}
var hasOwn = __webpack_require__(12);
var forIn = __webpack_require__(13);

/**
* Similar to Array/forEach but works over object properties and fixes Don't
* Enum bug on IE.
* based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
*/
function forIn(obj, fn, thisObj){
var key, i = 0;
// no need to check if argument is a real object that way we can use
// it for arrays, functions, date, etc.

//post-pone check till needed
if (_hasDontEnumBug == null) checkDontEnum();

for (key in obj) {
if (exec(fn, obj, key, thisObj) === false) {
break;
}
}


if (_hasDontEnumBug) {
var ctor = obj.constructor,
isProto = !!ctor && obj === ctor.prototype;

while (key = _dontEnums[i++]) {
// For constructor, if it is a prototype object the constructor
// is always non-enumerable unless defined otherwise (and
// enumerated above). For non-prototype objects, it will have
// to be defined on this object, since it cannot be defined on
// any prototype objects.
//
// For other [[DontEnum]] properties, check if the value is
// different than Object prototype value.
if (
(key !== 'constructor' ||
(!isProto && hasOwn(obj, key))) &&
obj[key] !== Object.prototype[key]
) {
if (exec(fn, obj, key, thisObj) === false) {
break;
}
}
function forOwn(obj, fn, thisObj){
forIn(obj, function(val, key){
if (hasOwn(obj, key)) {
return fn.call(thisObj, obj[key], key, obj);
}
}
}

function exec(fn, obj, key, thisObj){
return fn.call(thisObj, obj[key], key, obj);
});
}

module.exports = forIn;
module.exports = forOwn;




/***/ },
/* 11 */
/* 9 */
/***/ function(module, exports, __webpack_require__) {


Expand All @@ -806,7 +709,7 @@ return /******/ (function(modules) { // webpackBootstrap


/***/ },
/* 12 */
/* 10 */
/***/ function(module, exports, __webpack_require__) {


Expand All @@ -826,10 +729,10 @@ return /******/ (function(modules) { // webpackBootstrap


/***/ },
/* 13 */
/* 11 */
/***/ function(module, exports, __webpack_require__) {

var forOwn = __webpack_require__(6);
var forOwn = __webpack_require__(8);
var isArray = __webpack_require__(14);

function containsMatch(array, pattern) {
Expand Down Expand Up @@ -886,6 +789,106 @@ return /******/ (function(modules) { // webpackBootstrap



/***/ },
/* 12 */
/***/ function(module, exports, __webpack_require__) {



/**
* Safer Object.hasOwnProperty
*/
function hasOwn(obj, prop){
return Object.prototype.hasOwnProperty.call(obj, prop);
}

module.exports = hasOwn;




/***/ },
/* 13 */
/***/ function(module, exports, __webpack_require__) {

var hasOwn = __webpack_require__(12);

var _hasDontEnumBug,
_dontEnums;

function checkDontEnum(){
_dontEnums = [
'toString',
'toLocaleString',
'valueOf',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'constructor'
];

_hasDontEnumBug = true;

for (var key in {'toString': null}) {
_hasDontEnumBug = false;
}
}

/**
* Similar to Array/forEach but works over object properties and fixes Don't
* Enum bug on IE.
* based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
*/
function forIn(obj, fn, thisObj){
var key, i = 0;
// no need to check if argument is a real object that way we can use
// it for arrays, functions, date, etc.

//post-pone check till needed
if (_hasDontEnumBug == null) checkDontEnum();

for (key in obj) {
if (exec(fn, obj, key, thisObj) === false) {
break;
}
}


if (_hasDontEnumBug) {
var ctor = obj.constructor,
isProto = !!ctor && obj === ctor.prototype;

while (key = _dontEnums[i++]) {
// For constructor, if it is a prototype object the constructor
// is always non-enumerable unless defined otherwise (and
// enumerated above). For non-prototype objects, it will have
// to be defined on this object, since it cannot be defined on
// any prototype objects.
//
// For other [[DontEnum]] properties, check if the value is
// different than Object prototype value.
if (
(key !== 'constructor' ||
(!isProto && hasOwn(obj, key))) &&
obj[key] !== Object.prototype[key]
) {
if (exec(fn, obj, key, thisObj) === false) {
break;
}
}
}
}
}

function exec(fn, obj, key, thisObj){
return fn.call(thisObj, obj[key], key, obj);
}

module.exports = forIn;




/***/ },
/* 14 */
/***/ function(module, exports, __webpack_require__) {
Expand Down
Loading

0 comments on commit 38db31b

Please sign in to comment.