(function (root) {
	if (root) {
		if (root.angular && root.loki) {
			var module = angular.module('lokijs', [])
				.factory('Loki', function Loki() {
					return loki;
				});
		}
	}
})(window)
@@ -140,20 +140,299 @@
 on Loki(
+$window
 ) %7B%0A
+%09%09%09%09%09if ($window.loki) %7B%0A%09%09%09%09%09%09$window.thirdParty = $window.thirdParty %7C%7C %7B%7D;%0A%09%09%09%09%09%09$window.thirdParty.loki = root.loki;%0A%09%09%09%09%09%09try %7B%0A%09%09%09%09%09%09%09delete $window.loki;%0A%09%09%09%09%09%09%7D catch (err) %7B%0A%09%09%09%09%09%09%09$window.loki = undefined;%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09%09%09var loki = $window.thirdParty.loki;%0A
 %09%09%09%09%09ret
@@ -449,16 +449,17 @@
 %09%09%09%09%7D);%0A
+%0A
 %09%09%7D%0A%09%7D%0A%7D

delete window.loki in angular detector