-
-
-
-
\ No newline at end of file
diff --git a/controller/pages/listening.md b/controller/pages/listening.md
deleted file mode 100644
index 2cdbc91c..00000000
--- a/controller/pages/listening.md
+++ /dev/null
@@ -1,189 +0,0 @@
-@page jquery.controller.listening Listening To Events
-@parent jQuery.Controller
-
-Controllers make creating and tearing down event handlers extremely
-easy. The tearingdown of event handlers is especially important
-in preventing memory leaks in long lived applications.
-
-## Automatic Binding
-
-When a [jQuery.Controller.prototype.setup new controller is created],
-contoller checks its prototype methods for functions that are named like
-event handlers. It binds these functions to the
-controller's [jQuery.Controller.prototype.element element] with
-event delegation. When
-the controller is destroyed (or it's element is removed from the page), controller
-will unbind its event handlers automatically.
-
-For example, each of the following controller's functions will automatically
-bound:
-
- $.Controller("Crazy",{
-
- // listens to all clicks on this element
- "click" : function(el, ev){},
-
- // listens to all mouseovers on
- // li elements withing this controller
- "li mouseover" : function(el, ev){}
-
- // listens to the window being resized
- "{window} resize" : function(window, ev){}
- })
-
-Controller will bind function names with spaces, standard DOM events, and
-event names in $.event.special.
-
-In general, Controller will know automatically when to bind event handler functions except for
-one case - event names without selectors that are not in $.event.special.
-
-But to correct for this, you just need to add the
-function to the [jQuery.Controller.static.listensTo listensTo]
-property. Here's how:
-
- $.Controller("MyShow",{
- listensTo: ["show"]
- },{
- show: function( el, ev ) {
- el.show();
- }
- })
- $('.show').my_show().trigger("show");
-
-## Callback parameters
-
-Event handlers bound with controller are called back with the element and the event
-as parameters. this refers to the controller instance. For example:
-
- $.Controller("Tabs",{
-
- // li - the list element that was clicked
- // ev - the click event
- "li click" : function(li, ev){
- this.tab(li).hide()
- },
- tab : function(li){
- return $(li.find("a").attr("href"))
- }
- })
-
-## Templated Event Bindings
-
-One of Controller's most powerful features is templated event
-handlers. You can parameterize the event name,
-the selector, or event the root element.
-
-### Templating event names and selectors:
-
-Often, you want to make a widget's behavior
-configurable. A common example is configuring which event
-a menu should show a sub-menu (ex: on click or mouseenter). The
-following controller lets you configure when a menu should show
-sub-menus:
-
-The following makes two buttons. One says hello on click,
-the other on a 'tap' event.
-
- $.Controller("Menu",{
- "li {showEvent}" : function(el){
- el.children('ul').show()
- }
- })
-
- $("#clickMe").menu({showEvent : "click"});
- $("#touchMe").menu({showEvent : "mouseenter"});
-
-$.Controller replaces value in {} with
-values in a
-controller's [jQuery.Controller.prototype.options options]. This means
-we can easily provide a default showEvent value and create
-a menu without providing a value like:
-
- $.Controller("Menu",
- {
- defaults : {
- showEvent : "click"
- }
- },
- {
- "li {showEvent}" : function(el){
- el.children('ul').show()
- }
- });
-
- $("#clickMe").menu(); //defaults to using click
-
-Sometimes, we might might want to configure our widget to
-use different elements. The following makes the menu widget's
-button elements configurable:
-
- $.Controller("Menu",{
- "{button} {showEvent}" : function(el){
- el.children('ul').show()
- }
- })
-
- $('#buttonMenu').menu({button: "button"});
-
-### Templating the root element.
-
-Finally, controller lets you bind to objects outside
-of the [jQuery.Controller.prototype.element controller's element].
-
-The following listens to clicks on the window:
-
- $.Controller("HideOnClick",{
- "{window} click" : function(){
- this.element.hide()
- }
- })
-
-The following listens to Todos being created:
-
- $.Controller("NewTodos",{
- "{App.Models.Todo} created" : function(Todo, ev, newTodo){
- this.element.append("newTodos.ejs", newTodo)
- }
- });
-
-But instead of making NewTodos only work with the Todo model,
-we can make it configurable:
-
- $.Controller("Newbie",{
- "{model} created" : function(Model, ev, newItem){
- this.element.append(this.options.view, newItem)
- }
- });
-
- $('#newItems').newbie({
- model: App.Models.Todo,
- view: "newTodos.ejs"
- })
-
-### How Templated events work
-
-When looking up a value to replace {},
-controller first looks up the item in the options, then it looks
-up the value in the window object. It does not use eval to look up the
-object. Instead it uses [jQuery.String.getObject].
-
-
-## Subscribing to OpenAjax messages and custom bindings
-
-The jquerypp/controller/subscribe plugin allows controllers to listen
-to OpenAjax.hub messages like:
-
- $.Controller("Listener",{
- "something.updated subscribe" : function(called, data){
-
- }
- })
-
-You can create your own binders by adding to [jQuery.Controller.static.processors].
-
-## Manually binding to events.
-
-The [jQuery.Controller.prototype.bind] and [jQuery.Controller.prototype.delegate]
-methods let you listen to events on other elements. These event handlers will
-be unbound when the controller instance is destroyed.
-
diff --git a/controller/pages/plugin.md b/controller/pages/plugin.md
deleted file mode 100644
index d3ee520f..00000000
--- a/controller/pages/plugin.md
+++ /dev/null
@@ -1,101 +0,0 @@
-@page jquery.controller.plugin The generated jQuery plugin
-@parent jQuery.Controller
-
-When you create a controller, it creates a jQuery plugin that can be
-used to:
-
- - Create controllers on an element or elements
- - Call controller methods
- - Update a controller
-
-For example, the following controller:
-
- $.Controller("My.Widget",{
- say : function(){
- alert(this.options.message);
- }
- })
-
-creates a jQuery.fn.my_widget method that you can use like:
-
- // create my_widget on each .thing
- $(".thing").my_widget({message : "Hello"})
-
- // alerts "Hello"
- $(".thing").my_widget("say");
-
- // updates the message option
- $(".thing").my_widget({message : "World"});
-
- // alerts "World"
- $(".thing").my_widget("say");
-
-Note that in every case, the my_widget plugin
-returns the original jQuery collection for chaining ($('.thing')). If you want to
-get a value from a controller, use the [jQuery.fn.controllers] or [jQuery.fn.controller].
-
-## Creating controllers
-
-When a controller's jQuery plugin helper is used on a jQuery collection, it goes to each
-element and tests if it has a controller instance on the element. If it does not, it creates one.
-
-It calls new YourController with the element and any additional arguments you passed
-to the jQuery plugin helper. So for example, say there are 2 elements in $('.thing').
-
-This:
-
- $(".thing").my_widget({message : "Hello"})
-
-Does the exact same thing as:
-
- var things = $('.thing'),
- options = {message : "Hello"};
- new My.Widget(things[0],options);
- new My.Widget(things[1],options);
-
-Note, when a new Class is created, it calls your
-class's prototype setup and init methods. Read [jQuery.Controller.prototype.setup controller's setup]
-for the details on what happens when a new controller is created.
-
-
-## Calling methods on controllers
-
-Once a Controller is already on an element, you can call methods on it with the same jQuery
-helper. The first param to the helper is the name of the method, the following params are
-passed to the jQuery function. For example:
-
- $.Controller("Adder",{
- sum : function(first, second, third){
- this.element.text(first+second+third);
- }
- })
-
- // add an adder to the page
- $("#myadder").adder()
-
- // show the sum of 1+2+3
- $("#myadder").adder("sum",1,2,3);
-
-## Naming
-
-By default, a controller's jQuery helper is the controller name:
-
- - [jQuery.String.underscore underscored]
- - "." replaced with "_"
- - with Controllers removed.
-
-Here are some examples:
-
- $.Controller("Foo") // -> .foo()
- $.Controller("Foo.Bar") // -> .foo_bar()
- $.Controller("Foo.Controllers.Bar") // -> .foo_bar()
-
-You can overwrite the Controller's default name by setting a static pluginName property:
-
- $.Controller("My.Tabs",
- {
- pluginName: "tabs"
- },
- { ... })
-
- $("#tabs").tabs()
diff --git a/controller/qunit.html b/controller/qunit.html
deleted file mode 100644
index 13d5a0f8..00000000
--- a/controller/qunit.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
Controller Test Suite
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/controller/route/qunit.html b/controller/route/qunit.html
deleted file mode 100644
index e9ef5ae9..00000000
--- a/controller/route/qunit.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- route QUnit Test
-
-
-
-
-
route Test Suite
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/controller/route/route.html b/controller/route/route.html
deleted file mode 100644
index 36cf1a4e..00000000
--- a/controller/route/route.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
- route
-
-
-
-
route Demo
- foo/bar
- foo/car
- empty
-
-
-
-
\ No newline at end of file
diff --git a/controller/route/route.js b/controller/route/route.js
deleted file mode 100644
index 13935ac0..00000000
--- a/controller/route/route.js
+++ /dev/null
@@ -1 +0,0 @@
-steal('jquerypp/controller', 'can/control/route')
diff --git a/controller/route/route_test.js b/controller/route/route_test.js
deleted file mode 100644
index 6a140d6b..00000000
--- a/controller/route/route_test.js
+++ /dev/null
@@ -1,10 +0,0 @@
-steal('funcunit/qunit','./route',function(){
-
-module("route");
-
-test("route testing works", function(){
- ok(true,"an assert is run");
-});
-
-
-});
\ No newline at end of file
diff --git a/controller/subscribe/funcunit.html b/controller/subscribe/funcunit.html
deleted file mode 100644
index 597d6324..00000000
--- a/controller/subscribe/funcunit.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
subscribe Test Suite
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/controller/subscribe/subscribe.html b/controller/subscribe/subscribe.html
deleted file mode 100644
index 66f823e7..00000000
--- a/controller/subscribe/subscribe.html
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- hover
-
-
-
-
-
-
-
-
-
diff --git a/controller/subscribe/subscribe.js b/controller/subscribe/subscribe.js
deleted file mode 100644
index 3ccdf273..00000000
--- a/controller/subscribe/subscribe.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/*global OpenAjax: true */
-steal('jquerypp/controller', 'jquerypp/lang/openajax').then(function() {
-
- /**
- * @function jQuery.Controller.static.processors.subscribe
- * @parent jQuery.Controller.static.processors
- * @plugin jquerypp/controller/subscribe
- * Adds OpenAjax.Hub subscribing to controllers.
- *
- * $.Controller("Subscriber",{
- * "recipe.updated subscribe" : function(called, recipe){
- *
- * },
- * "todo.* subscribe" : function(called, todo){
- *
- * }
- * })
- *
- * You should typically be listening to jQuery triggered events when communicating between
- * controllers. Subscribe should be used for listening to model changes.
- *
- * ### API
- *
- * This is the call signiture for the processor, not the controller subscription callbacks.
- *
- * @param {HTMLElement} el the element being bound. This isn't used.
- * @param {String} event the event type (subscribe).
- * @param {String} selector the subscription name
- * @param {String} cb the callback function's name
- */
- jQuery.Controller.processors.subscribe = function( el, event, selector, cb, controller ) {
- var subscription = OpenAjax.hub.subscribe(selector, function(){
- return controller[cb].apply(controller, arguments)
- });
- return function() {
- OpenAjax.hub.unsubscribe(subscription);
- };
- };
-
- /**
- * @add jQuery.Controller.prototype
- */
- //breaker
- /**
- * @function publish
- * @hide
- * Publishes a message to OpenAjax.hub.
- * @param {String} message Message name, ex: "Something.Happened".
- * @param {Object} data The data sent.
- */
- jQuery.Controller.prototype.publish = function() {
- OpenAjax.hub.publish.apply(OpenAjax.hub, arguments);
- };
-});
\ No newline at end of file
diff --git a/controller/view/qunit.html b/controller/view/qunit.html
deleted file mode 100644
index 9bb19670..00000000
--- a/controller/view/qunit.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
Controller Test Suite
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/controller/view/test/qunit/controller_view_test.js b/controller/view/test/qunit/controller_view_test.js
deleted file mode 100644
index dd6840f7..00000000
--- a/controller/view/test/qunit/controller_view_test.js
+++ /dev/null
@@ -1,49 +0,0 @@
-steal('jquerypp/controller/view','jquerypp/view/micro','funcunit/qunit', function() {
-
- module("jquerypp/controller/view");
-
- test("this.view", function(){
-
- $.Controller.extend("jquery.Controller.View.Test.Qunit",{
- init: function() {
- this.element.html(this.view())
- }
- })
- $.View.ext = ".micro";
- $("#qunit-test-area").append("");
-
- new jquery.Controller.View.Test.Qunit( $('#cont_view') );
-
- ok(/Hello World/i.test($('#cont_view').text()),"view rendered")
- });
-
- test("test.suffix.doubling", function(){
-
- $.Controller.extend("jquery.Controller.View.Test.Qunit",{
- init: function() {
- this.element.html(this.view('init.micro'))
- }
- })
-
- $.View.ext = ".ejs"; // Reset view extension to default
- equal(".ejs", jQuery.View.ext);
-
- $("#qunit-test-area").append("");
-
- new jquery.Controller.View.Test.Qunit( $('#suffix_test_cont_view') );
-
- ok(/Hello World/i.test($('#suffix_test_cont_view').text()),"view rendered")
- });
-
- test("complex paths nested inside a controller directory", function(){
- $.Controller.extend("Myproject.Controllers.Foo.Bar");
-
- var path = jQuery.Controller._calculatePosition(Myproject.Controllers.Foo.Bar, "init.ejs", "init")
- equals(path, "//myproject/views/foo/bar/init.ejs", "view path is correct")
-
- $.Controller.extend("Myproject.Controllers.FooBar");
- path = jQuery.Controller._calculatePosition(Myproject.Controllers.FooBar, "init.ejs", "init")
- equals(path, "//myproject/views/foo_bar/init.ejs", "view path is correct")
- })
-});
-
diff --git a/controller/view/test/qunit/qunit.js b/controller/view/test/qunit/qunit.js
deleted file mode 100644
index 1296166b..00000000
--- a/controller/view/test/qunit/qunit.js
+++ /dev/null
@@ -1,5 +0,0 @@
-//we probably have to have this only describing where the tests are
-steal('jquerypp/controller/view','jquerypp/view/micro') //load your app
- .then('funcunit/qunit') //load qunit
- .then("./controller_view_test.js")
-
diff --git a/controller/view/test/qunit/views/init.micro b/controller/view/test/qunit/views/init.micro
deleted file mode 100644
index 9a1eb8d2..00000000
--- a/controller/view/test/qunit/views/init.micro
+++ /dev/null
@@ -1 +0,0 @@
-
Hello World
\ No newline at end of file
diff --git a/controller/view/view.js b/controller/view/view.js
deleted file mode 100644
index f53bb5be..00000000
--- a/controller/view/view.js
+++ /dev/null
@@ -1 +0,0 @@
-steal('jquerypp/controller', 'can/control/view');
\ No newline at end of file
diff --git a/dom/animate/1x1.jpg b/dom/animate/1x1.jpg
new file mode 100644
index 00000000..b0d69110
Binary files /dev/null and b/dom/animate/1x1.jpg differ
diff --git a/dom/animate/animate.html b/dom/animate/animate.html
index 75c5a991..11dbfa81 100644
--- a/dom/animate/animate.html
+++ b/dom/animate/animate.html
@@ -17,13 +17,12 @@
+
+
\ No newline at end of file
diff --git a/dom/animate/qunit.html b/dom/animate/qunit.html
index e70e0d4e..94656b21 100644
--- a/dom/animate/qunit.html
+++ b/dom/animate/qunit.html
@@ -1,7 +1,7 @@
Animate Test Suite
-
+
@@ -19,232 +19,7 @@