mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 05:27:03 +00:00
28 lines
655 B
JavaScript
28 lines
655 B
JavaScript
|
|
var global = { },
|
|
ObjectiveJ = { };
|
|
|
|
(function (global, exports, namespace)
|
|
{
|
|
var GLOBAL_NAMESPACE = namespace;
|
|
#include "Includes.js"
|
|
})(global, ObjectiveJ, window);
|
|
|
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
|
|
// If we can't trust the host object, don't treat it as global
|
|
// and fall back to inferred global through eval. In IE this
|
|
// make a difference.
|
|
if (window.window !== window)
|
|
{
|
|
for (key in global)
|
|
if (hasOwnProperty.call(global, key))
|
|
eval(key + " = global[\"" + key + "\"];");
|
|
}
|
|
else
|
|
{
|
|
for (key in global)
|
|
if (hasOwnProperty.call(global, key))
|
|
window[key] = global[key];
|
|
}
|