From cc94ba12e530fe7b9ae9ea57528bc934c3a77c9e Mon Sep 17 00:00:00 2001
From: "Gun.io Whitespace Robot"
Date: Fri, 28 Oct 2011 06:20:45 -0400
Subject: [PATCH] Remove whitespace [Gun.io WhitespaceBot]
---
README | 14 +-
build.js | 24 +-
buildAll.js | 34 +-
class/class.html | 6 +-
class/class.js | 282 +++----
class/class_test.js | 30 +-
controller/controller.html | 14 +-
controller/controller.js | 486 +++++------
controller/controller_test.js | 58 +-
controller/demo-update.html | 6 +-
controller/route/route.js | 6 +-
controller/subscribe/subscribe.html | 14 +-
controller/subscribe/subscribe.js | 14 +-
.../view/test/qunit/controller_view_test.js | 30 +-
controller/view/test/qunit/qunit.js | 2 +-
controller/view/view.js | 12 +-
dom/closest/closest.js | 10 +-
dom/compare/compare.html | 10 +-
dom/compare/compare.js | 36 +-
dom/compare/compare_test.js | 8 +-
dom/cookie/cookie.js | 14 +-
dom/cur_styles/cur_styles.html | 10 +-
dom/cur_styles/cur_styles_test.js | 6 +-
dom/dimensions/dimensions.html | 18 +-
dom/dimensions/dimensions.js | 54 +-
dom/dom.js | 18 +-
dom/fixture/fixture.html | 40 +-
dom/fixture/fixture.js | 368 ++++-----
dom/fixture/fixture_test.js | 104 +--
dom/form_params/form_params.html | 16 +-
dom/form_params/form_params.js | 14 +-
dom/form_params/form_params_test.js | 8 +-
dom/form_params/test/basics.micro | 10 +-
dom/form_params/test/checkbox.micro | 36 +-
dom/form_params/test/truthy.micro | 2 +-
dom/range/range.html | 12 +-
dom/range/range.js | 240 +++---
dom/range/range_test.js | 34 +-
dom/route/route.html | 10 +-
dom/route/route.js | 178 ++--
dom/route/route_test.js | 20 +-
dom/selection/selection.html | 12 +-
dom/selection/selection.js | 66 +-
dom/selection/selection_test.js | 10 +-
dom/within/within.js | 18 +-
download/download.css | 4 +-
download/download.html | 162 ++--
download/download.js | 14 +-
download/test/jquery-1.4.3.js | 236 +++---
download/test/run.js | 2 +-
event/default/default.html | 10 +-
event/default/default.js | 104 +--
event/default/default_pause_test.js | 32 +-
event/default/default_test.js | 64 +-
event/default/defaultjquery.html | 28 +-
event/destroyed/destroyed.html | 2 +-
event/destroyed/destroyed.js | 4 +-
event/destroyed/destroyed_menu.html | 26 +-
event/destroyed/destroyed_test.js | 2 +-
event/drag/drag.html | 2 +-
event/drag/drag.js | 62 +-
event/drag/drag_test.js | 50 +-
event/drag/limit/limit.html | 12 +-
event/drag/limit/limit.js | 2 +-
event/drag/scroll/scroll.js | 36 +-
event/drag/step/step.html | 10 +-
event/drag/step/step.js | 14 +-
event/drop/drop.html | 12 +-
event/drop/drop.js | 122 +--
event/drop/drop_test.js | 16 +-
event/event.js | 28 +-
event/handle/handle.js | 26 +-
event/hashchange/hashchange.js | 116 +--
event/hover/hover.html | 6 +-
event/hover/hover.js | 46 +-
event/hover/hover_test.js | 28 +-
event/key/key.html | 6 +-
event/key/key.js | 62 +-
event/key/key_test.js | 8 +-
event/livehack/livehack.js | 4 +-
event/pause/pause.html | 6 +-
event/pause/pause.js | 74 +-
event/pause/pause_test.js | 18 +-
event/resize/demo.html | 48 +-
event/resize/resize.html | 16 +-
event/resize/resize.js | 34 +-
event/selection/selection.html | 32 +-
event/selection/selection.js | 22 +-
event/selection/selection_test.js | 10 +-
event/swipe/swipe.html | 6 +-
event/swipe/swipe.js | 16 +-
event/swipe/swipe_test.js | 20 +-
event/tap/tap.html | 4 +-
event/tap/tap.js | 10 +-
generate/app | 4 +-
generate/coffee/controller | 10 +-
.../controller/(underscore).coffee.ejs | 2 +-
.../controller/(underscore).html.ejs | 2 +-
.../controller/(underscore)_test.coffee.ejs | 2 +-
generate/controller | 10 +-
generate/model | 28 +-
generate/page | 4 +-
generate/plugin | 6 +-
generate/scaffold | 30 +-
.../templates/app/(application_name).css.ejs | 2 +-
.../templates/app/(application_name).js.ejs | 2 +-
.../templates/app/fixtures/fixtures.js.ejs | 2 +-
generate/templates/app/scripts/build.html.ejs | 8 +-
generate/templates/app/scripts/clean.js.ejs | 8 +-
.../funcunit/(application_name)_test.js.ejs | 4 +-
.../test/qunit/(application_name)_test.js.ejs | 2 +-
.../controller/(underscore).html.ejs | 4 +-
.../controller/(underscore)_test.js.ejs | 2 +-
generate/templates/model.js | 40 +-
.../model/models/(underscore).js.ejs | 4 +-
.../model/test/qunit/(underscore)_test.js.ejs | 8 +-
generate/templates/page.ejs | 4 +-
.../plugin/(application_name).html.ejs | 6 +-
.../templates/scaffold/create/create.html.ejs | 6 +-
.../scaffold/create/create_test.js.ejs | 2 +-
.../templates/scaffold/list/list.html.ejs | 6 +-
generate/templates/scaffold/list/list.js.ejs | 4 +-
.../templates/scaffold/list/list_test.js.ejs | 12 +-
generate/test/app_plugin_model_controller.js | 36 +-
generate/test/scaffold.js | 40 +-
jquery.js | 108 +--
lang/json/json.js | 82 +-
lang/object/object.html | 6 +-
lang/object/object.js | 78 +-
lang/object/object_test.js | 64 +-
lang/observe/delegate/delegate.js | 72 +-
lang/observe/delegate/delegate_test.js | 20 +-
lang/observe/observe.html | 18 +-
lang/observe/observe.js | 268 +++----
lang/observe/observe_test.js | 96 +--
lang/openajax/openajax.js | 52 +-
lang/string/deparam/deparam.js | 36 +-
lang/string/deparam/deparam_test.js | 24 +-
lang/string/rsplit/rsplit.js | 4 +-
lang/string/string.html | 6 +-
lang/string/string.js | 74 +-
lang/string/string_test.js | 24 +-
lang/vector/vector.js | 4 +-
model/backup/backup.html | 28 +-
model/backup/backup.js | 10 +-
model/backup/qunit/qunit.js | 71 +-
model/demo-convert.html | 24 +-
model/demo-dom.html | 16 +-
model/demo-encapsulate.html | 22 +-
model/demo-events.html | 34 +-
model/demo-setter.html | 14 +-
model/guesstype/guesstype.js | 8 +-
model/guesstype/guesstype_test.js | 2 +-
model/list/cookie/cookie.html | 36 +-
model/list/cookie/cookie.js | 28 +-
model/list/cookie/qunit/qunit.js | 18 +-
model/list/list-insert.html | 40 +-
model/list/list.html | 28 +-
model/list/list.js | 304 +++----
model/list/list_test.js | 60 +-
model/list/local/local.js | 4 +-
model/list/memory.html | 24 +-
model/model.js | 758 +++++++++---------
model/modelBinder.html | 34 +-
model/pages/associations.html | 20 +-
model/service/json_rest/json_rest.js | 10 +-
model/service/service.js | 8 +-
model/service/twitter/twitter.html | 6 +-
model/service/twitter/twitter.js | 16 +-
model/service/yql/yql.html | 6 +-
model/service/yql/yql.js | 16 +-
model/store/store.html | 36 +-
model/store/store.js | 92 +--
model/store/store_test.js | 72 +-
model/test/qunit/associations_test.js | 26 +-
model/test/qunit/model_test.js | 100 +--
model/validations/demo.html | 14 +-
model/validations/qunit/validations_test.js | 66 +-
model/validations/validations.html | 26 +-
model/validations/validations.js | 24 +-
test/qunit/integration.js | 32 +-
test/qunit/qunit.js | 12 +-
tie/tie.html | 20 +-
tie/tie.js | 32 +-
tie/tie_test.js | 66 +-
view/ejs/ejs.js | 176 ++--
view/ejs/ejs_test.js | 22 +-
view/helpers/helpers.js | 34 +-
view/jaml/jaml.js | 114 +--
view/micro/micro.js | 38 +-
view/test/compression/compression.html | 4 +-
view/test/compression/run.js | 30 +-
view/test/qunit/hookupvalcall.ejs | 2 +-
view/test/qunit/large.ejs | 120 +--
view/test/qunit/qunit.js | 2 +-
view/test/qunit/view_test.js | 26 +-
view/tmpl/tmpl.js | 48 +-
view/tmpl/tmpl_test.js | 2 +-
view/view.html | 12 +-
view/view.js | 348 ++++----
200 files changed, 4332 insertions(+), 4333 deletions(-)
diff --git a/README b/README
index 12846a17..f6a8a73b 100644
--- a/README
+++ b/README
@@ -5,20 +5,20 @@ TOC:
A. How to get (and contribute) JMVC
1. Start a new project in git.
-
+
2. Fork ....
- http://github.com/jupiterjs/steal and
+ http://github.com/jupiterjs/steal and
http://github.com/jupiterjs/jquerymx
-
+
3. Add steal and javascriptmvc as submodules of your project...
git submodule add git@github.com:_YOU_/steal.git steal
git submodule add git@github.com:_YOU_/jquerymx.git jquery
-
+
* Notice javascriptmvc is under the jquery folder
-
+
4. Learn a little more about submodules ...
http://johnleach.co.uk/words/archives/2008/10/12/323/git-submodules-in-n-easy-steps
-
+
5. Make changes in steal or jmvc, and push them back to your fork.
-
+
6. Make a pull request to your fork.
diff --git a/build.js b/build.js
index 1d840746..fb38e236 100644
--- a/build.js
+++ b/build.js
@@ -2,12 +2,12 @@
load('steal/rhino/rhino.js')
-var i, fileName, cmd,
+var i, fileName, cmd,
plugins = [
- "class" ,
+ "class" ,
"controller",
{
- plugin: "controller/subscribe",
+ plugin: "controller/subscribe",
exclude: ["jquery/controller/controller.js",
"jquery/class/class.js",
"jquery/lang/lang.js",
@@ -19,16 +19,16 @@ var i, fileName, cmd,
"event/pause",
"event/resize",
{
- plugin: "event/drag/limit",
+ plugin: "event/drag/limit",
exclude: ["jquery/lang/vector/vector.js", "jquery/event/livehack/livehack.js", "jquery/event/drag/drag.js"]},
{
- plugin: "event/drag/scroll",
+ plugin: "event/drag/scroll",
exclude: ["jquery/dom/within/within.js", "jquery/dom/compare/compare.js", "jquery/event/drop/drop.js","jquery/lang/vector/vector.js", "jquery/event/livehack/livehack.js", "jquery/event/drag/drag.js"]},
{
plugin: "event/drop",
exclude: ["jquery/lang/vector/vector.js", "jquery/event/livehack/livehack.js", "jquery/event/drag/drag.js"]},
"event/hover",
- "view/ejs",
+ "view/ejs",
"dom/closest",
"dom/compare",
{
@@ -37,7 +37,7 @@ var i, fileName, cmd,
},
"dom/fixture",
"dom/form_params",
- "dom/within",
+ "dom/within",
"dom/cur_styles",
"model",
{
@@ -109,14 +109,14 @@ var plugin, exclude, fileDest, fileName;
out: fileDest,
exclude: exclude.length? exclude: false
})
-
-
+
+
var outBaos = new java.io.ByteArrayOutputStream();
var output = new java.io.PrintStream(outBaos);
runCommand("java", "-jar", "steal/build/scripts/compiler.jar", "--compilation_level", "SIMPLE_OPTIMIZATIONS", "--warning_level", "QUIET", "--js", fileDest, {
output: output
});
-
+
var minFileDest = fileDest.replace(".js", ".min.js")
new steal.File(minFileDest).save(outBaos.toString());
}
@@ -133,13 +133,13 @@ for (i = 0; i < plugins.length; i++) {
}
fileName = fileName || "jquery." + plugin.replace(/\//g, ".").replace(/dom\./, "").replace(/\_/, "") + ".js";
fileDest = "jquery/dist/" + fileName
- // compress
+ // compress
var outBaos = new java.io.ByteArrayOutputStream();
var output = new java.io.PrintStream(outBaos);
runCommand("java", "-jar", "steal/build/scripts/compiler.jar", "--compilation_level", "SIMPLE_OPTIMIZATIONS", "--warning_level", "QUIET", "--js", fileDest, {
output: output
});
-
+
var minFileDest = fileDest.replace(".js", ".min.js")
new steal.File(minFileDest).save(outBaos.toString());
print("***" + fileName + " pluginified and compressed")
diff --git a/buildAll.js b/buildAll.js
index 95b0a721..87f6ca13 100644
--- a/buildAll.js
+++ b/buildAll.js
@@ -9,13 +9,13 @@ load('steal/rhino/rhino.js')
steal('steal/build/pluginify','steal/build/apps','steal/build/scripts').then( function(s){
var ignore = /\.\w+|test|generate|dist|qunit|fixtures|pages/
-
+
var plugins = [],
/**
* {"path/to/file.js" : ["file2/thing.js", ...]}
*/
files = {};
-
+
s.File('jquery').contents(function( name, type, current ) {
if (type !== 'file' && !ignore.test(name)) {
var folder = current+"/"+name;
@@ -24,20 +24,20 @@ steal('steal/build/pluginify','steal/build/apps','steal/build/scripts').then( fu
plugins.push(folder);
steal.File(folder).contents(arguments.callee, folder)
}
-
+
//steal.File(path + "/" + (current ? current + "/" : "") + name).contents(arguments.callee, (current ? current + "/" : "") + name);
}
},"jquery");
-
+
// tell it to load all plugins into this page
-
+
//steal.win().build_in_progress = true;
print(" LOADING APP ")
steal.build.open('steal/rhino/blank.html', {
startFiles: plugins
}, function(opener){
-
+
opener.each('js', function(options, text, stl){
print(options.rootSrc)
var dependencies = files[options.rootSrc] = [];
@@ -50,7 +50,7 @@ steal('steal/build/pluginify','steal/build/apps','steal/build/scripts').then( fu
}
}
})
-
+
s.File("jquery/dist/standalone").mkdirs();
s.File("jquery/dist/standalone/dependencies.json").save($.toJSON(files));
//get each file ...
@@ -74,9 +74,9 @@ steal('steal/build/pluginify','steal/build/apps','steal/build/scripts').then( fu
s.File("jquery/dist/standalone/"+out+".js").save(content);
s.File("jquery/dist/standalone/"+out+".min.js").save(compressor(content));
}
-
+
})
-
+
/*
var pageSteal = steal.build.open("steal/rhino/empty.html").steal,
steals = pageSteal.total,
@@ -91,21 +91,21 @@ steal('steal/build/pluginify','steal/build/apps','steal/build/scripts').then( fu
print("123 " + depend.path);
//depends(depend, steals);
}
-
-
+
+
}
}
},
all = function(c){
for(var i =0; i < steals.length; i++){
var pSteal =steals[i];
-
+
if(!pSteal.func){
c(pSteal)
}
-
+
}
-
+
};
print(" LOADED, GETTING DEPENDS");
all(function(stl){
@@ -123,8 +123,8 @@ steal('steal/build/pluginify','steal/build/apps','steal/build/scripts').then( fu
}
}
})*/
-
-
-
+
+
+
})
\ No newline at end of file
diff --git a/class/class.html b/class/class.html
index ef16143d..4a29f26e 100644
--- a/class/class.html
+++ b/class/class.html
@@ -6,7 +6,7 @@
@@ -16,12 +16,12 @@
diff --git a/controller/subscribe/subscribe.js b/controller/subscribe/subscribe.js
index 26280343..4af33b2c 100644
--- a/controller/subscribe/subscribe.js
+++ b/controller/subscribe/subscribe.js
@@ -6,23 +6,23 @@ steal('jquery/controller', 'jquery/lang/openajax').then(function() {
* @parent jQuery.Controller.static.processors
* @plugin jquery/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
diff --git a/controller/view/test/qunit/controller_view_test.js b/controller/view/test/qunit/controller_view_test.js
index 506da897..ff66cfa6 100644
--- a/controller/view/test/qunit/controller_view_test.js
+++ b/controller/view/test/qunit/controller_view_test.js
@@ -1,10 +1,10 @@
steal('jquery/controller/view','jquery/view/micro','funcunit/qunit') //load qunit
.then(function(){
-
+
module("jquery/controller/view");
-
+
test("this.view", function(){
-
+
$.Controller.extend("jquery.Controller.View.Test.Qunit",{
init: function() {
this.element.html(this.view())
@@ -12,36 +12,36 @@ steal('jquery/controller/view','jquery/view/micro','funcunit/qunit') //load qun
})
jQuery.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'))
}
})
-
+
jQuery.View.ext = ".ejs"; // Reset view extension to default
- equal(".ejs", jQuery.View.ext);
-
+ 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
index 7873c312..b02f4079 100644
--- a/controller/view/test/qunit/qunit.js
+++ b/controller/view/test/qunit/qunit.js
@@ -2,4 +2,4 @@
steal('jquery/controller/view','jquery/view/micro') //load your app
.then('funcunit/qunit') //load qunit
.then("./controller_view_test.js")
-
+
diff --git a/controller/view/view.js b/controller/view/view.js
index 5c05345f..6ca99002 100644
--- a/controller/view/view.js
+++ b/controller/view/view.js
@@ -4,7 +4,7 @@ steal('jquery/controller', 'jquery/view').then(function( $ ) {
};
jQuery.Controller._calculatePosition = function( Class, view, action_name ) {
-
+
var classParts = Class.fullName.split('.'),
classPartsWithoutPrefix = classParts.slice(0);
classPartsWithoutPrefix.splice(0, 2); // Remove prefix (usually 2 elements)
@@ -14,7 +14,7 @@ steal('jquery/controller', 'jquery/view').then(function( $ ) {
path = hasControllers? jQuery.String.underscore(classParts[0]): jQuery.String.underscore(classParts.join("/")),
controller_name = jQuery.String.underscore(classPartsWithoutPrefix.join('/')).toLowerCase(),
suffix = (typeof view == "string" && /\.[\w\d]+$/.test(view)) ? "" : jQuery.View.ext;
-
+
//calculate view
if ( typeof view == "string" ) {
if ( view.substr(0, 2) == "//" ) { //leave where it is
@@ -66,17 +66,17 @@ steal('jquery/controller', 'jquery/view').then(function( $ ) {
/**
* @tag view
* Renders a View template with the controller instance. If the first argument
- * is not supplied,
+ * is not supplied,
* it looks for a view in /views/controller_name/action_name.ejs.
* If data is not provided, it uses the controller instance as data.
* @codestart
* TasksController = $.Controller.extend('TasksController',{
* click: function( el ) {
* // renders with views/tasks/click.ejs
- * el.html( this.view() )
+ * el.html( this.view() )
* // renders with views/tasks/under.ejs
* el.after( this.view("under", [1,2]) );
- * // renders with views/tasks/under.micro
+ * // renders with views/tasks/under.micro
* el.after( this.view("under.micro", [1,2]) );
* // renders with views/shared/top.ejs
* el.before( this.view("shared/top", {phrase: "hi"}) );
@@ -87,7 +87,7 @@ steal('jquery/controller', 'jquery/view').then(function( $ ) {
* @return {String} the rendered result of the view.
* @param {String} [view] The view you are going to render. If a view isn't explicity given
* this function will try to guess at the correct view as show in the example code above.
- * @param {Object} [data] data to be provided to the view. If not present, the controller instance
+ * @param {Object} [data] data to be provided to the view. If not present, the controller instance
* is used.
* @param {Object} [myhelpers] an object of helpers that will be available in the view. If not present
* this controller class's "Helpers" property will be used.
diff --git a/dom/closest/closest.js b/dom/closest/closest.js
index 14ac24da..903e776d 100644
--- a/dom/closest/closest.js
+++ b/dom/closest/closest.js
@@ -6,16 +6,16 @@ steal('jquery/dom').then(function(){
* @function closest
* @parent dom
* @plugin jquery/dom/closest
- * Overwrites closest to allow open > selectors. This allows controller
+ * Overwrites closest to allow open > selectors. This allows controller
* actions such as:
- *
+ *
* ">li click" : function( el, ev ) { ... }
*/
var oldClosest = jQuery.fn.closest;
jQuery.fn.closest = function(selectors, context){
var rooted = {}, res, result, thing, i, j, selector, rootedIsEmpty = true, selector, selectorsArr = selectors;
if(typeof selectors == "string") selectorsArr = [selectors];
-
+
$.each(selectorsArr, function(i, selector){
if(selector.indexOf(">") == 0 ){
if(selector.indexOf(" ") != -1){
@@ -26,9 +26,9 @@ steal('jquery/dom').then(function(){
rootedIsEmpty = false;
}
})
-
+
res = oldClosest.call(this, selectors, context);
-
+
if(rootedIsEmpty) return res;
i =0;
while(i < res.length){
diff --git a/dom/compare/compare.html b/dom/compare/compare.html
index 83c356a8..2bbddbee 100644
--- a/dom/compare/compare.html
+++ b/dom/compare/compare.html
@@ -56,11 +56,11 @@ Key
| 000100 | 4 | Node A precedes Node B. |
| 001000 | 8 | Node B contains Node A. |
| 010000 | 16 | Node A contains Node B. |
-
+
-
diff --git a/dom/form_params/form_params.js b/dom/form_params/form_params.js
index a47ca517..dd5a9fb4 100644
--- a/dom/form_params/form_params.js
+++ b/dom/form_params/form_params.js
@@ -24,10 +24,10 @@ steal("jquery/dom").then(function( $ ) {
* @download http://jmvcsite.heroku.com/pluginify?plugins[]=jquery/dom/form_params/form_params.js
* @plugin jquery/dom/form_params
* @test jquery/dom/form_params/qunit.html
- *
- * Returns an object of name-value pairs that represents values in a form.
+ *
+ * Returns an object of name-value pairs that represents values in a form.
* It is able to nest values whose element's name has square brackets.
- *
+ *
* Example html:
* @codestart html
* <form>
@@ -36,12 +36,12 @@ steal("jquery/dom").then(function( $ ) {
* <form/>
* @codeend
* Example code:
- *
+ *
* $('form').formParams() //-> { foo:{bar:'2', ced: '4'} }
- *
- *
+ *
+ *
* @demo jquery/dom/form_params/form_params.html
- *
+ *
* @param {Boolean} [convert=false] True if strings that look like numbers and booleans should be converted. Defaults to true.
* @return {Object} An object of name-value pairs.
*/
diff --git a/dom/form_params/form_params_test.js b/dom/form_params/form_params_test.js
index 44c2c2b1..72e40fdb 100644
--- a/dom/form_params/form_params_test.js
+++ b/dom/form_params/form_params_test.js
@@ -5,12 +5,12 @@ steal("jquery/dom/form_params") //load your app
$.ajaxSetup({
cache : false
});
-
+
module("jquery/dom/form_params")
test("with a form", function(){
$("#qunit-test-area").html("//jquery/dom/form_params/test/basics.micro",{})
-
+
var formParams = $("#qunit-test-area form").formParams() ;
ok(formParams.params.one === "1","one is right");
ok(formParams.params.two === "2","two is right");
@@ -20,13 +20,13 @@ test("with a form", function(){
equal(typeof formParams.id , 'string', "Id value is empty");
-
+
});
test("with true false", function(){
$("#qunit-test-area").html("//jquery/dom/form_params/test/truthy.micro",{});
-
+
var formParams = $("#qunit-test-area form").formParams(true);
ok(formParams.foo === undefined, "foo is undefined")
ok(formParams.bar.abc === true, "form bar is true");
diff --git a/dom/form_params/test/basics.micro b/dom/form_params/test/basics.micro
index 5c5b5be8..94c4dbd4 100644
--- a/dom/form_params/test/basics.micro
+++ b/dom/form_params/test/basics.micro
@@ -8,19 +8,19 @@
-
+
-
-
+
+
-
-
+
+
diff --git a/dom/form_params/test/checkbox.micro b/dom/form_params/test/checkbox.micro
index f4214373..6049c49e 100644
--- a/dom/form_params/test/checkbox.micro
+++ b/dom/form_params/test/checkbox.micro
@@ -1,20 +1,20 @@
-