diff options
| -rw-r--r-- | src/Loader.js | 15 | ||||
| -rw-r--r-- | test/ExternalApiTest.js | 4 |
2 files changed, 12 insertions, 7 deletions
diff --git a/src/Loader.js b/src/Loader.js index 5207defb..07731062 100644 --- a/src/Loader.js +++ b/src/Loader.js @@ -163,8 +163,6 @@ function Loader(document, head, config) { Loader.prototype = { load: function() { this.configureLogging(); - this.loadCss('/stylesheets/jquery-ui/smoothness/jquery-ui-1.7.1.css'); - this.loadCss('/stylesheets/css'); log("Server: " + this.config.server); this.configureJQueryPlugins(); this.computeConfiguration(); @@ -266,9 +264,9 @@ Loader.prototype = { log('$binder.updateView()'); binder.updateView(); - watcher.listener = bind(binder, binder.onUrlChange, watcher); - watcher.onUpdate = function(){alert("update");}; - watcher.watch(); + //watcher.listener = bind(binder, binder.onUrlChange, watcher); + //watcher.onUpdate = function(){alert("update");}; + //watcher.watch(); document.find("body").show(); log('ready()'); }, @@ -382,11 +380,14 @@ UrlWatcher.prototype = { angular['compile'] = function(root, config) { config = config || {}; var defaults = { - server: "" + 'server': "", + 'addUrlChangeListener': noop }; - //todo: don't load stylesheet by default //todo: don't start watcher var loader = new Loader(root, jQuery("head"), _(defaults).extend(config)); + //todo: don't load stylesheet by default + // loader.loadCss('/stylesheets/jquery-ui/smoothness/jquery-ui-1.7.1.css'); + // loader.loadCss('/stylesheets/css'); loader.load(); var scope = jQuery(root).scope(); //TODO: cleanup diff --git a/test/ExternalApiTest.js b/test/ExternalApiTest.js index 40cb0ab4..7356915b 100644 --- a/test/ExternalApiTest.js +++ b/test/ExternalApiTest.js @@ -6,5 +6,9 @@ ExternalApiTest.prototype = { var scope = angular.compile(node); assertEquals(1, scope.get('a')); assertEquals(2, scope.get('b')); + }, + + testItShouldRegisterAnchorListener: function (){ + } }; |
