Add class UserContext
This commit is contained in:
18
src/core/UserContext.js
Normal file
18
src/core/UserContext.js
Normal file
@@ -0,0 +1,18 @@
|
||||
getJasmineRequireObj().UserContext = function(j$) {
|
||||
function UserContext() {
|
||||
}
|
||||
|
||||
UserContext.fromExisting = function(oldContext) {
|
||||
var context = new UserContext();
|
||||
|
||||
for (var prop in oldContext) {
|
||||
if (oldContext.hasOwnProperty(prop)) {
|
||||
context[prop] = oldContext[prop];
|
||||
}
|
||||
}
|
||||
|
||||
return context;
|
||||
};
|
||||
|
||||
return UserContext;
|
||||
};
|
||||
Reference in New Issue
Block a user