Consider this blog post model:
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
// For an introduction to the Blank template, see the following documentation: | |
// http://go.microsoft.com/fwlink/?LinkId=232509 | |
(function () { | |
"use strict"; | |
WinJS.Binding.optimizeBindingReferences = true; | |
var app = WinJS.Application; | |
var activation = Windows.ApplicationModel.Activation; |
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
/* | |
* Copyright (c) 2011 Yahoo! Inc. All rights reserved. | |
*/ | |
/*jslint nomen: true */ | |
(function () { | |
'use strict'; | |
function mix(target, source){ |
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
/** | |
* Hides all elements that are outside the scrolling viewport to improve | |
* performance. | |
* | |
* You'll need to call this function whenever dom nodes are inserted or removed | |
* in the list. | |
* | |
* You'll need to declare the "unload" class in your css file as following: | |
* .unload { visibility: hidden; } | |
* |
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
/* | |
* This file allows you to write binder tests using node.one(selector) in your | |
* mojito binder tests. simple add 'nodefix' to your "requires" on bindertests | |
* then use it like this: | |
* | |
* var node = Y.NodeFix.create('<div><p>sample child<p></div>') | |
* binder.bind(node); | |
* | |
* Then all the usage of node.one and node.all inside the binder will work as | |
* expected |
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
<?php | |
class ObjectIterator implements Iterator{ | |
protected $object; | |
protected $reflectionObject; | |
protected $properties; | |
public function __construct( $object ){ | |
$this->object = $object; |
NewerOlder