import Events = require('./Bridge');
import Application = require('./Application');

var animatumApp = new Application();

animatumApp.debug();

import Events = require('./Bridge');
import Application = require('./Application');

var services: {
    events: Events.Bridge;
} = {
    events: new Events.Bridge()
};

//$.fn.hasAttr = function(name: string): boolean {
//    var attr = this.attr(name);
//    return attr !== undefined && attr !== false;
//    //return this.attr(name) !== undefined;
//};

var app = new Application();

app.debug();

--- 
+++ 
@@ -1,18 +1,6 @@
 import Events = require('./Bridge');
 import Application = require('./Application');
 
-var services: {
-    events: Events.Bridge;
-} = {
-    events: new Events.Bridge()
-};
+var animatumApp = new Application();
 
-//$.fn.hasAttr = function(name: string): boolean {
-//    var attr = this.attr(name);
-//    return attr !== undefined && attr !== false;
-//    //return this.attr(name) !== undefined;
-//};
-
-var app = new Application();
-
-app.debug();
+animatumApp.debug();
Refactor for naming conflict and removal of services global
