diff --git a/README b/README index 19b1dfba..f5535b09 100644 --- a/README +++ b/README @@ -22,3 +22,4 @@ A. How to get (and contribute) JMVC 5. Make changes in steal or jquerymx, and push them back to your fork. 6. Make a pull request to your fork. + diff --git a/class/class.js b/class/class.js index 22a0e89a..b48d1d00 100644 --- a/class/class.js +++ b/class/class.js @@ -2,7 +2,7 @@ // This is a modified version of John Resig's class // http://ejohn.org/blog/simple-javascript-inheritance/ // It provides class level inheritance and callbacks. -//@steal-clean +//!steal-clean steal("jquery","jquery/lang/string",function( $ ) { // =============== HELPERS ================= @@ -61,7 +61,7 @@ steal("jquery","jquery/lang/string",function( $ ) { * @test jquery/class/qunit.html * @description Easy inheritance in JavaScript. * - * Class provides simulated inheritance in JavaScript. Use clss to bridge the gap between + * Class provides simulated inheritance in JavaScript. Use Class to bridge the gap between * jQuery's functional programming style and Object Oriented Programming. It * is based off John Resig's [http://ejohn.org/blog/simple-javascript-inheritance/|Simple Class] * Inheritance library. Besides prototypal inheritance, it includes a few important features: @@ -349,7 +349,7 @@ steal("jquery","jquery/lang/string",function( $ ) { clss = $.Class = function() { if (arguments.length) { - clss.extend.apply(clss, arguments); + return clss.extend.apply(clss, arguments); } }; @@ -425,13 +425,13 @@ steal("jquery","jquery/lang/string",function( $ ) { // keep a reference to us in self self = this; - //@steal-remove-start + //!steal-remove-start for( var i =0; i< funcs.length;i++ ) { if(typeof funcs[i] == "string" && !isFunction(this[funcs[i]])){ throw ("class.js "+( this.fullName || this.Class.fullName)+" does not have a "+funcs[i]+"method!"); } } - //@steal-remove-end + //!steal-remove-end return function class_cb() { // add the arguments after the curried args var cur = concatArgs(args, arguments), @@ -612,14 +612,14 @@ steal("jquery","jquery/lang/string",function( $ ) { current = getObject(parts.join('.'), window, true), namespace = current; - //@steal-remove-start + //!steal-remove-start if (!Class.nameOk ) { //steal.dev.isHappyName(fullName) } if(current[shortName]){ steal.dev.warn("class.js There's already something called "+fullName) } - //@steal-remove-end + //!steal-remove-end current[shortName] = Class; } @@ -782,4 +782,4 @@ steal("jquery","jquery/lang/string",function( $ ) { proxy = clss.proxy; -})(); \ No newline at end of file +})(); diff --git a/controller/controller.js b/controller/controller.js index 2a2e5dde..f3bd8476 100644 --- a/controller/controller.js +++ b/controller/controller.js @@ -223,7 +223,7 @@ steal('jquery/class', 'jquery/lang/string', 'jquery/event/destroyed', function( * el.css("backgroundColor","") * }, * ".create click" : function() { - * this.find("ol").append("<li class='todo'>New Todo</li>"); + * this.find("ol").append("