-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
137 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
@@ -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] = ''; | ||
} | ||
}); | ||
|
||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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. | ||
|
@@ -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 | ||
|
@@ -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__) { | ||
|
||
|
||
|
@@ -806,7 +709,7 @@ return /******/ (function(modules) { // webpackBootstrap | |
|
||
|
||
/***/ }, | ||
/* 12 */ | ||
/* 10 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
|
||
|
||
|
@@ -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) { | ||
|
@@ -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__) { | ||
|
Oops, something went wrong.