Skip to content

Commit

Permalink
Adding 1.1>1.2 prefix to all warnings for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Waddell authored and Darren Waddell committed Dec 28, 2009
1 parent 8c268d9 commit bd50e62
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Class/Class.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Class.empty = function(){
console.warn('replace Class.empty with $empty');
console.warn('1.1 > 1.2: replace Class.empty with $empty');
return $empty;
};

Expand Down
6 changes: 3 additions & 3 deletions Native/Array.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Array.implement({

copy: function(start, length){
console.warn('Array.copy is deprecated. Use Array.slice');
console.warn('1.1 > 1.2: Array.copy is deprecated. Use Array.slice');
return $A(this, start, length);
},

remove : function(item){
console.warn('Array.remove is deprecated. Use Array.erase');
console.warn('1.1 > 1.2: Array.remove is deprecated. Use Array.erase');
return this.erase(item);
},

merge : function(array){
console.warn('Array.merge is deprecated. Use Array.combine');
console.warn('1.1 > 1.2: Array.merge is deprecated. Use Array.combine');
return this.combine(array);
}

Expand Down
2 changes: 1 addition & 1 deletion Native/Function.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Function.extend({

bindAsEventListener: function(bind, args){
console.warn('Function.bindAsEventListener is deprecated.');
console.warn('1.1 > 1.2: Function.bindAsEventListener is deprecated.');
return this.create({'bind': bind, 'event': true, 'arguments': args});
}

Expand Down
2 changes: 1 addition & 1 deletion Request/Request.JSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ JSON.Remote = new Class({
Extends: Request.JSON,

initialize: function(url, options){
console.warn('JSON.Remote is deprecated. Use Request.JSON');
console.warn('1.1 > 1.2: JSON.Remote is deprecated. Use Request.JSON');
this.parent(options);
this.onComplete = $empty;
this.url = url;
Expand Down
4 changes: 2 additions & 2 deletions Request/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var XHR = new Class({
},

initialize: function(options){
console.warn('XHR is deprecated. Use Request.');
console.warn('1.1 > 1.2: XHR is deprecated. Use Request.');
this.parent(options);
this.transport = this.xhr;
},
Expand Down Expand Up @@ -48,7 +48,7 @@ var Ajax = new Class({
Extends: XHR,

initialize: function(url, options){
console.warn('Ajax is deprecated. Use Request.');
console.warn('1.1 > 1.2: Ajax is deprecated. Use Request.');
this.url = url;
this.parent(options);
},
Expand Down
6 changes: 3 additions & 3 deletions Utilities/Cookie.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

Cookie.set = function(key, value, options){
console.warn('Cookie.set is deprecated. Use Cookie.write');
console.warn('1.1 > 1.2: Cookie.set is deprecated. Use Cookie.write');
return new Cookie(key, options).write(value);
};

Cookie.get = function(key){
console.warn('Cookie.get is deprecated. Use Cookie.read');
console.warn('1.1 > 1.2: Cookie.get is deprecated. Use Cookie.read');
return new Cookie(key).read();
};

Cookie.remove = function(key, options){
console.warn('Cookie.remove is deprecated. Use Cookie.dispose');
console.warn('1.1 > 1.2: Cookie.remove is deprecated. Use Cookie.dispose');
return new Cookie(key, options).dispose();
};
4 changes: 2 additions & 2 deletions Utilities/JSON.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

JSON.toString = function(obj){
console.warn('JSON.toString is deprecated. Use JSON.encode');
console.warn('1.1 > 1.2: JSON.toString is deprecated. Use JSON.encode');
return JSON.encode(obj);
}
JSON.evaluate = function(str){
console.warn('JSON.evaluate is deprecated. Use JSON.decode');
console.warn('1.1 > 1.2: JSON.evaluate is deprecated. Use JSON.decode');
return JSON.decode(str);
}
var Json = JSON;
Expand Down

0 comments on commit bd50e62

Please sign in to comment.