This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.prototype.clone = function() | |
{ | |
var constructor = function(){}; | |
constructor.prototype = this; | |
return new constructor; | |
} | |
var Foo = Object.prototype.clone(); | |
Foo.hello = function(){ | |
console.log("hello"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.prototype.sayHello = function() | |
{ | |
console.log("YOU FAIL"); | |
} | |
Object.prototype.setAttributes = function(attributes) | |
{ | |
for(var attName in attributes) | |
{ | |
this[attName] = attributes[attName]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.prototype.setSlots = function(slots) | |
{ | |
for(var slotName in slots) | |
{ | |
if(slots.hasOwnProperty(slotName)) | |
{ | |
this[slotName] = slots[slotName]; | |
} | |
} | |
return this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renderContainer: function() | |
{ | |
var container = this.container(); | |
container.html(""); | |
var table = $("<table>"); | |
table.attr("cellpadding", 0); | |
table.attr("cellspacing", 0); | |
jQuery.each(this._visibleProducts.partition(this.productsPerRow()), function(i, productRow){ | |
var tr = $("tr"); | |
jQuery.each(productRow, function(j, product){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var theWindow = [[CPWindow alloc] | |
initWithContentRect:CGRectMakeZero() | |
styleMask:CPBorderlessBridgeWindowMask | |
]; | |
_contentView = [theWindow contentView]; | |
var bounds = [_contentView bounds]; | |
var boxSideLength = 10; | |
var boxMargin = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var button = [[CPButton alloc] initWithFrame:CPRectMake(0, 0, 0, 0)]; | |
[button setButtonType:CPSwitchButton]; | |
[button setImagePosition:CPNoImage]; | |
if(_currentNavigationItem == navigationItem) | |
{ | |
[button setFont:BreadcrumbsViewBoldFont]; | |
} | |
else | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _navigationView = [NavigationView alloc]; | |
console.log([_navigationView respondsToSelector:@selector(initWithFrame:)]); | |
[_navigationView initWithFrame:[[mainWindow contentView] bounds]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
press richcollins.steamed richcollins.steamed.pressed | |
2008-10-09 19:59:39.976 Cappuccino [info]: root=/Users/rcollins/Sites/richcollins.steamed | |
2008-10-09 19:59:39.978 Cappuccino [info]: output=richcollins.steamed.pressed | |
2008-10-09 19:59:39.979 Cappuccino [info]: main=/Users/rcollins/Sites/richcollins.steamed/main.j | |
2008-10-09 19:59:39.980 Cappuccino [info]: frameworks=/Users/rcollins/Sites/richcollins.steamed/Frameworks | |
2008-10-09 19:59:39.984 Cappuccino [info]: __RHINO_FIRST_SCOPE=[object global] | |
2008-10-09 19:59:40.284 Cappuccino [info]: OBJJ_INCLUDE_PATHS=/Users/rcollins/Sites/richcollins.steamed/Frameworks | |
OBJJ EXCEPTION: *** dict tag not recognized in Plist. | |
Name: OBJJPlistParseException | |
Message: undefined |
OlderNewer