Permalink
Browse files

change @steal directives to !steal (3.2.2)

  • Loading branch information...
1 parent b04b037 commit 967ce09c4587288a913fb7c460be01e67316de1f @polgfred polgfred committed Jan 20, 2012
Showing with 21 additions and 21 deletions.
  1. +6 −6 class/class.js
  2. +3 −3 controller/controller.js
  3. +4 −4 dom/fixture/fixture.js
  4. +1 −1 lang/openajax/openajax.js
  5. +7 −7 model/model.js
View
12 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 =================
@@ -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;
-})();
+})();
View
6 controller/controller.js
@@ -394,11 +394,11 @@ steal('jquery/class', 'jquery/lang/string', 'jquery/event/destroyed', function(
}
// make sure listensTo is an array
- //@steal-remove-start
+ //!steal-remove-start
if (!isArray(this.listensTo) ) {
throw "listensTo is not an array in " + this.fullName;
}
- //@steal-remove-end
+ //!steal-remove-end
// calculate and cache actions
this.actions = {};
@@ -1086,4 +1086,4 @@ steal('jquery/class', 'jquery/lang/string', 'jquery/event/destroyed', function(
});
-});
+});
View
8 dom/fixture/fixture.js
@@ -37,9 +37,9 @@ steal('jquery/dom',
if (/^\/\//.test(url) ) {
url = steal.root.mapJoin(settings.fixture.substr(2))+'';
}
- //@steal-remove-start
+ //!steal-remove-start
steal.dev.log("looking for fixture in " + url);
- //@steal-remove-end
+ //!steal-remove-end
settings.url = url;
settings.data = null;
settings.type = "GET";
@@ -50,9 +50,9 @@ steal('jquery/dom',
}
}else {
- //@steal-remove-start
+ //!steal-remove-start
steal.dev.log("using a dynamic fixture for " +settings.type+" "+ settings.url);
- //@steal-remove-end
+ //!steal-remove-end
//it's a function ... add the fixture datatype so our fixture transport handles it
// TODO: make everything go here for timing and other fun stuff
View
2 lang/openajax/openajax.js
@@ -1,4 +1,4 @@
-//@steal-clean
+//!steal-clean
/*******************************************************************************
* OpenAjax.js
*
View
14 model/model.js
@@ -761,11 +761,11 @@ steal('jquery/class', 'jquery/lang/string', function() {
if ( this.listType ) {
this.list = new this.listType([]);
}
- //@steal-remove-start
+ //!steal-remove-start
if (!proto ) {
steal.dev.warn("model.js " + fullName + " has no static properties. You probably need ,{} ")
}
- //@steal-remove-end
+ //!steal-remove-end
each(ajaxMethods, function(name, method){
var prop = self[name];
if ( typeof prop !== 'function' ) {
@@ -1010,11 +1010,11 @@ steal('jquery/class', 'jquery/lang/string', function() {
length = raw ? raw.length : null,
i = 0;
- //@steal-remove-start
+ //!steal-remove-start
if (!length ) {
steal.dev.warn("model.js models has no data. If you have one item, use model")
}
- //@steal-remove-end
+ //!steal-remove-end
for (; i < length; i++ ) {
res.push(this.model(raw[i]));
}
@@ -1747,9 +1747,9 @@ steal('jquery/class', 'jquery/lang/string', function() {
// call event on the instance
trigger(this,funcName);
- //@steal-remove-start
+ //!steal-remove-start
steal.dev.log("Model.js - "+ constructor.shortName+" "+ funcName);
- //@steal-remove-end
+ //!steal-remove-end
// call event on the instance's Class
trigger(constructor,funcName, this);
@@ -1822,4 +1822,4 @@ steal('jquery/class', 'jquery/lang/string', function() {
}
};
-});
+});

0 comments on commit 967ce09

Please sign in to comment.