Options#cutOptions
Reported by MadRabbit | September 25th, 2009 @ 03:00 PM | in 1.5.0 Release
For the cases when a constructor or a method might take various number arguments with the options at the end, this method will cut off the options feed to the #setOptions method and return the list of arguments without the options
cutOptions(args) {
var args = $A(args); if (isHash(args))
this.setOptions(args.pop());
return args; }
myMethod: function() {
var args = this.cutOptions(arguments);
..... }
Comments and changes to this ticket
-
MadRabbit October 21st, 2009 @ 01:59 PM
- Milestone set to 1.5.0 Release
[milestone:id#53558 bulk edit command]
-
MadRabbit November 20th, 2009 @ 09:05 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RightJS Core Tickets