Browse files

Add capabilities as dependency for ArticleManager

  • Loading branch information...
1 parent 7ddded0 commit 1b8d072020e0cb9b9f0a7abb94ab9cef61820041 @fortes fortes committed Sep 22, 2011
Showing with 4 additions and 2 deletions.
  1. +3 −1 src/ui/articlemanager.js
  2. +1 −1 test/deps.js
View
4 src/ui/articlemanager.js
@@ -4,6 +4,7 @@
goog.provide('treesaver.ui.ArticleManager');
+goog.require('treesaver.capabilities');
goog.require('treesaver.debug');
goog.require('treesaver.dimensions');
goog.require('treesaver.dom');
@@ -18,6 +19,7 @@ goog.require('treesaver.uri');
goog.scope(function() {
var ArticleManager = treesaver.ui.ArticleManager,
+ capabilities = treesaver.capabilities,
debug = treesaver.debug,
dimensions = treesaver.dimensions,
dom = treesaver.dom,
@@ -165,7 +167,7 @@ goog.scope(function() {
var requires = node.getAttribute('data-requires'),
grid;
// Make sure the grid meets our requirements
- if (!requires || treesaver.capabilities.check(requires.split(' '))) {
+ if (!requires || capabilities.check(requires.split(' '))) {
// Initialize each grid and store
grid = new treesaver.layout.Grid(node);
if (!grid.error) {
View
2 test/deps.js
@@ -33,7 +33,7 @@ goog.addDependency("../../../src/lib/string.js", ['treesaver.string'], []);
goog.addDependency("../../../src/lib/styles.js", ['treesaver.styles'], ['treesaver.debug', 'treesaver.dom']);
goog.addDependency("../../../src/lib/uri.js", ['treesaver.uri'], []);
goog.addDependency("../../../src/ui/article.js", ['treesaver.ui.Article'], ['treesaver.array', 'treesaver.debug', 'treesaver.dimensions', 'treesaver.dom', 'treesaver.events', 'treesaver.layout.BreakRecord', 'treesaver.layout.Content', 'treesaver.layout.ContentPosition', 'treesaver.layout.Grid', 'treesaver.layout.Page', 'treesaver.scheduler']);
-goog.addDependency("../../../src/ui/articlemanager.js", ['treesaver.ui.ArticleManager'], ['treesaver.debug', 'treesaver.dimensions', 'treesaver.dom', 'treesaver.events', 'treesaver.network', 'treesaver.resources', 'treesaver.ui.Article', 'treesaver.ui.ArticlePosition', 'treesaver.ui.Document', 'treesaver.ui.Index', 'treesaver.uri']);
+goog.addDependency("../../../src/ui/articlemanager.js", ['treesaver.ui.ArticleManager'], ['treesaver.capabilities', 'treesaver.debug', 'treesaver.dimensions', 'treesaver.dom', 'treesaver.events', 'treesaver.network', 'treesaver.resources', 'treesaver.ui.Article', 'treesaver.ui.ArticlePosition', 'treesaver.ui.Document', 'treesaver.ui.Index', 'treesaver.uri']);
goog.addDependency("../../../src/ui/articleposition.js", ['treesaver.ui.ArticlePosition'], []);
goog.addDependency("../../../src/ui/chrome.js", ['treesaver.ui.Chrome'], ['treesaver.array', 'treesaver.capabilities', 'treesaver.debug', 'treesaver.dimensions', 'treesaver.dom', 'treesaver.events', 'treesaver.network', 'treesaver.scheduler', 'treesaver.ui.ArticleManager', 'treesaver.ui.Index', 'treesaver.ui.Scrollable']);
goog.addDependency("../../../src/ui/document.js", ['treesaver.ui.Document'], ['treesaver.capabilities', 'treesaver.debug', 'treesaver.dom', 'treesaver.events', 'treesaver.storage', 'treesaver.ui.Article', 'treesaver.ui.TreeNode', 'treesaver.uri']);

0 comments on commit 1b8d072

Please sign in to comment.