Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- someController = SC.Controller.create({
- isTypeCheckCreator: function(type){
- return function(name){
- return (name.toLowerCase().indexOf(type)!= -1);
- }
- },
- isJPG: this.isTypeCheckCreator('.jpg'),
- isPNG: this.isTypeCheckCreator('.png')
- });
Add Comment
Please, Sign In to add comment