Permalink
Browse files

Added clear page, disable css transitions

  • Loading branch information...
1 parent d40fa78 commit 181845d11e2f4bd168b50687e46bb8c2c6d5c30d Kevin Malakoff committed Sep 27, 2012
Showing with 1,061 additions and 10,641 deletions.
  1. +326 −299 examples/vendor/knockback-core-stack-0.16.7.js
  2. +6 −9 knockback-page-navigator-panes.js
  3. +1 −1 knockback-page-navigator-panes.min.js
  4. +6 −9 knockback-page-navigator-simple.js
  5. +1 −1 knockback-page-navigator-simple.min.js
  6. +2 −9 knockback-pane-navigator.js
  7. +1 −1 knockback-pane-navigator.min.js
  8. +6 −10 knockback-transitions.js
  9. +1 −1 knockback-transitions.min.js
  10. +6 −9 packages/npm/knockback-page-navigator-panes.js
  11. +1 −1 packages/npm/knockback-page-navigator-panes.min.js
  12. +6 −9 packages/npm/knockback-page-navigator-simple.js
  13. +1 −1 packages/npm/knockback-page-navigator-simple.min.js
  14. +2 −9 packages/npm/knockback-pane-navigator.js
  15. +1 −1 packages/npm/knockback-pane-navigator.min.js
  16. +6 −10 packages/npm/knockback-transitions.js
  17. +1 −1 packages/npm/knockback-transitions.min.js
  18. +6 −9 packages/nuget/Content/Scripts/knockback-page-navigator-panes.js
  19. +1 −1 packages/nuget/Content/Scripts/knockback-page-navigator-panes.min.js
  20. +6 −9 packages/nuget/Content/Scripts/knockback-page-navigator-simple.js
  21. +1 −1 packages/nuget/Content/Scripts/knockback-page-navigator-simple.min.js
  22. +2 −9 packages/nuget/Content/Scripts/knockback-pane-navigator.js
  23. +1 −1 packages/nuget/Content/Scripts/knockback-pane-navigator.min.js
  24. +6 −10 packages/nuget/Content/Scripts/knockback-transitions.js
  25. +1 −1 packages/nuget/Content/Scripts/knockback-transitions.min.js
  26. +1 −0 src/knockback-page-navigator-panes/knockback-page-navigator-panes.coffee
  27. +1 −0 src/knockback-page-navigator-simple/knockback-page-navigator-simple.coffee
  28. +7 −7 src/knockback-transitions/transition-helpers.coffee
  29. +2 −3 src/shared/knockback-pane.coffee
  30. +0 −1,836 test/vendor/knockback-core-0.16.6.js
  31. +326 −299 test/vendor/knockback-core-0.16.7.js
  32. +0 −7,775 test/vendor/knockback-core-stack-0.16.6.js
  33. +326 −299 test/vendor/knockback-core-stack-0.16.7.js

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -123,6 +123,10 @@ kb.PageNavigatorPanes = (function() {
return this.pane_navigator = null;
};
+ PageNavigatorPanes.prototype.clear = function() {
+ return this.pane_navigator.clear();
+ };
+
PageNavigatorPanes.prototype.hasHistory = function() {
return !this.pane_navigator.no_history;
};
@@ -707,9 +711,6 @@ kb.Pane = (function() {
this[key] = value;
}
}
- if (this.el) {
- $(this.el).addClass('pane');
- }
};
Pane.prototype.ensureElement = function() {
@@ -719,13 +720,9 @@ kb.Pane = (function() {
}
this.create || throwMissing(this, 'create');
info = this.create.apply(this, this.args);
- if (info) {
- this.setInfo(info);
- }
+ !info || this.setInfo(info);
this.el || throwMissing(this, 'element');
- if (this.el) {
- $(this.el).addClass('pane');
- }
+ $(this.el).addClass('pane');
};
Pane.prototype.removeElement = function(options, force) {

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -120,6 +120,10 @@ kb.PageNavigatorSimple = (function() {
return this.active_page = null;
};
+ PageNavigatorSimple.prototype.clear = function() {
+ return this.loadPage(null);
+ };
+
PageNavigatorSimple.prototype.hasHistory = function() {
return false;
};
@@ -277,9 +281,6 @@ kb.Pane = (function() {
this[key] = value;
}
}
- if (this.el) {
- $(this.el).addClass('pane');
- }
};
Pane.prototype.ensureElement = function() {
@@ -289,13 +290,9 @@ kb.Pane = (function() {
}
this.create || throwMissing(this, 'create');
info = this.create.apply(this, this.args);
- if (info) {
- this.setInfo(info);
- }
+ !info || this.setInfo(info);
this.el || throwMissing(this, 'element');
- if (this.el) {
- $(this.el).addClass('pane');
- }
+ $(this.el).addClass('pane');
};
Pane.prototype.removeElement = function(options, force) {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -538,9 +538,6 @@ kb.Pane = (function() {
this[key] = value;
}
}
- if (this.el) {
- $(this.el).addClass('pane');
- }
};
Pane.prototype.ensureElement = function() {
@@ -550,13 +547,9 @@ kb.Pane = (function() {
}
this.create || throwMissing(this, 'create');
info = this.create.apply(this, this.args);
- if (info) {
- this.setInfo(info);
- }
+ !info || this.setInfo(info);
this.el || throwMissing(this, 'element');
- if (this.el) {
- $(this.el).addClass('pane');
- }
+ $(this.el).addClass('pane');
};
Pane.prototype.removeElement = function(options, force) {
Oops, something went wrong.

0 comments on commit 181845d

Please sign in to comment.