diff options
author | Michael Leibman <michael.leibman@gmail.com> | 2012-01-17 13:51:10 -0800 |
---|---|---|
committer | Michael Leibman <mleibman@google.com> | 2012-01-17 13:51:10 -0800 |
commit | b92ba76a5124d09880455fef5a488c2bab2aee9e (patch) | |
tree | 6b9de1fb8f2b915450b1bbadf6d1b28df6220c88 /examples/slick.compositeeditor.js | |
parent | 061ac59fb6a4c09a49d5abe1fa86c26f9d13bf66 (diff) | |
download | SlickGrid-b92ba76a5124d09880455fef5a488c2bab2aee9e.zip SlickGrid-b92ba76a5124d09880455fef5a488c2bab2aee9e.tar.gz SlickGrid-b92ba76a5124d09880455fef5a488c2bab2aee9e.tar.bz2 |
More cleanup.
Diffstat (limited to 'examples/slick.compositeeditor.js')
-rw-r--r-- | examples/slick.compositeeditor.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/examples/slick.compositeeditor.js b/examples/slick.compositeeditor.js index 9854672..eb49f27 100644 --- a/examples/slick.compositeeditor.js +++ b/examples/slick.compositeeditor.js @@ -1,8 +1,8 @@ ; (function ($) { $.extend(true, window, { - Slick:{ - CompositeEditor:CompositeEditor + Slick: { + CompositeEditor: CompositeEditor } }); @@ -34,11 +34,11 @@ */ function CompositeEditor(columns, containers, options) { var defaultOptions = { - validationFailedMsg:"Some of the fields have failed validation", - show:null, - hide:null, - position:null, - destroy:null + validationFailedMsg: "Some of the fields have failed validation", + show: null, + hide: null, + position: null, + destroy: null }; var noop = function () { @@ -56,13 +56,13 @@ var h = $(c).height(); return { - top:offset.top, - left:offset.left, - bottom:offset.top + h, - right:offset.left + w, - width:w, - height:h, - visible:true + top: offset.top, + left: offset.left, + bottom: offset.top + h, + right: offset.left + w, + width: w, + height: h, + visible: true }; } @@ -154,24 +154,24 @@ if (!validationResults.valid) { firstInvalidEditor = editors[idx]; errors.push({ - index:idx, - editor:editors[idx], - container:containers[idx], - msg:validationResults.msg + index: idx, + editor: editors[idx], + container: containers[idx], + msg: validationResults.msg }); } } if (errors.length) { return { - valid:false, - msg:options.validationFailedMsg, - errors:errors + valid: false, + msg: options.validationFailedMsg, + errors: errors }; } else { return { - valid:true, - msg:"" + valid: true, + msg: "" }; } }; |