Add class UserContext

This commit is contained in:
darthjee
2017-07-24 22:35:05 +02:00
parent 4cce7263c4
commit b0aac6b852
8 changed files with 139 additions and 18 deletions

18
src/core/UserContext.js Normal file
View 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;
};