[FIX] previous 'forgot now' error message was a bit crappy
bzr revid: fva@openerp.com-20121010104433-cb03lb11fi15qrzd
This commit is contained in:
@@ -122,7 +122,7 @@ openerp.web.corelib = function(instance) {
|
||||
// The dummy class constructor
|
||||
function Class() {
|
||||
if(this.constructor !== instance.web.Class){
|
||||
throw new Error("You need a 'new' to instanciate an object");
|
||||
throw new Error("You can only instanciate objects with the 'new' operator");
|
||||
return null;
|
||||
}
|
||||
// All construction is actually done in the init method
|
||||
|
||||
Reference in New Issue
Block a user