MINOR Moved Function.prototype.create from tree.js into behaviour.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92521 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:30:53 +00:00
parent 146979b1b1
commit 9889ba5c4b

View File

@ -306,6 +306,10 @@ function behaveAs(element, behaviourClass, arg1, arg2, arg3, arg4, arg5, arg6) {
return element;
}
Function.prototype.create = function(item, arg1, arg2, arg3, arg4, arg5, arg6) {
return behaveAs(item, this, arg1, arg2, arg3, arg4, arg5, arg6);
}
/*
The following code is Copyright (C) Simon Willison 2004.