forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetArguments.js
24 lines (21 loc) · 996 Bytes
/
getArguments.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
define([], function() {
'use strict';
// Jasmine 2.1 requires that objects be constructed with the same constructor in
// order to be considered equal. The 'arguments' keyword looks like an array, but
// it's actually (at least in Chrome and Firefox) constructed with a special
// constructor, so it never compares Jasmine-equal to an array. This function lets
// us create an arguments array.
/**
* Jasmine 2.1 requires that objects be constructed with the same constructor in
* order to be considered equal. The 'arguments' keyword looks like an array, but
* it's actually (at least in Chrome and Firefox) constructed with a special
* constructor, so it never compares Jasmine-equal to an array. This function lets
* us create an arguments array.
* @alias getArguments
* @return {Array} The arguments passed to the function.
*/
function getArguments() {
return arguments;
}
return getArguments;
});